Mercurial > evolve
comparison .gitlab-ci.yml @ 5538:2f572645b6d5 stable
gitlab-ci: display the Mercurial revision used to run the test
This make pipeline output clearer.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 17 Sep 2020 18:58:47 +0200 |
parents | f4d991ac2cd6 |
children | 98e2613d797d |
comparison
equal
deleted
inserted
replaced
5535:21a8f69e8fa6 | 5538:2f572645b6d5 |
---|---|
7 image: octobus/ci-py3-hgext3rd | 7 image: octobus/ci-py3-hgext3rd |
8 script: | 8 script: |
9 - hg pull -R /ci/repos/mercurial/ | 9 - hg pull -R /ci/repos/mercurial/ |
10 - hg_rev=$(tests/testlib/map-hg-rev.sh "$(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 - hg -R /ci/repos/mercurial/ update "$hg_rev" |
12 - echo testing with mercurial branch="$hg_rev", revision="$(hg log -R /ci/repos/mercurial/ -r . -T '{node}')" | |
12 - jobs=$(python -c 'import multiprocessing; print multiprocessing.cpu_count()') | 13 - jobs=$(python -c 'import multiprocessing; print multiprocessing.cpu_count()') |
13 - pytype -P /ci/repos/mercurial/:hgext3rd -k hgext3rd -x hgext3rd/evolve/thirdparty -j $jobs || true | 14 - pytype -P /ci/repos/mercurial/:hgext3rd -k hgext3rd -x hgext3rd/evolve/thirdparty -j $jobs || true |
14 when: manual | 15 when: manual |
15 | 16 |
16 tests-py2-cext: | 17 tests-py2-cext: |
17 image: octobus/ci-py2-hgext3rd | 18 image: octobus/ci-py2-hgext3rd |
18 script: | 19 script: |
19 - hg pull -R /ci/repos/mercurial/ | 20 - hg pull -R /ci/repos/mercurial/ |
20 - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')") | 21 - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')") |
21 - hg -R /ci/repos/mercurial/ update "$hg_rev" | 22 - hg -R /ci/repos/mercurial/ update "$hg_rev" |
23 - echo testing with mercurial branch="$hg_rev", revision="$(hg log -R /ci/repos/mercurial/ -r . -T '{node}')" | |
22 - (cd tests; /ci/repos/mercurial/tests/run-tests.py --color=always) | 24 - (cd tests; /ci/repos/mercurial/tests/run-tests.py --color=always) |
23 | 25 |
24 tests-py2-pure: | 26 tests-py2-pure: |
25 image: octobus/ci-py2-hgext3rd | 27 image: octobus/ci-py2-hgext3rd |
26 script: | 28 script: |
27 - hg pull -R /ci/repos/mercurial/ | 29 - hg pull -R /ci/repos/mercurial/ |
28 - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')") | 30 - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')") |
29 - hg -R /ci/repos/mercurial/ update "$hg_rev" | 31 - hg -R /ci/repos/mercurial/ update "$hg_rev" |
32 - echo testing with mercurial branch="$hg_rev", revision="$(hg log -R /ci/repos/mercurial/ -r . -T '{node}')" | |
30 - (cd tests; /ci/repos/mercurial/tests/run-tests.py --color=always --pure) | 33 - (cd tests; /ci/repos/mercurial/tests/run-tests.py --color=always --pure) |
31 | 34 |
32 tests-py3-cext: | 35 tests-py3-cext: |
33 image: octobus/ci-py3-hgext3rd | 36 image: octobus/ci-py3-hgext3rd |
34 script: | 37 script: |
35 - hg pull -R /ci/repos/mercurial/ | 38 - hg pull -R /ci/repos/mercurial/ |
36 - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')") | 39 - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')") |
37 - hg -R /ci/repos/mercurial/ update "$hg_rev" | 40 - hg -R /ci/repos/mercurial/ update "$hg_rev" |
41 - echo testing with mercurial branch="$hg_rev", revision="$(hg log -R /ci/repos/mercurial/ -r . -T '{node}')" | |
38 - (cd tests; python3 /ci/repos/mercurial/tests/run-tests.py --color=always) | 42 - (cd tests; python3 /ci/repos/mercurial/tests/run-tests.py --color=always) |
39 | 43 |
40 tests-py3-pure: | 44 tests-py3-pure: |
41 image: octobus/ci-py3-hgext3rd | 45 image: octobus/ci-py3-hgext3rd |
42 script: | 46 script: |
43 - hg pull -R /ci/repos/mercurial/ | 47 - hg pull -R /ci/repos/mercurial/ |
44 - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')") | 48 - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')") |
45 - hg -R /ci/repos/mercurial/ update "$hg_rev" | 49 - hg -R /ci/repos/mercurial/ update "$hg_rev" |
50 - echo testing with mercurial branch="$hg_rev", revision="$(hg log -R /ci/repos/mercurial/ -r . -T '{node}')" | |
46 - (cd tests; python3 /ci/repos/mercurial/tests/run-tests.py --color=always --pure) | 51 - (cd tests; python3 /ci/repos/mercurial/tests/run-tests.py --color=always --pure) |
47 | 52 |
48 doc: | 53 doc: |
49 image: octobus/ci-py2-evolve-doc | 54 image: octobus/ci-py2-evolve-doc |
50 script: | 55 script: |