.gitlab-ci.yml
branchstable
changeset 4966 4f3c87584a4a
parent 4959 edc29a909339
child 4974 3bcdaf298c7a
child 4986 1214f3d085a9
--- a/.gitlab-ci.yml	Mon Nov 18 12:55:44 2019 +0100
+++ b/.gitlab-ci.yml	Thu Nov 21 14:18:35 2019 +0700
@@ -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)