Mercurial > evolve
comparison .gitlab-ci.yml @ 6155:5bd5a7ab32d3
branching: merge with stable
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Fri, 25 Feb 2022 01:52:58 +0300 |
parents | 0d53a8d4170b |
children | 47f1a6bea77f fcb1ba8e77fc |
comparison
equal
deleted
inserted
replaced
6146:74665d83fb3b | 6155:5bd5a7ab32d3 |
---|---|
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: |
118 variables: | 116 variables: |
119 PYTHON: py -3 | 117 PYTHON: py -3 |
120 RUNTEST_ARGS: "--blacklist C:/Temp/check-tests.txt" | 118 RUNTEST_ARGS: "--blacklist C:/Temp/check-tests.txt" |
121 TEST_HGMODULEPOLICY: "c" | 119 TEST_HGMODULEPOLICY: "c" |
122 when: manual | 120 when: manual |
121 | |
122 deb: | |
123 image: registry.heptapod.net/mercurial/ci-images/py3-hgext3rd | |
124 script: | |
125 - apt-get update && apt-get -yq install devscripts equivs --no-install-recommends | |
126 - mk-build-deps --install --tool='apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes' debian/control | |
127 - version=$($PYTHON setup.py --version) | |
128 - debversion="$version+hg$(date +%Y%m%d)+$(hg log -r . -T '{node|short}')" | |
129 - make deb-prepare | |
130 - mkdir -p debs | |
131 - mv ../mercurial-evolve_$version.orig debs/mercurial-evolve_$debversion.orig | |
132 - cd debs/mercurial-evolve_$debversion.orig | |
133 - DEBEMAIL="evolve-testers@mercurial-scm.org" debchange --newversion "$debversion-1" "automated build" | |
134 - debuild --unsigned-source --unsigned-changes --build=binary | |
135 - dpkg --contents ../mercurial-evolve_$debversion-1_all.deb | |
136 variables: | |
137 DEBIAN_FRONTEND: noninteractive | |
138 DEB_BUILD_OPTIONS: nocheck nodoc | |
139 artifacts: | |
140 paths: | |
141 - debs/*.build | |
142 - debs/*.buildinfo | |
143 - debs/*.changes | |
144 - debs/*.deb | |
145 when: manual |