# HG changeset patch # User Pierre-Yves David # Date 1600361927 -7200 # Node ID 2f572645b6d5b0b56905adeede72dc927efd5789 # Parent 21a8f69e8fa6e67fd23c16a73bcd9721232a4fbd gitlab-ci: display the Mercurial revision used to run the test This make pipeline output clearer. diff -r 21a8f69e8fa6 -r 2f572645b6d5 .gitlab-ci.yml --- a/.gitlab-ci.yml Thu Sep 10 03:11:41 2020 +0200 +++ b/.gitlab-ci.yml Thu Sep 17 18:58:47 2020 +0200 @@ -9,6 +9,7 @@ - hg pull -R /ci/repos/mercurial/ - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')") - hg -R /ci/repos/mercurial/ update "$hg_rev" + - echo testing with mercurial branch="$hg_rev", revision="$(hg log -R /ci/repos/mercurial/ -r . -T '{node}')" - jobs=$(python -c 'import multiprocessing; print multiprocessing.cpu_count()') - pytype -P /ci/repos/mercurial/:hgext3rd -k hgext3rd -x hgext3rd/evolve/thirdparty -j $jobs || true when: manual @@ -19,6 +20,7 @@ - hg pull -R /ci/repos/mercurial/ - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')") - hg -R /ci/repos/mercurial/ update "$hg_rev" + - echo testing with mercurial branch="$hg_rev", revision="$(hg log -R /ci/repos/mercurial/ -r . -T '{node}')" - (cd tests; /ci/repos/mercurial/tests/run-tests.py --color=always) tests-py2-pure: @@ -27,6 +29,7 @@ - hg pull -R /ci/repos/mercurial/ - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')") - hg -R /ci/repos/mercurial/ update "$hg_rev" + - echo testing with mercurial branch="$hg_rev", revision="$(hg log -R /ci/repos/mercurial/ -r . -T '{node}')" - (cd tests; /ci/repos/mercurial/tests/run-tests.py --color=always --pure) tests-py3-cext: @@ -35,6 +38,7 @@ - hg pull -R /ci/repos/mercurial/ - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')") - hg -R /ci/repos/mercurial/ update "$hg_rev" + - echo testing with mercurial branch="$hg_rev", revision="$(hg log -R /ci/repos/mercurial/ -r . -T '{node}')" - (cd tests; python3 /ci/repos/mercurial/tests/run-tests.py --color=always) tests-py3-pure: @@ -43,6 +47,7 @@ - hg pull -R /ci/repos/mercurial/ - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')") - hg -R /ci/repos/mercurial/ update "$hg_rev" + - echo testing with mercurial branch="$hg_rev", revision="$(hg log -R /ci/repos/mercurial/ -r . -T '{node}')" - (cd tests; python3 /ci/repos/mercurial/tests/run-tests.py --color=always --pure) doc: