Commit e4654f30 authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

Heptapod CI: upgrading hg-evolve

While investigating some failed builds, I found that the
HGitaly repo couldn't be updated for them (failed pull) and
that upgrading hg-evolve fixed that, as well as the whole build.

--HG--
branch : heptapod
parent 8b67b5f59572
Pipeline #11515 passed with stages
in 48 minutes and 56 seconds
......@@ -21,13 +21,17 @@ print("Upgrading pip and setuptools")
subprocess.check_call((PIP_BIN, 'install', '--upgrade',
'pip', 'setuptools', 'wheel'))
print("Upgrading hg-evolve")
subprocess.check_call((PIP_BIN, 'install', '--upgrade', 'hg-evolve'))
# yes, Mercurial is readily available in GitLab base CI image!
# But its Debian 9 version (hg 4.0)
for slug, target in (('py-heptapod', PY_HEPTAPOD_CLONE_PATH),
('hgitaly', HGITALY_CLONE_PATH)):
if os.path.exists(target):
print("Updating %s clone at %s" % (slug, target))
subprocess.check_call(('hg', '-R', target, 'pull', '-u'))
subprocess.check_call(('hg', '-R', target, 'pull'))
subprocess.check_call(('hg', '-R', target, 'update', '-C', 'default'))
else:
print("Cloning %s into %s" % (slug, target))
subprocess.check_call(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment