changeset 44168:2aa2408e7515 stable

heptapod-ci: run test with python3 too Python3 is the future^W present, it is important to run tests with it too. Differential Revision: https://phab.mercurial-scm.org/D8013
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 16 Nov 2019 12:25:53 +0100
parents 7e08d3885b28
children 5fd43c788943
files contrib/heptapod-ci.yml
diffstat 1 files changed, 14 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/heptapod-ci.yml	Fri Jan 24 23:22:29 2020 +0100
+++ b/contrib/heptapod-ci.yml	Sat Nov 16 12:25:53 2019 +0100
@@ -7,7 +7,19 @@
     - hg -R /tmp/mercurial-ci/ update `hg log --rev '.' --template '{node}'`
     - cd /tmp/mercurial-ci/
 
-checks-py2:
+variables:
+    PYTHON: python
+
+.runtests_template: &runtests
     script:
         - cd tests/
-        - python run-tests.py --color=always --time test-check-*.*
+        - echo "python used, $PYTHON"
+        - $PYTHON run-tests.py --color=always --time test-check-*.*
+
+checks-py2:
+    <<: *runtests
+
+checks-py3:
+    <<: *runtests
+    variables:
+        PYTHON: python3