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

login
register
mail settings
Submitter phabricator
Date Feb. 7, 2020, 8:40 p.m.
Message ID <bcae9db204bbe1217d551c3f426d19d2@localhost.localdomain>
Download mbox | patch
Permalink /patch/45024/
State Not Applicable
Headers show

Comments

phabricator - Feb. 7, 2020, 8:40 p.m.
Closed by commit rHG2aa2408e7515: heptapod-ci: run test with python3 too (authored by marmoute).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8013?vs=19623&id=19989

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8013/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D8013

AFFECTED FILES
  contrib/heptapod-ci.yml

CHANGE DETAILS




To: marmoute, #hg-reviewers, pulkit
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