D8013: heptapod-ci: run test with python3 too
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Sun Jan 26 19:06:18 UTC 2020
marmoute created this revision.
Herald added subscribers: mercurial-devel, mjpieters.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Python3 is the future^W present, it is important to run tests with it too.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D8013
AFFECTED FILES
contrib/heptapod-ci.yml
CHANGE DETAILS
diff --git a/contrib/heptapod-ci.yml b/contrib/heptapod-ci.yml
--- a/contrib/heptapod-ci.yml
+++ b/contrib/heptapod-ci.yml
@@ -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
To: marmoute, #hg-reviewers
Cc: mjpieters, mercurial-devel
More information about the Mercurial-devel
mailing list