Patchwork D8013: heptapod-ci: run test with python3 too

login
register
mail settings
Submitter phabricator
Date Jan. 26, 2020, 7:06 p.m.
Message ID <differential-rev-PHID-DREV-d4i5udm6azpg5oe4bfqk-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/44676/
State Superseded
Headers show

Comments

phabricator - Jan. 26, 2020, 7:06 p.m.
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




To: marmoute, #hg-reviewers
Cc: mjpieters, mercurial-devel

Patch

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