Mercurial > evolve
comparison .gitlab-ci.yml @ 5341:efb8ae4419b2
ci: use a template + variables for defining tests
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Fri, 22 May 2020 08:39:51 +0800 |
parents | 43b448bb1a57 |
children | 4a958a7bb138 |
comparison
equal
deleted
inserted
replaced
5340:995ed7aac8a6 | 5341:efb8ae4419b2 |
---|---|
11 - hg -R /ci/repos/mercurial/ update "$hg_rev" | 11 - hg -R /ci/repos/mercurial/ update "$hg_rev" |
12 - jobs=$(python -c 'import multiprocessing; print multiprocessing.cpu_count()') | 12 - jobs=$(python -c 'import multiprocessing; print multiprocessing.cpu_count()') |
13 - pytype -P /ci/repos/mercurial/:hgext3rd -k hgext3rd -x hgext3rd/evolve/thirdparty -j $jobs || true | 13 - pytype -P /ci/repos/mercurial/:hgext3rd -k hgext3rd -x hgext3rd/evolve/thirdparty -j $jobs || true |
14 when: manual | 14 when: manual |
15 | 15 |
16 tests-py2-cext: | 16 variables: |
17 image: octobus/ci-py2-hgext3rd | 17 PY: py2 |
18 PYTHON: python | |
19 RUNTEST_ARGS: "" | |
20 | |
21 .runtests_template: &runtests | |
22 image: octobus/ci-$PY-hgext3rd | |
18 script: | 23 script: |
19 - hg pull -R /ci/repos/mercurial/ | 24 - hg pull -R /ci/repos/mercurial/ |
20 - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')") | 25 - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')") |
21 - hg -R /ci/repos/mercurial/ update "$hg_rev" | 26 - hg -R /ci/repos/mercurial/ update "$hg_rev" |
22 - (cd tests; /ci/repos/mercurial/tests/run-tests.py --color=always) | 27 - (cd tests; "$PYTHON" /ci/repos/mercurial/tests/run-tests.py --color=always $RUNTEST_ARGS) |
28 | |
29 tests-py2-cext: | |
30 <<: *runtests | |
23 | 31 |
24 tests-py2-pure: | 32 tests-py2-pure: |
25 image: octobus/ci-py2-hgext3rd | 33 <<: *runtests |
26 script: | 34 variables: |
27 - hg pull -R /ci/repos/mercurial/ | 35 RUNTEST_ARGS: "--pure" |
28 - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')") | |
29 - hg -R /ci/repos/mercurial/ update "$hg_rev" | |
30 - (cd tests; /ci/repos/mercurial/tests/run-tests.py --color=always --pure) | |
31 | 36 |
32 tests-py3-cext: | 37 tests-py3-cext: |
33 image: octobus/ci-py3-hgext3rd | 38 <<: *runtests |
34 script: | 39 variables: |
35 - hg pull -R /ci/repos/mercurial/ | 40 PY: py3 |
36 - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')") | 41 PYTHON: python3 |
37 - hg -R /ci/repos/mercurial/ update "$hg_rev" | |
38 - (cd tests; python3 /ci/repos/mercurial/tests/run-tests.py --color=always) | |
39 | 42 |
40 tests-py3-pure: | 43 tests-py3-pure: |
41 image: octobus/ci-py3-hgext3rd | 44 <<: *runtests |
42 script: | 45 variables: |
43 - hg pull -R /ci/repos/mercurial/ | 46 PY: py3 |
44 - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')") | 47 PYTHON: python3 |
45 - hg -R /ci/repos/mercurial/ update "$hg_rev" | 48 RUNTEST_ARGS: "--pure" |
46 - (cd tests; python3 /ci/repos/mercurial/tests/run-tests.py --color=always --pure) | |
47 | 49 |
48 doc: | 50 doc: |
49 image: octobus/ci-py2-evolve-doc | 51 image: octobus/ci-py2-evolve-doc |
50 script: | 52 script: |
51 - cd docs/ | 53 - cd docs/ |