comparison .gitlab-ci.yml @ 4966:4f3c87584a4a stable

heptapod-ci: add a script to map evolve branch to mercurial revision for tests map-hg-rev.sh can be tested using this command: ```sh for i in $(hg log -T '{branch}\n' | sort -u); do echo $i $(testlib/map-hg-rev.sh $i) done ```
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 21 Nov 2019 14:18:35 +0700
parents edc29a909339
children 3bcdaf298c7a 1214f3d085a9
comparison
equal deleted inserted replaced
4960:4941bb6d179c 4966:4f3c87584a4a
5 5
6 tests-py2-cext: 6 tests-py2-cext:
7 image: octobus/ci-py2-hgext3rd 7 image: octobus/ci-py2-hgext3rd
8 script: 8 script:
9 - hg pull -R /ci/repos/mercurial/ 9 - hg pull -R /ci/repos/mercurial/
10 - hg -R /ci/repos/mercurial/ update `hg log -r . -T '{branch}'` 10 - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')")
11 - hg -R /ci/repos/mercurial/ update "$hg_rev"
11 - (cd tests; /ci/repos/mercurial/tests/run-tests.py --color=always) 12 - (cd tests; /ci/repos/mercurial/tests/run-tests.py --color=always)
12 13
13 tests-py2-pure: 14 tests-py2-pure:
14 image: octobus/ci-py2-hgext3rd 15 image: octobus/ci-py2-hgext3rd
15 script: 16 script:
16 - hg pull -R /ci/repos/mercurial/ 17 - hg pull -R /ci/repos/mercurial/
17 - hg -R /ci/repos/mercurial/ update `hg log -r . -T '{branch}'` 18 - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')")
19 - hg -R /ci/repos/mercurial/ update "$hg_rev"
18 - (cd tests; /ci/repos/mercurial/tests/run-tests.py --color=always --pure) 20 - (cd tests; /ci/repos/mercurial/tests/run-tests.py --color=always --pure)
19 21
20 tests-py3-cext: 22 tests-py3-cext:
21 image: octobus/ci-py3-hgext3rd 23 image: octobus/ci-py3-hgext3rd
22 script: 24 script:
23 - hg pull -R /ci/repos/mercurial/ 25 - hg pull -R /ci/repos/mercurial/
24 - hg -R /ci/repos/mercurial/ update `hg log -r . -T '{branch}'` 26 - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')")
27 - hg -R /ci/repos/mercurial/ update "$hg_rev"
25 - (cd tests; python3 /ci/repos/mercurial/tests/run-tests.py --color=always) 28 - (cd tests; python3 /ci/repos/mercurial/tests/run-tests.py --color=always)
26 29
27 tests-py3-pure: 30 tests-py3-pure:
28 image: octobus/ci-py3-hgext3rd 31 image: octobus/ci-py3-hgext3rd
29 script: 32 script:
30 - hg pull -R /ci/repos/mercurial/ 33 - hg pull -R /ci/repos/mercurial/
31 - hg -R /ci/repos/mercurial/ update `hg log -r . -T '{branch}'` 34 - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')")
35 - hg -R /ci/repos/mercurial/ update "$hg_rev"
32 - (cd tests; python3 /ci/repos/mercurial/tests/run-tests.py --color=always --pure) 36 - (cd tests; python3 /ci/repos/mercurial/tests/run-tests.py --color=always --pure)