##// END OF EJS Templates
wheel: assign CIBW_SKIP globally...
marmoute -
r53124:d0e728b0 stable
parent child Browse files
Show More
@@ -1,373 +1,376
1 # Don't run pipelines on branch "merge", since we're fast-forward only.
1 # Don't run pipelines on branch "merge", since we're fast-forward only.
2 # Gitlab sees a new branch (since e.g. `topic/stable/my-topic` becomes
2 # Gitlab sees a new branch (since e.g. `topic/stable/my-topic` becomes
3 # `branch/stable`), but the hash hasn't changed. There is no reason to
3 # `branch/stable`), but the hash hasn't changed. There is no reason to
4 # re-run the CI in our case, since we haven't built up any specific automation.
4 # re-run the CI in our case, since we haven't built up any specific automation.
5 # Right now it's just wasted CI and developer time.
5 # Right now it's just wasted CI and developer time.
6 # One can still run the pipeline manually via the web interface,
6 # One can still run the pipeline manually via the web interface,
7 # like in the case of releases, to make *extra* sure that the actual branch
7 # like in the case of releases, to make *extra* sure that the actual branch
8 # has succeeded.
8 # has succeeded.
9 workflow:
9 workflow:
10 rules:
10 rules:
11 - if: $CI_COMMIT_BRANCH =~ /^branch\/.*/ && $CI_PIPELINE_SOURCE != "web"
11 - if: $CI_COMMIT_BRANCH =~ /^branch\/.*/ && $CI_PIPELINE_SOURCE != "web"
12 when: never
12 when: never
13 - if: $CI_PIPELINE_SOURCE == "merge_request_event"
13 - if: $CI_PIPELINE_SOURCE == "merge_request_event"
14 when: never
14 when: never
15 - if: $CI_PIPELINE_SOURCE == "push"
15 - if: $CI_PIPELINE_SOURCE == "push"
16 when: always
16 when: always
17 - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
17 - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
18 when: never
18 when: never
19 - if: $CI_COMMIT_BRANCH
19 - if: $CI_COMMIT_BRANCH
20 when: always
20 when: always
21
21
22 stages:
22 stages:
23 - build
23 - build
24 - checks
24 - checks
25 - tests
25 - tests
26 - platform-compat
26 - platform-compat
27 - py-version-compat
27 - py-version-compat
28
28
29
29
30 image: registry.heptapod.net/mercurial/ci-images/mercurial-core:$HG_CI_IMAGE_TAG
30 image: registry.heptapod.net/mercurial/ci-images/mercurial-core:$HG_CI_IMAGE_TAG
31
31
32 variables:
32 variables:
33 PYTHON: python
33 PYTHON: python
34 HG_CI_IMAGE_TAG: "v2.1"
34 HG_CI_IMAGE_TAG: "v2.1"
35 # a directory dedicated to creating files and temporary clone
35 # a directory dedicated to creating files and temporary clone
36 # with shell runner, its content is not cleaned from one call to the next,
36 # with shell runner, its content is not cleaned from one call to the next,
37 # so plan for it.
37 # so plan for it.
38 TMP_WORK_DIR: "${CI_PROJECT_DIR}/../.."
38 TMP_WORK_DIR: "${CI_PROJECT_DIR}/../.."
39 # we use CIBW_SKIP="pp*" to prevent the building of pypy wheel that are neither
40 # needed nor working.
41 CIBW_SKIP: "pp*"
39
42
40 .all:
43 .all:
41 # help changing all job at once when debugging
44 # help changing all job at once when debugging
42 when: on_success
45 when: on_success
43 # make sure jobs from later steps does not wait for anything implicit before
46 # make sure jobs from later steps does not wait for anything implicit before
44 # starting.
47 # starting.
45 needs: []
48 needs: []
46
49
47 .build-wheel:
50 .build-wheel:
48 extends: .all
51 extends: .all
49 image: "registry.heptapod.net/mercurial/ci-images/core-wheel-x86_64-c:v3.0"
52 image: "registry.heptapod.net/mercurial/ci-images/core-wheel-x86_64-c:v3.0"
50 stage: build
53 stage: build
51 variables:
54 variables:
52 WHEEL_TYPE: ""
55 WHEEL_TYPE: ""
53 FLAVOR: ""
56 FLAVOR: ""
54 MERCURIAL_SETUP_FORCE_TRANSLATIONS: "1"
57 MERCURIAL_SETUP_FORCE_TRANSLATIONS: "1"
55 CI_CLEVER_CLOUD_FLAVOR: "XS"
58 CI_CLEVER_CLOUD_FLAVOR: "XS"
56 before_script:
59 before_script:
57 - echo $WHEEL_TYPE
60 - echo $WHEEL_TYPE
58 - test -n "$WHEEL_TYPE"
61 - test -n "$WHEEL_TYPE"
59 - echo $FLAVOR
62 - echo $FLAVOR
60 - mkdir -p wheels/$WHEEL_TYPE/$BUILD_PY_ID
63 - mkdir -p wheels/$WHEEL_TYPE/$BUILD_PY_ID
61 script:
64 script:
62 - /opt/python/$BUILD_PY_ID/bin/python setup.py bdist_wheel --dist-dir tmp-wheelhouse
65 - /opt/python/$BUILD_PY_ID/bin/python setup.py bdist_wheel --dist-dir tmp-wheelhouse
63 - auditwheel repair tmp-wheelhouse/*.whl -w wheels/$WHEEL_TYPE/$BUILD_PY_ID
66 - auditwheel repair tmp-wheelhouse/*.whl -w wheels/$WHEEL_TYPE/$BUILD_PY_ID
64 artifacts:
67 artifacts:
65 paths:
68 paths:
66 - wheels/$WHEEL_TYPE/$BUILD_PY_ID
69 - wheels/$WHEEL_TYPE/$BUILD_PY_ID
67 expire_in: 1 week
70 expire_in: 1 week
68
71
69 build-c-wheel:
72 build-c-wheel:
70 extends: .build-wheel
73 extends: .build-wheel
71 variables:
74 variables:
72 WHEEL_TYPE: "c"
75 WHEEL_TYPE: "c"
73 parallel:
76 parallel:
74 matrix:
77 matrix:
75 - BUILD_PY_ID:
78 - BUILD_PY_ID:
76 - cp38-cp38
79 - cp38-cp38
77 - cp39-cp39
80 - cp39-cp39
78 - cp310-cp310
81 - cp310-cp310
79 - cp311-cp311
82 - cp311-cp311
80 - cp312-cp312
83 - cp312-cp312
81 - cp313-cp313
84 - cp313-cp313
82
85
83 .runtests:
86 .runtests:
84 extends: .all
87 extends: .all
85 stage: tests
88 stage: tests
86 variables:
89 variables:
87 SHOW_VERSION_OF: "$PYTHON"
90 SHOW_VERSION_OF: "$PYTHON"
88 TEST_HGTESTS_ALLOW_NETIO: "0"
91 TEST_HGTESTS_ALLOW_NETIO: "0"
89 FILTER: ""
92 FILTER: ""
90 FLAVOR: ""
93 FLAVOR: ""
91 RUNTEST_ARGS: ""
94 RUNTEST_ARGS: ""
92 # The runner made a clone as root.
95 # The runner made a clone as root.
93 # We make a new clone owned by user used to run the step.
96 # We make a new clone owned by user used to run the step.
94 before_script:
97 before_script:
95 - echo "python used, $PYTHON"
98 - echo "python used, $PYTHON"
96 - for tool in $SHOW_VERSION_OF ; do echo '#' version of $tool; $tool --version; done
99 - for tool in $SHOW_VERSION_OF ; do echo '#' version of $tool; $tool --version; done
97 - rm -rf "${TMP_WORK_DIR}"/mercurial-ci/ # Clean slate if not using containers
100 - rm -rf "${TMP_WORK_DIR}"/mercurial-ci/ # Clean slate if not using containers
98 - hg clone . "${TMP_WORK_DIR}"/mercurial-ci/ --noupdate --config phases.publish=no
101 - hg clone . "${TMP_WORK_DIR}"/mercurial-ci/ --noupdate --config phases.publish=no
99 - hg -R "${TMP_WORK_DIR}"/mercurial-ci/ update `hg log --rev '.' --template '{node}'`
102 - hg -R "${TMP_WORK_DIR}"/mercurial-ci/ update `hg log --rev '.' --template '{node}'`
100 - cd "${TMP_WORK_DIR}"/mercurial-ci/
103 - cd "${TMP_WORK_DIR}"/mercurial-ci/
101 - ls -1 tests/test-check-*.* > "${TMP_WORK_DIR}"/check-tests.txt
104 - ls -1 tests/test-check-*.* > "${TMP_WORK_DIR}"/check-tests.txt
102 script:
105 script:
103 - echo "$TEST_HGTESTS_ALLOW_NETIO"
106 - echo "$TEST_HGTESTS_ALLOW_NETIO"
104 - echo "$RUNTEST_ARGS"
107 - echo "$RUNTEST_ARGS"
105 - echo "$FILTER"
108 - echo "$FILTER"
106 - echo "$FLAVOR"
109 - echo "$FLAVOR"
107 - echo "$WHEEL_TYPE"
110 - echo "$WHEEL_TYPE"
108 - PORT_START=`expr 19051 + 1009 '*' $CI_CONCURRENT_ID`
111 - PORT_START=`expr 19051 + 1009 '*' $CI_CONCURRENT_ID`
109 - PORT_ARG="--port $PORT_START"
112 - PORT_ARG="--port $PORT_START"
110 - echo $PORT_ARG
113 - echo $PORT_ARG
111 - WHEEL_ARG=""
114 - WHEEL_ARG=""
112 - SHARDING_ARGS=""
115 - SHARDING_ARGS=""
113 - if test -n "$WHEEL_TYPE"; then
116 - if test -n "$WHEEL_TYPE"; then
114 PY_TAG=`$PYTHON -c 'import sys; v=sys.version_info; t=f"cp{v.major}{v.minor}"; print(f"{t}-{t}")'`;
117 PY_TAG=`$PYTHON -c 'import sys; v=sys.version_info; t=f"cp{v.major}{v.minor}"; print(f"{t}-{t}")'`;
115 echo "$PY_TAG";
118 echo "$PY_TAG";
116 test -n "PY_TAG";
119 test -n "PY_TAG";
117 WHEEL="`ls -1 $CI_PROJECT_DIR/wheels/$WHEEL_TYPE/$PY_TAG/*.whl`";
120 WHEEL="`ls -1 $CI_PROJECT_DIR/wheels/$WHEEL_TYPE/$PY_TAG/*.whl`";
118 test -n "$WHEEL";
121 test -n "$WHEEL";
119 echo installing from $WHEEL;
122 echo installing from $WHEEL;
120 WHEEL_ARG="--hg-wheel $WHEEL";
123 WHEEL_ARG="--hg-wheel $WHEEL";
121 echo disabling flavor as this is currently incompatible with '"--hg-wheel"';
124 echo disabling flavor as this is currently incompatible with '"--hg-wheel"';
122 FLAVOR="";
125 FLAVOR="";
123 else
126 else
124 echo installing from source;
127 echo installing from source;
125 fi;
128 fi;
126 - if [ -n "$CI_NODE_INDEX" ]; then
129 - if [ -n "$CI_NODE_INDEX" ]; then
127 echo "Running the test in multiple shard - [$CI_NODE_INDEX/$CI_NODE_TOTAL]";
130 echo "Running the test in multiple shard - [$CI_NODE_INDEX/$CI_NODE_TOTAL]";
128 SHARDING_ARGS="--shard-index $CI_NODE_INDEX --shard-total $CI_NODE_TOTAL";
131 SHARDING_ARGS="--shard-index $CI_NODE_INDEX --shard-total $CI_NODE_TOTAL";
129 echo "sharding... $SHARDING_ARGS";
132 echo "sharding... $SHARDING_ARGS";
130 fi
133 fi
131 - HGTESTS_ALLOW_NETIO="$TEST_HGTESTS_ALLOW_NETIO"
134 - HGTESTS_ALLOW_NETIO="$TEST_HGTESTS_ALLOW_NETIO"
132 "$PYTHON" tests/run-tests.py
135 "$PYTHON" tests/run-tests.py
133 --color=always
136 --color=always
134 $PORT_ARG
137 $PORT_ARG
135 $WHEEL_ARG
138 $WHEEL_ARG
136 $FLAVOR
139 $FLAVOR
137 $SHARDING_ARGS
140 $SHARDING_ARGS
138 $FILTER
141 $FILTER
139 $RUNTEST_ARGS;
142 $RUNTEST_ARGS;
140
143
141 checks:
144 checks:
142 extends: .runtests
145 extends: .runtests
143 stage: checks
146 stage: checks
144 variables:
147 variables:
145 SHOW_VERSION_OF: "$PYTHON black clang-format"
148 SHOW_VERSION_OF: "$PYTHON black clang-format"
146 RUNTEST_ARGS: "--time"
149 RUNTEST_ARGS: "--time"
147 FILTER: "--test-list ${TMP_WORK_DIR}/check-tests.txt"
150 FILTER: "--test-list ${TMP_WORK_DIR}/check-tests.txt"
148 CI_CLEVER_CLOUD_FLAVOR: S
151 CI_CLEVER_CLOUD_FLAVOR: S
149
152
150 rust-cargo-test:
153 rust-cargo-test:
151 extends: .all
154 extends: .all
152 stage: checks
155 stage: checks
153 script:
156 script:
154 - make rust-tests
157 - make rust-tests
155 - make cargo-clippy
158 - make cargo-clippy
156 variables:
159 variables:
157 CI_CLEVER_CLOUD_FLAVOR: S
160 CI_CLEVER_CLOUD_FLAVOR: S
158
161
159 .runtests-no-check:
162 .runtests-no-check:
160 extends: .runtests
163 extends: .runtests
161 variables:
164 variables:
162 FILTER: "--blacklist ${TMP_WORK_DIR}/check-tests.txt"
165 FILTER: "--blacklist ${TMP_WORK_DIR}/check-tests.txt"
163 TEST_HGTESTS_ALLOW_NETIO: "1"
166 TEST_HGTESTS_ALLOW_NETIO: "1"
164
167
165 .test-c:
168 .test-c:
166 extends: .runtests-no-check
169 extends: .runtests-no-check
167 variables:
170 variables:
168 FLAVOR: "--no-rust"
171 FLAVOR: "--no-rust"
169
172
170 test-c:
173 test-c:
171 extends: .test-c
174 extends: .test-c
172 needs:
175 needs:
173 - job: build-c-wheel
176 - job: build-c-wheel
174 parallel:
177 parallel:
175 matrix:
178 matrix:
176 - BUILD_PY_ID: "cp311-cp311"
179 - BUILD_PY_ID: "cp311-cp311"
177 variables:
180 variables:
178 WHEEL_TYPE: "c"
181 WHEEL_TYPE: "c"
179
182
180 test-pure:
183 test-pure:
181 extends: .runtests-no-check
184 extends: .runtests-no-check
182 variables:
185 variables:
183 FLAVOR: "--pure"
186 FLAVOR: "--pure"
184
187
185 test-rust:
188 test-rust:
186 extends: .runtests-no-check
189 extends: .runtests-no-check
187 variables:
190 variables:
188 HGWITHRUSTEXT: "cpython"
191 HGWITHRUSTEXT: "cpython"
189 FLAVOR: "--rust"
192 FLAVOR: "--rust"
190
193
191 test-rhg:
194 test-rhg:
192 extends: .runtests-no-check
195 extends: .runtests-no-check
193 variables:
196 variables:
194 HGWITHRUSTEXT: "cpython"
197 HGWITHRUSTEXT: "cpython"
195 FLAVOR: "--rust --rhg"
198 FLAVOR: "--rust --rhg"
196
199
197 test-chg:
200 test-chg:
198 extends: .runtests-no-check
201 extends: .runtests-no-check
199 variables:
202 variables:
200 FLAVOR: "--chg"
203 FLAVOR: "--chg"
201
204
202 # note: we should probably get a full matrix for flavor Γ— py-version, but this
205 # note: we should probably get a full matrix for flavor Γ— py-version, but this
203 # is a simple start to be able to check if we break the lowest supported
206 # is a simple start to be able to check if we break the lowest supported
204 # version (and 3.12 have been giving us various troubles)
207 # version (and 3.12 have been giving us various troubles)
205 test-3.8-c:
208 test-3.8-c:
206 extends: .test-c
209 extends: .test-c
207 stage: py-version-compat
210 stage: py-version-compat
208 when: manual # avoid overloading the CI by default
211 when: manual # avoid overloading the CI by default
209 variables:
212 variables:
210 PYTHON: python3.8
213 PYTHON: python3.8
211 WHEEL_TYPE: "c"
214 WHEEL_TYPE: "c"
212 needs:
215 needs:
213 - job: build-c-wheel
216 - job: build-c-wheel
214 parallel:
217 parallel:
215 matrix:
218 matrix:
216 - BUILD_PY_ID: "cp38-cp38"
219 - BUILD_PY_ID: "cp38-cp38"
217
220
218 test-3.12-c:
221 test-3.12-c:
219 extends: .test-c
222 extends: .test-c
220 stage: py-version-compat
223 stage: py-version-compat
221 when: manual # avoid overloading the CI by default
224 when: manual # avoid overloading the CI by default
222 variables:
225 variables:
223 PYTHON: python3.12
226 PYTHON: python3.12
224 WHEEL_TYPE: "c"
227 WHEEL_TYPE: "c"
225 needs:
228 needs:
226 - job: build-c-wheel
229 - job: build-c-wheel
227 parallel:
230 parallel:
228 matrix:
231 matrix:
229 - BUILD_PY_ID: "cp312-cp312"
232 - BUILD_PY_ID: "cp312-cp312"
230
233
231 test-3.12-rust:
234 test-3.12-rust:
232 extends: test-rust
235 extends: test-rust
233 stage: py-version-compat
236 stage: py-version-compat
234 when: manual # avoid overloading the CI by default
237 when: manual # avoid overloading the CI by default
235 variables:
238 variables:
236 PYTHON: python3.12
239 PYTHON: python3.12
237
240
238 test-3.13-c:
241 test-3.13-c:
239 extends: .test-c
242 extends: .test-c
240 stage: py-version-compat
243 stage: py-version-compat
241 when: manual # avoid overloading the CI by default
244 when: manual # avoid overloading the CI by default
242 variables:
245 variables:
243 PYTHON: python3.13
246 PYTHON: python3.13
244 WHEEL_TYPE: "c"
247 WHEEL_TYPE: "c"
245 needs:
248 needs:
246 - job: build-c-wheel
249 - job: build-c-wheel
247 parallel:
250 parallel:
248 matrix:
251 matrix:
249 - BUILD_PY_ID: "cp313-cp313"
252 - BUILD_PY_ID: "cp313-cp313"
250
253
251 test-3.13-rust:
254 test-3.13-rust:
252 extends: test-rust
255 extends: test-rust
253 stage: py-version-compat
256 stage: py-version-compat
254 when: manual # avoid overloading the CI by default
257 when: manual # avoid overloading the CI by default
255 variables:
258 variables:
256 PYTHON: python3.13
259 PYTHON: python3.13
257
260
258 check-pytype:
261 check-pytype:
259 extends: test-rust
262 extends: test-rust
260 stage: checks
263 stage: checks
261 before_script:
264 before_script:
262 - export PATH="/home/ci-runner/vendor/pyenv/pyenv-2.4.7-adf3c2bccf09cdb81febcfd15b186711a33ac7a8/shims:/home/ci-runner/vendor/pyenv/pyenv-2.4.7-adf3c2bccf09cdb81febcfd15b186711a33ac7a8/bin:$PATH"
265 - export PATH="/home/ci-runner/vendor/pyenv/pyenv-2.4.7-adf3c2bccf09cdb81febcfd15b186711a33ac7a8/shims:/home/ci-runner/vendor/pyenv/pyenv-2.4.7-adf3c2bccf09cdb81febcfd15b186711a33ac7a8/bin:$PATH"
263 - echo "PATH, $PATH"
266 - echo "PATH, $PATH"
264 - hg clone . "${TMP_WORK_DIR}"/mercurial-ci/ --noupdate --config phases.publish=no
267 - hg clone . "${TMP_WORK_DIR}"/mercurial-ci/ --noupdate --config phases.publish=no
265 - hg -R "${TMP_WORK_DIR}"/mercurial-ci/ update `hg log --rev '.' --template '{node}'`
268 - hg -R "${TMP_WORK_DIR}"/mercurial-ci/ update `hg log --rev '.' --template '{node}'`
266 - cd "${TMP_WORK_DIR}"/mercurial-ci/
269 - cd "${TMP_WORK_DIR}"/mercurial-ci/
267 - make local PYTHON=$PYTHON
270 - make local PYTHON=$PYTHON
268 - ./contrib/setup-pytype.sh
271 - ./contrib/setup-pytype.sh
269 script:
272 script:
270 - echo "Entering script section"
273 - echo "Entering script section"
271 - sh contrib/check-pytype.sh
274 - sh contrib/check-pytype.sh
272
275
273 # `sh.exe --login` sets a couple of extra environment variables that are defined
276 # `sh.exe --login` sets a couple of extra environment variables that are defined
274 # in the MinGW shell, but switches CWD to /home/$username. The previous value
277 # in the MinGW shell, but switches CWD to /home/$username. The previous value
275 # is stored in OLDPWD. Of the added variables, MSYSTEM is crucial to running
278 # is stored in OLDPWD. Of the added variables, MSYSTEM is crucial to running
276 # run-tests.py- it is needed to make run-tests.py generate a `python3` script
279 # run-tests.py- it is needed to make run-tests.py generate a `python3` script
277 # that satisfies the various shebang lines and delegates to `py -3`.
280 # that satisfies the various shebang lines and delegates to `py -3`.
278
281
279 .windows:
282 .windows:
280 extends: .all
283 extends: .all
281 when: manual # we don't have any Windows runners anymore at the moment
284 when: manual # we don't have any Windows runners anymore at the moment
282 tags:
285 tags:
283 - windows
286 - windows
284 before_script:
287 before_script:
285 - C:/hgdev/MinGW/msys/1.0/bin/sh.exe --login -c 'cd "$OLDPWD" && ls -1 tests/test-check-*.* > "${TMP_WORK_DIR}"/check-tests.txt'
288 - C:/hgdev/MinGW/msys/1.0/bin/sh.exe --login -c 'cd "$OLDPWD" && ls -1 tests/test-check-*.* > "${TMP_WORK_DIR}"/check-tests.txt'
286 # TODO: find/install cvs, bzr, perforce, gpg, sqlite3
289 # TODO: find/install cvs, bzr, perforce, gpg, sqlite3
287 variables:
290 variables:
288 PYTHON: C:/hgdev/venvs/python39-x64/Scripts/python.exe
291 PYTHON: C:/hgdev/venvs/python39-x64/Scripts/python.exe
289
292
290 .windows-runtests:
293 .windows-runtests:
291 extends: .windows
294 extends: .windows
292 stage: platform-compat
295 stage: platform-compat
293 script:
296 script:
294 - echo "Entering script section"
297 - echo "Entering script section"
295 - echo "python used, $Env:PYTHON"
298 - echo "python used, $Env:PYTHON"
296 - Invoke-Expression "$Env:PYTHON -V"
299 - Invoke-Expression "$Env:PYTHON -V"
297 - echo "$Env:HGTESTS_ALLOW_NETIO"
300 - echo "$Env:HGTESTS_ALLOW_NETIO"
298 - echo "$Env:FLAVOR"
301 - echo "$Env:FLAVOR"
299 - echo "$Env:FILTER"
302 - echo "$Env:FILTER"
300 - echo "$Env:RUNTEST_ARGS"
303 - echo "$Env:RUNTEST_ARGS"
301 - echo "$Env:TMP"
304 - echo "$Env:TMP"
302 - echo "$Env:TEMP"
305 - echo "$Env:TEMP"
303 # This test is hanging the worker and not that important, so lets skip
306 # This test is hanging the worker and not that important, so lets skip
304 # it for now
307 # it for now
305 - C:/hgdev/MinGW/msys/1.0/bin/sh.exe -c 'cd "$OLDPWD" && echo tests/test-clonebundles-autogen.t > $TMP_WORK_DIR/windows-skip.txt'
308 - C:/hgdev/MinGW/msys/1.0/bin/sh.exe -c 'cd "$OLDPWD" && echo tests/test-clonebundles-autogen.t > $TMP_WORK_DIR/windows-skip.txt'
306
309
307 - C:/hgdev/MinGW/msys/1.0/bin/sh.exe
310 - C:/hgdev/MinGW/msys/1.0/bin/sh.exe
308 --login -c 'cd "$OLDPWD"
311 --login -c 'cd "$OLDPWD"
309 && HGTESTS_ALLOW_NETIO="$TEST_HGTESTS_ALLOW_NETIO"
312 && HGTESTS_ALLOW_NETIO="$TEST_HGTESTS_ALLOW_NETIO"
310 $PYTHON tests/run-tests.py
313 $PYTHON tests/run-tests.py
311 --color=always
314 --color=always
312 $FLAVOR
315 $FLAVOR
313 --port `expr 19051 + 1009 "*" $CI_CONCURRENT_ID`
316 --port `expr 19051 + 1009 "*" $CI_CONCURRENT_ID`
314 $FILTER
317 $FILTER
315 $RUNTEST_ARGS;
318 $RUNTEST_ARGS;
316 '
319 '
317 variables:
320 variables:
318 RUNTEST_ARGS: ""
321 RUNTEST_ARGS: ""
319 FLAVOR: ""
322 FLAVOR: ""
320 FILTER: "--blacklist ${TMP_WORK_DIR}/check-tests.txt --blacklist ${TMP_WORK_DIR}/windows-skip.txt"
323 FILTER: "--blacklist ${TMP_WORK_DIR}/check-tests.txt --blacklist ${TMP_WORK_DIR}/windows-skip.txt"
321
324
322 windows:
325 windows:
323 extends: .windows-runtests
326 extends: .windows-runtests
324 variables:
327 variables:
325 RUNTEST_ARGS: "-j 8"
328 RUNTEST_ARGS: "-j 8"
326
329
327 windows-pyox:
330 windows-pyox:
328 extends: .windows-runtests
331 extends: .windows-runtests
329 when: manual # pyoxidizer builds seem broken with --no-use-pep517
332 when: manual # pyoxidizer builds seem broken with --no-use-pep517
330 variables:
333 variables:
331 FLAVOR: "--pyoxidized"
334 FLAVOR: "--pyoxidized"
332
335
333 macos:
336 macos:
334 extends: .test-c
337 extends: .test-c
335 stage: platform-compat
338 stage: platform-compat
336 # run the test in multiple shard to help spread the load between concurrent
339 # run the test in multiple shard to help spread the load between concurrent
337 # MR as the macos runner is a shell runner there is not startup overhead
340 # MR as the macos runner is a shell runner there is not startup overhead
338 # for tests.
341 # for tests.
339 parallel: 10
342 parallel: 10
340 tags:
343 tags:
341 - macos
344 - macos
342 variables:
345 variables:
343 WHEEL_TYPE: "c"
346 WHEEL_TYPE: "c"
344 needs:
347 needs:
345 - build-c-wheel-macos
348 - build-c-wheel-macos
346
349
347 # we use CIBW_SKIP="pp*" to prevent the building of pypy wheel that are neither
350 # We could use CIBW_BUILD="cp310-*" to only build the Python 3.10 wheel for now as
348 # needed nor working.
351 # this is the only one we need to test. However testing that build work on all
352 # version is useful and match what we do with Linux.
349 #
353 #
350 # We could use CIBW_BUILD="cp310-*" to only build the Python 3.10 wheel for now as
354 # CIBW_SKIP is set globally at the start of the file. See comment there.
351 # this is the only one we need to test. However testing that build work on all version is useful and match what we do with Linux.
352 #
355 #
353 # The weird directory structure match the one we use for Linux to deal with the
356 # The weird directory structure match the one we use for Linux to deal with the
354 # multiple jobs. (all this might be unnecessary)
357 # multiple jobs. (all this might be unnecessary)
355 build-c-wheel-macos:
358 build-c-wheel-macos:
356 when: manual # avoid overloading the CI by default
359 when: manual # avoid overloading the CI by default
357 stage: build
360 stage: build
358 tags:
361 tags:
359 - macos
362 - macos
360 variables:
363 variables:
361 MERCURIAL_SETUP_FORCE_TRANSLATIONS: "1"
364 MERCURIAL_SETUP_FORCE_TRANSLATIONS: "1"
362 script:
365 script:
363 - rm -rf tmp-wheels
366 - rm -rf tmp-wheels
364 - CIBW_SKIP="pp*" cibuildwheel --output-dir tmp-wheels/
367 - cibuildwheel --output-dir tmp-wheels/
365 - for py_version in cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312 cp313-cp313; do
368 - for py_version in cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312 cp313-cp313; do
366 mkdir -p wheels/c/$py_version/;
369 mkdir -p wheels/c/$py_version/;
367 mv tmp-wheels/*$py_version*.whl wheels/c/$py_version/;
370 mv tmp-wheels/*$py_version*.whl wheels/c/$py_version/;
368 done
371 done
369 - rm -rf tmp-wheels
372 - rm -rf tmp-wheels
370 artifacts:
373 artifacts:
371 paths:
374 paths:
372 - wheels
375 - wheels
373 expire_in: 1 week
376 expire_in: 1 week
General Comments 0
You need to be logged in to leave comments. Login now