comparison .gitlab-ci.yml @ 4926:0fad1d376814 stable

heptapod-ci: test with python3 too
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 15 Nov 2019 10:08:36 +0100
parents dbeb04ee6679
children 8ced373682c4
comparison
equal deleted inserted replaced
4925:dbeb04ee6679 4926:0fad1d376814
1 flake8: 1 flake8:
2 image: octobus/ci-py2-hgext3rd 2 image: octobus/ci-py2-hgext3rd
3 script: 3 script:
4 - hg files -0 'set:(**.py or grep("^#!.*python")) - removed()' -X hgext3rd/evolve/thirdparty | xargs -0 flake8 4 - hg files -0 'set:(**.py or grep("^#!.*python")) - removed()' -X hgext3rd/evolve/thirdparty | xargs -0 flake8
5
5 tests-py2-cext: 6 tests-py2-cext:
6 image: octobus/ci-py2-hgext3rd 7 image: octobus/ci-py2-hgext3rd
7 script: 8 script:
8 - echo $PWD 9 - echo $PWD
9 - rm -rf /tmp/mercurial-clone-`hg log -r . -T "{node}"` 10 - rm -rf /tmp/mercurial-clone-`hg log -r . -T "{node}"`
19 - rm -rf /tmp/mercurial-clone-`hg log -r . -T "{node}"` 20 - rm -rf /tmp/mercurial-clone-`hg log -r . -T "{node}"`
20 - hg clone https://mirror.octobus.net/hg/ /tmp/mercurial-clone-`hg log -r . -T "{node}"` --config share.pool=/tmp/ 21 - hg clone https://mirror.octobus.net/hg/ /tmp/mercurial-clone-`hg log -r . -T "{node}"` --config share.pool=/tmp/
21 - hg -R /tmp/mercurial-clone-`hg log -r . -T "{node}"` update `hg log -r . -T '{branch}'` 22 - hg -R /tmp/mercurial-clone-`hg log -r . -T "{node}"` update `hg log -r . -T '{branch}'`
22 - (cd tests; /tmp/mercurial-clone-`hg log -r . -T "{node}"`/tests/run-tests.py --pure) 23 - (cd tests; /tmp/mercurial-clone-`hg log -r . -T "{node}"`/tests/run-tests.py --pure)
23 - rm -rf /tmp/mercurial-clone-`hg log -r . -T "{node}"` 24 - rm -rf /tmp/mercurial-clone-`hg log -r . -T "{node}"`
25
26 tests-py3-cext:
27 image: octobus/ci-py3-hgext3rd
28 script:
29 - echo $PWD
30 - rm -rf /tmp/mercurial-clone-`hg log -r . -T "{node}"`
31 - hg clone https://mirror.octobus.net/hg/ /tmp/mercurial-clone-`hg log -r . -T "{node}"` --config share.pool=/tmp/
32 - hg -R /tmp/mercurial-clone-`hg log -r . -T "{node}"` update `hg log -r . -T '{branch}'`
33 - (cd tests; python3 /tmp/mercurial-clone-`hg log -r . -T "{node}"`/tests/run-tests.py)
34 - rm -rf /tmp/mercurial-clone-`hg log -r . -T "{node}"`
35
36 tests-py3-pure:
37 image: octobus/ci-py3-hgext3rd
38 script:
39 - echo $PWD
40 - rm -rf /tmp/mercurial-clone-`hg log -r . -T "{node}"`
41 - hg clone https://mirror.octobus.net/hg/ /tmp/mercurial-clone-`hg log -r . -T "{node}"` --config share.pool=/tmp/
42 - hg -R /tmp/mercurial-clone-`hg log -r . -T "{node}"` update `hg log -r . -T '{branch}'`
43 - (cd tests; python3 /tmp/mercurial-clone-`hg log -r . -T "{node}"`/tests/run-tests.py --pure)
44 - rm -rf /tmp/mercurial-clone-`hg log -r . -T "{node}"`