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.

branch : heptapod
parent 92500bee7f38
...@@ -24,24 +24,30 @@ subprocess.check_call((PIP_BIN, 'install', '--upgrade', ...@@ -24,24 +24,30 @@ subprocess.check_call((PIP_BIN, 'install', '--upgrade',
print("Upgrading hg-evolve") print("Upgrading hg-evolve")
subprocess.check_call((PIP_BIN, 'install', '--upgrade', 'hg-evolve')) subprocess.check_call((PIP_BIN, 'install', '--upgrade', 'hg-evolve'))
'--config', 'extensions.evolve=',
'--config', 'extensions.topic=',
# yes, Mercurial is readily available in GitLab base CI image! # 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), for slug, target in (('py-heptapod', PY_HEPTAPOD_CLONE_PATH),
('hgitaly', HGITALY_CLONE_PATH)): ('hgitaly', HGITALY_CLONE_PATH)):
if os.path.exists(target): if os.path.exists(target):
print("Updating %s clone at %s" % (slug, target)) print("Updating %s clone at %s" % (slug, target))
subprocess.check_call(('hg', '-R', target, 'pull')) subprocess.check_call(HG_CMD + ('-R', target, 'pull'))
subprocess.check_call(('hg', '-R', target, 'update', '-C', 'default')) subprocess.check_call(HG_CMD + ('-R', target,
'update', '-C', 'default'))
else: else:
print("Cloning %s into %s" % (slug, target)) print("Cloning %s into %s" % (slug, target))
subprocess.check_call( subprocess.check_call(HG_CMD + (
('hg', 'clone', '-q', 'clone', '-q',
'' + slug, '' + slug,
target, target,
)) ))
print("Current revision for %s:" % 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) pip_cmd = (PIP_BIN, 'install', '-e', target)
print("Installing %s: %r" % (slug, pip_cmd)) 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