Mercurial > evolve
comparison .gitlab-ci.yml @ 6151:90067fe2df5d stable
ci: default to python3
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sun, 20 Feb 2022 13:35:47 +0300 |
parents | 74665d83fb3b |
children | 0d53a8d4170b |
comparison
equal
deleted
inserted
replaced
6150:453302ef7f79 | 6151:90067fe2df5d |
---|---|
9 pytype: | 9 pytype: |
10 image: registry.heptapod.net/mercurial/ci-images/py3-hgext3rd | 10 image: registry.heptapod.net/mercurial/ci-images/py3-hgext3rd |
11 script: | 11 script: |
12 - *prepare_hg | 12 - *prepare_hg |
13 - pytype --version | 13 - pytype --version |
14 - jobs=$(python -c 'import multiprocessing; print multiprocessing.cpu_count()') | 14 - jobs=$(python3 -c 'import multiprocessing; print(multiprocessing.cpu_count())') |
15 - pytype -P /ci/repos/mercurial/:hgext3rd -k hgext3rd -x hgext3rd/evolve/thirdparty -j $jobs || true | 15 - pytype -P /ci/repos/mercurial/:hgext3rd -k hgext3rd -x hgext3rd/evolve/thirdparty -j $jobs || true |
16 when: manual | 16 when: manual |
17 | 17 |
18 variables: | 18 variables: |
19 PY: py2 | 19 PY: py3 |
20 PYTHON: python | 20 PYTHON: python3 |
21 RUNTEST_ARGS: "" | 21 RUNTEST_ARGS: "" |
22 TEST_HGMODULEPOLICY: "allow" | 22 TEST_HGMODULEPOLICY: "allow" |
23 | 23 |
24 .runtests_template: &runtests | 24 .runtests_template: &runtests |
25 image: registry.heptapod.net/mercurial/ci-images/$PY-hgext3rd | 25 image: registry.heptapod.net/mercurial/ci-images/$PY-hgext3rd |
31 - (cd tests; set -x; HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" /ci/repos/mercurial/tests/run-tests.py --color=always $RUNTEST_ARGS) | 31 - (cd tests; set -x; HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" /ci/repos/mercurial/tests/run-tests.py --color=always $RUNTEST_ARGS) |
32 | 32 |
33 checks-py2: | 33 checks-py2: |
34 <<: *runtests | 34 <<: *runtests |
35 variables: | 35 variables: |
36 PY: py2 | |
37 PYTHON: python2 | |
36 RUNTEST_ARGS: "--test-list /tmp/check-tests.txt" | 38 RUNTEST_ARGS: "--test-list /tmp/check-tests.txt" |
37 | 39 |
38 checks-py3: | 40 checks-py3: |
39 <<: *runtests | 41 <<: *runtests |
40 variables: | 42 variables: |
41 PY: py3 | |
42 PYTHON: python3 | |
43 RUNTEST_ARGS: "--test-list /tmp/check-tests.txt" | 43 RUNTEST_ARGS: "--test-list /tmp/check-tests.txt" |
44 | 44 |
45 tests-py2-cext: | 45 tests-py2-cext: |
46 <<: *runtests | 46 <<: *runtests |
47 variables: | 47 variables: |
48 PY: py2 | |
49 PYTHON: python2 | |
48 RUNTEST_ARGS: "--no-rust --blacklist /tmp/check-tests.txt" | 50 RUNTEST_ARGS: "--no-rust --blacklist /tmp/check-tests.txt" |
49 TEST_HGMODULEPOLICY: "c" | 51 TEST_HGMODULEPOLICY: "c" |
50 | 52 |
51 tests-py2-pure: | 53 tests-py2-pure: |
52 <<: *runtests | 54 <<: *runtests |
53 variables: | 55 variables: |
56 PY: py2 | |
57 PYTHON: python2 | |
54 RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" | 58 RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" |
55 TEST_HGMODULEPOLICY: "py" | 59 TEST_HGMODULEPOLICY: "py" |
56 | 60 |
57 tests-py3-cext: | 61 tests-py3-cext: |
58 <<: *runtests | 62 <<: *runtests |
59 variables: | 63 variables: |
60 PY: py3 | |
61 PYTHON: python3 | |
62 RUNTEST_ARGS: "--no-rust --blacklist /tmp/check-tests.txt" | 64 RUNTEST_ARGS: "--no-rust --blacklist /tmp/check-tests.txt" |
63 TEST_HGMODULEPOLICY: "c" | 65 TEST_HGMODULEPOLICY: "c" |
64 | 66 |
65 tests-py3-pure: | 67 tests-py3-pure: |
66 <<: *runtests | 68 <<: *runtests |
67 variables: | 69 variables: |
68 PY: py3 | |
69 PYTHON: python3 | |
70 RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" | 70 RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" |
71 TEST_HGMODULEPOLICY: "py" | 71 TEST_HGMODULEPOLICY: "py" |
72 | 72 |
73 doc: | 73 doc: |
74 image: registry.heptapod.net/mercurial/ci-images/py3-evolve-doc | 74 image: registry.heptapod.net/mercurial/ci-images/py3-evolve-doc |
75 script: | 75 script: |
76 - make doc | 76 - make doc |
77 variables: | 77 variables: |
78 LANG: en_US.UTF-8 | 78 LANG: en_US.UTF-8 |
79 PYTHON: python3 | |
80 PYTHONPATH: "/ci/repos/mercurial:$PYTHONPATH" | 79 PYTHONPATH: "/ci/repos/mercurial:$PYTHONPATH" |
81 SPHINXBUILD: python3 -m sphinx -b html | |
82 artifacts: | 80 artifacts: |
83 paths: | 81 paths: |
84 - html/* | 82 - html/* |
85 | 83 |
86 sdist: | 84 sdist: |