contrib/heptapod-ci.yml
author Pierre-Yves David <pierre-yves.david@octobus.net>
Sat, 16 Nov 2019 12:25:53 +0100
branchstable
changeset 44251 2aa2408e7515
parent 44250 7e08d3885b28
child 44252 5fd43c788943
permissions -rw-r--r--
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

image: octobus/ci-mercurial-core

# The runner made a clone as root.
# We make a new clone owned by user used to run the step.
before_script:
    - hg clone . /tmp/mercurial-ci/ --noupdate
    - hg -R /tmp/mercurial-ci/ update `hg log --rev '.' --template '{node}'`
    - cd /tmp/mercurial-ci/

variables:
    PYTHON: python

.runtests_template: &runtests
    script:
        - cd tests/
        - echo "python used, $PYTHON"
        - $PYTHON run-tests.py --color=always --time test-check-*.*

checks-py2:
    <<: *runtests

checks-py3:
    <<: *runtests
    variables:
        PYTHON: python3