Commit 94ece9f1 authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

Heptapod CI: making revision of py-heptapod/hgitaly deterministic

The intent has always been to be on the (assumed single) head of
default. But without evolve/topic, it was actually the latest draft.

--HG--
branch : heptapod
parent 92500bee7f38
......@@ -24,24 +24,30 @@ subprocess.check_call((PIP_BIN, 'install', '--upgrade',
print("Upgrading hg-evolve")
subprocess.check_call((PIP_BIN, 'install', '--upgrade', 'hg-evolve'))
HG_CMD = (HG_BIN,
'--config', 'extensions.evolve=',
'--config', 'extensions.topic=',
)
# yes, Mercurial is readily available in GitLab base CI image!
# But its Debian 9 version (hg 4.0)
# It is installed in the Python 3.8 interpreter
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'))
subprocess.check_call(('hg', '-R', target, 'update', '-C', 'default'))
subprocess.check_call(HG_CMD + ('-R', target, 'pull'))
subprocess.check_call(HG_CMD + ('-R', target,
'update', '-C', 'default'))
else:
print("Cloning %s into %s" % (slug, target))
subprocess.check_call(
('hg', 'clone', '-q',
subprocess.check_call(HG_CMD + (
'clone', '-q',
'https://mirror.octobus.net/heptapod/' + slug,
target,
))
print("Current revision for %s:" % target)
subprocess.check_call(('hg', '-R', target, 'log', '-r', '.'))
subprocess.check_call(HG_CMD + ('-R', target, 'log', '-r', '.'))
pip_cmd = (PIP_BIN, 'install', '-e', target)
print("Installing %s: %r" % (slug, pip_cmd))
......
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