comparison .gitlab-ci.yml @ 4959:edc29a909339 stable

heptapod-ci: simpler CI We have a mercurial clone available in the docker image now. This will same some time to avoid a full Mercurial clone for each run.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 18 Nov 2019 11:46:59 +0100
parents 8ced373682c4
children 4f3c87584a4a
comparison
equal deleted inserted replaced
4958:8ced373682c4 4959:edc29a909339
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
6 tests-py2-cext: 6 tests-py2-cext:
7 image: octobus/ci-py2-hgext3rd 7 image: octobus/ci-py2-hgext3rd
8 script: 8 script:
9 - echo $PWD 9 - hg pull -R /ci/repos/mercurial/
10 - rm -rf /tmp/mercurial-clone-`hg log -r . -T "{node}"` 10 - hg -R /ci/repos/mercurial/ update `hg log -r . -T '{branch}'`
11 - hg clone https://mirror.octobus.net/hg/ /tmp/mercurial-clone-`hg log -r . -T "{node}"` --config share.pool=/tmp/ 11 - (cd tests; /ci/repos/mercurial/tests/run-tests.py --color=always)
12 - hg -R /tmp/mercurial-clone-`hg log -r . -T "{node}"` update `hg log -r . -T '{branch}'`
13 - (cd tests; /tmp/mercurial-clone-`hg log -r . -T "{node}"`/tests/run-tests.py --color=always)
14 - rm -rf /tmp/mercurial-clone-`hg log -r . -T "{node}"`
15 12
16 tests-py2-pure: 13 tests-py2-pure:
17 image: octobus/ci-py2-hgext3rd 14 image: octobus/ci-py2-hgext3rd
18 script: 15 script:
19 - echo $PWD 16 - hg pull -R /ci/repos/mercurial/
20 - rm -rf /tmp/mercurial-clone-`hg log -r . -T "{node}"` 17 - hg -R /ci/repos/mercurial/ update `hg log -r . -T '{branch}'`
21 - hg clone https://mirror.octobus.net/hg/ /tmp/mercurial-clone-`hg log -r . -T "{node}"` --config share.pool=/tmp/ 18 - (cd tests; /ci/repos/mercurial/tests/run-tests.py --color=always --pure)
22 - hg -R /tmp/mercurial-clone-`hg log -r . -T "{node}"` update `hg log -r . -T '{branch}'`
23 - (cd tests; /tmp/mercurial-clone-`hg log -r . -T "{node}"`/tests/run-tests.py --color=always --pure)
24 - rm -rf /tmp/mercurial-clone-`hg log -r . -T "{node}"`
25 19
26 tests-py3-cext: 20 tests-py3-cext:
27 image: octobus/ci-py3-hgext3rd 21 image: octobus/ci-py3-hgext3rd
28 script: 22 script:
29 - echo $PWD 23 - hg pull -R /ci/repos/mercurial/
30 - rm -rf /tmp/mercurial-clone-`hg log -r . -T "{node}"` 24 - hg -R /ci/repos/mercurial/ update `hg log -r . -T '{branch}'`
31 - hg clone https://mirror.octobus.net/hg/ /tmp/mercurial-clone-`hg log -r . -T "{node}"` --config share.pool=/tmp/ 25 - (cd tests; python3 /ci/repos/mercurial/tests/run-tests.py --color=always)
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 --color=always)
34 - rm -rf /tmp/mercurial-clone-`hg log -r . -T "{node}"`
35 26
36 tests-py3-pure: 27 tests-py3-pure:
37 image: octobus/ci-py3-hgext3rd 28 image: octobus/ci-py3-hgext3rd
38 script: 29 script:
39 - echo $PWD 30 - hg pull -R /ci/repos/mercurial/
40 - rm -rf /tmp/mercurial-clone-`hg log -r . -T "{node}"` 31 - hg -R /ci/repos/mercurial/ update `hg log -r . -T '{branch}'`
41 - hg clone https://mirror.octobus.net/hg/ /tmp/mercurial-clone-`hg log -r . -T "{node}"` --config share.pool=/tmp/ 32 - (cd tests; python3 /ci/repos/mercurial/tests/run-tests.py --color=always --pure)
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 --color=always --pure)
44 - rm -rf /tmp/mercurial-clone-`hg log -r . -T "{node}"`