changeset 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 21a8f69e8fa6
children 452651e69848
files .gitlab-ci.yml
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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: