.gitlab-ci.yml
changeset 4982 ba683c5fe932
parent 4966 4f3c87584a4a
child 4974 3bcdaf298c7a
child 4986 1214f3d085a9
--- a/.gitlab-ci.yml	Mon Nov 18 14:33:59 2019 +0700
+++ b/.gitlab-ci.yml	Wed Dec 04 11:00:00 2019 +0100
@@ -7,26 +7,30 @@
     image: octobus/ci-py2-hgext3rd
     script:
         - hg pull -R /ci/repos/mercurial/
-        - hg -R /ci/repos/mercurial/ update `hg log -r . -T '{branch}'`
+        - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')")
+        - hg -R /ci/repos/mercurial/ update "$hg_rev"
         - (cd tests; /ci/repos/mercurial/tests/run-tests.py --color=always)
 
 tests-py2-pure:
     image: octobus/ci-py2-hgext3rd
     script:
         - hg pull -R /ci/repos/mercurial/
-        - hg -R /ci/repos/mercurial/ update `hg log -r . -T '{branch}'`
+        - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')")
+        - hg -R /ci/repos/mercurial/ update "$hg_rev"
         - (cd tests; /ci/repos/mercurial/tests/run-tests.py --color=always --pure)
 
 tests-py3-cext:
     image: octobus/ci-py3-hgext3rd
     script:
         - hg pull -R /ci/repos/mercurial/
-        - hg -R /ci/repos/mercurial/ update `hg log -r . -T '{branch}'`
+        - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')")
+        - hg -R /ci/repos/mercurial/ update "$hg_rev"
         - (cd tests; python3 /ci/repos/mercurial/tests/run-tests.py --color=always)
 
 tests-py3-pure:
     image: octobus/ci-py3-hgext3rd
     script:
         - hg pull -R /ci/repos/mercurial/
-        - hg -R /ci/repos/mercurial/ update `hg log -r . -T '{branch}'`
+        - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')")
+        - hg -R /ci/repos/mercurial/ update "$hg_rev"
         - (cd tests; python3 /ci/repos/mercurial/tests/run-tests.py --color=always --pure)