Mercurial > evolve
comparison .gitlab-ci.yml @ 5369:2295818ec738
ci: replace flake8 job by checks-py{2,3} (with more than flake8)
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sun, 07 Jun 2020 18:38:22 +0800 |
parents | bbd1e2f4e7a1 |
children | 06b5e43ac29c |
comparison
equal
deleted
inserted
replaced
5368:bbd1e2f4e7a1 | 5369:2295818ec738 |
---|---|
1 flake8: | |
2 image: octobus/ci-py2-hgext3rd | |
3 script: | |
4 - hg files -0 'set:(**.py or grep("^#!.*python")) - removed()' -X hgext3rd/evolve/thirdparty | xargs -0 flake8 | |
5 | |
6 pytype: | 1 pytype: |
7 image: octobus/ci-py3-hgext3rd | 2 image: octobus/ci-py3-hgext3rd |
8 script: | 3 script: |
9 - hg pull -R /ci/repos/mercurial/ | 4 - hg pull -R /ci/repos/mercurial/ |
10 - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')") | 5 - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')") |
19 RUNTEST_ARGS: "" | 14 RUNTEST_ARGS: "" |
20 TEST_HGMODULEPOLICY: "allow" | 15 TEST_HGMODULEPOLICY: "allow" |
21 | 16 |
22 .runtests_template: &runtests | 17 .runtests_template: &runtests |
23 image: octobus/ci-$PY-hgext3rd | 18 image: octobus/ci-$PY-hgext3rd |
19 before_script: | |
20 - (cd tests; ls -1 test-check-*.t > /tmp/check-tests.txt) | |
24 script: | 21 script: |
25 - hg pull -R /ci/repos/mercurial/ | 22 - hg pull -R /ci/repos/mercurial/ |
26 - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')") | 23 - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')") |
27 - hg -R /ci/repos/mercurial/ update "$hg_rev" | 24 - hg -R /ci/repos/mercurial/ update "$hg_rev" |
28 - ("$PYTHON" --version) | 25 - ("$PYTHON" --version) |
29 - (cd tests; set -x; HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" /ci/repos/mercurial/tests/run-tests.py --color=always $RUNTEST_ARGS) | 26 - (cd tests; set -x; HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" /ci/repos/mercurial/tests/run-tests.py --color=always $RUNTEST_ARGS) |
30 | 27 |
28 checks-py2: | |
29 <<: *runtests | |
30 variables: | |
31 RUNTEST_ARGS: "--test-list /tmp/check-tests.txt" | |
32 | |
33 checks-py3: | |
34 <<: *runtests | |
35 variables: | |
36 PY: py3 | |
37 PYTHON: python3 | |
38 RUNTEST_ARGS: "--test-list /tmp/check-tests.txt" | |
39 | |
31 tests-py2-cext: | 40 tests-py2-cext: |
32 <<: *runtests | 41 <<: *runtests |
33 variables: | 42 variables: |
34 RUNTEST_ARGS: "--no-rust" | 43 RUNTEST_ARGS: "--no-rust --blacklist /tmp/check-tests.txt" |
35 TEST_HGMODULEPOLICY: "c" | 44 TEST_HGMODULEPOLICY: "c" |
36 | 45 |
37 tests-py2-pure: | 46 tests-py2-pure: |
38 <<: *runtests | 47 <<: *runtests |
39 variables: | 48 variables: |
40 RUNTEST_ARGS: "--pure" | 49 RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" |
41 TEST_HGMODULEPOLICY: "py" | 50 TEST_HGMODULEPOLICY: "py" |
42 | 51 |
43 tests-py3-cext: | 52 tests-py3-cext: |
44 <<: *runtests | 53 <<: *runtests |
45 variables: | 54 variables: |
46 PY: py3 | 55 PY: py3 |
47 PYTHON: python3 | 56 PYTHON: python3 |
48 RUNTEST_ARGS: "--no-rust" | 57 RUNTEST_ARGS: "--no-rust --blacklist /tmp/check-tests.txt" |
49 TEST_HGMODULEPOLICY: "c" | 58 TEST_HGMODULEPOLICY: "c" |
50 | 59 |
51 tests-py3-pure: | 60 tests-py3-pure: |
52 <<: *runtests | 61 <<: *runtests |
53 variables: | 62 variables: |
54 PY: py3 | 63 PY: py3 |
55 PYTHON: python3 | 64 PYTHON: python3 |
56 RUNTEST_ARGS: "--pure" | 65 RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" |
57 TEST_HGMODULEPOLICY: "py" | 66 TEST_HGMODULEPOLICY: "py" |
58 | 67 |
59 doc: | 68 doc: |
60 image: octobus/ci-py2-evolve-doc | 69 image: octobus/ci-py2-evolve-doc |
61 script: | 70 script: |