heptapod-ci: move version prints closer to the start
authorRaphaël Gomès <rgomes@octobus.net>
Tue, 23 Jul 2024 12:12:03 +0200
changeset 51712 e153995011b7
parent 51711 832a1aeb576f
child 51713 74f1bf147a6d
heptapod-ci: move version prints closer to the start This makes debugging a lot easier if anything is to go wrong, and shows output earlier.
contrib/heptapod-ci.yml
--- a/contrib/heptapod-ci.yml	Tue Jul 23 12:10:31 2024 +0200
+++ b/contrib/heptapod-ci.yml	Tue Jul 23 12:12:03 2024 +0200
@@ -39,15 +39,15 @@
     # The runner made a clone as root.
     # We make a new clone owned by user used to run the step.
     before_script:
+      - echo "python used, $PYTHON"
+      - $PYTHON --version
+      - black --version
+      - clang-format --version
       - hg clone . /tmp/mercurial-ci/ --noupdate --config phases.publish=no
       - hg -R /tmp/mercurial-ci/ update `hg log --rev '.' --template '{node}'`
       - cd /tmp/mercurial-ci/
       - ls -1 tests/test-check-*.* > /tmp/check-tests.txt
-      - black --version
-      - clang-format --version
     script:
-        - echo "python used, $PYTHON"
-        - $PYTHON --version
         - echo "$RUNTEST_ARGS"
         - HGTESTS_ALLOW_NETIO="$TEST_HGTESTS_ALLOW_NETIO" HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" tests/run-tests.py --color=always $RUNTEST_ARGS
 
@@ -62,7 +62,6 @@
     <<: *all
     stage: tests
     script:
-        - echo "python used, $PYTHON"
         - make rust-tests
         - make cargo-clippy
     variables: