# HG changeset patch # User Pierre-Yves David # Date 1579971460 -3600 # Node ID 8b1dd3f423966460198f16c121efa6295d31a082 # Parent 12491abf93bd87b057cb6826e36606afa1cee88a heptapod-ci: add a basic file to be able to run tests with heptapod Having this yaml file somewhere in the main mercurial repository makes it trivial for contributors using heptapod to run CI on their in-progress work. There are alot of different combination (python2/python3 pure/cext/rust/pypy) to be tested and making sure all of them are covered manually is cumbersome. Automatic CI runnig on draft really helps in that matters. We start small bu later changesets will add more step testing more of the variants. The series is targetted on stable to make it available to the widest amount of contribution possible. The definition of the docker files used for this are available here: https://dev.heptapod.net/octobus/ci-dockerfiles Differential Revision: https://phab.mercurial-scm.org/D8011 diff -r 12491abf93bd -r 8b1dd3f42396 contrib/heptapod-ci.yml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/contrib/heptapod-ci.yml Sat Jan 25 17:57:40 2020 +0100 @@ -0,0 +1,13 @@ +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/ + +checks-py2: + script: + - cd tests/ + - python run-tests.py --time test-check-*.*