author | Pierre-Yves David <pierre-yves.david@octobus.net> |
Mon, 20 Feb 2023 16:31:36 +0100 | |
changeset 50171 | 72b4d9284411 |
parent 50030 | 1bd33932713d |
child 50484 | 608a69d5d38f |
permissions | -rw-r--r-- |
45974
3a3a510617e5
heptapod-ci: add a explicite "test" phases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
45912
diff
changeset
|
1 |
stages: |
3a3a510617e5
heptapod-ci: add a explicite "test" phases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
45912
diff
changeset
|
2 |
- tests |
3a3a510617e5
heptapod-ci: add a explicite "test" phases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
45912
diff
changeset
|
3 |
|
46323
723d241543b0
heptapod-ci: allow testing with docker image other than :latest
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46256
diff
changeset
|
4 |
image: registry.heptapod.net/mercurial/ci-images/mercurial-core:$HG_CI_IMAGE_TAG |
44166
8b1dd3f42396
heptapod-ci: add a basic file to be able to run tests with heptapod
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
5 |
|
44168
2aa2408e7515
heptapod-ci: run test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44167
diff
changeset
|
6 |
variables: |
2aa2408e7515
heptapod-ci: run test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44167
diff
changeset
|
7 |
PYTHON: python |
44198
4bd35d25903f
heptapod-ci: use strict module policy
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44172
diff
changeset
|
8 |
TEST_HGMODULEPOLICY: "allow" |
48813
2bb75c65fa6c
ci: use the `v1.0` flavor of the docker images in the CI
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48711
diff
changeset
|
9 |
HG_CI_IMAGE_TAG: "v1.0" |
46715
b41f551c5dc7
ci: hook network-io tests into the pipeline
Joerg Sonnenberger <joerg@bec.de>
parents:
46494
diff
changeset
|
10 |
TEST_HGTESTS_ALLOW_NETIO: "0" |
44168
2aa2408e7515
heptapod-ci: run test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44167
diff
changeset
|
11 |
|
47820
f6879956a386
ci: add a "all" template to easily control "when" test run
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47805
diff
changeset
|
12 |
.all_template: &all |
48865
477b5145e1a0
ci: do not trigger phabricator for merge-request
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48858
diff
changeset
|
13 |
when: on_success |
47820
f6879956a386
ci: add a "all" template to easily control "when" test run
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47805
diff
changeset
|
14 |
|
44168
2aa2408e7515
heptapod-ci: run test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44167
diff
changeset
|
15 |
.runtests_template: &runtests |
47820
f6879956a386
ci: add a "all" template to easily control "when" test run
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47805
diff
changeset
|
16 |
<<: *all |
45974
3a3a510617e5
heptapod-ci: add a explicite "test" phases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
45912
diff
changeset
|
17 |
stage: tests |
46244
fb69b51b4daa
ci: avoid a global before_script definition
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
46147
diff
changeset
|
18 |
# The runner made a clone as root. |
fb69b51b4daa
ci: avoid a global before_script definition
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
46147
diff
changeset
|
19 |
# We make a new clone owned by user used to run the step. |
fb69b51b4daa
ci: avoid a global before_script definition
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
46147
diff
changeset
|
20 |
before_script: |
fb69b51b4daa
ci: avoid a global before_script definition
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
46147
diff
changeset
|
21 |
- hg clone . /tmp/mercurial-ci/ --noupdate --config phases.publish=no |
fb69b51b4daa
ci: avoid a global before_script definition
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
46147
diff
changeset
|
22 |
- hg -R /tmp/mercurial-ci/ update `hg log --rev '.' --template '{node}'` |
fb69b51b4daa
ci: avoid a global before_script definition
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
46147
diff
changeset
|
23 |
- cd /tmp/mercurial-ci/ |
fb69b51b4daa
ci: avoid a global before_script definition
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
46147
diff
changeset
|
24 |
- ls -1 tests/test-check-*.* > /tmp/check-tests.txt |
46474
6b0dac9f650a
heptapod-ci: indicate which version of black is used for the run
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46473
diff
changeset
|
25 |
- black --version |
46476
a390c7fcd286
heptapod-ci: indicate which version of clang-format is used for the run
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46474
diff
changeset
|
26 |
- clang-format --version |
44166
8b1dd3f42396
heptapod-ci: add a basic file to be able to run tests with heptapod
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
27 |
script: |
44168
2aa2408e7515
heptapod-ci: run test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44167
diff
changeset
|
28 |
- echo "python used, $PYTHON" |
44170
8814308e83bb
heptapod-ci: run the normal test suite
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44169
diff
changeset
|
29 |
- echo "$RUNTEST_ARGS" |
46715
b41f551c5dc7
ci: hook network-io tests into the pipeline
Joerg Sonnenberger <joerg@bec.de>
parents:
46494
diff
changeset
|
30 |
- HGTESTS_ALLOW_NETIO="$TEST_HGTESTS_ALLOW_NETIO" HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" tests/run-tests.py --color=always $RUNTEST_ARGS |
44168
2aa2408e7515
heptapod-ci: run test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44167
diff
changeset
|
31 |
|
49040
469b9ee336a6
heptapod-ci: remove useless mentions of Python 3
Raphaël Gomès <rgomes@octobus.net>
parents:
48898
diff
changeset
|
32 |
checks: |
44168
2aa2408e7515
heptapod-ci: run test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44167
diff
changeset
|
33 |
<<: *runtests |
2aa2408e7515
heptapod-ci: run test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44167
diff
changeset
|
34 |
variables: |
44170
8814308e83bb
heptapod-ci: run the normal test suite
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44169
diff
changeset
|
35 |
RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt" |
44168
2aa2408e7515
heptapod-ci: run test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44167
diff
changeset
|
36 |
PYTHON: python3 |
49639
d00ac86fbd78
contrib: adjust heptapod CI flavor sizes
Raphaël Gomès <rgomes@octobus.net>
parents:
49512
diff
changeset
|
37 |
CI_CLEVER_CLOUD_FLAVOR: S |
44169
5fd43c788943
heptapod-ci: also run the dedicated rust test for the rust code
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44168
diff
changeset
|
38 |
|
49040
469b9ee336a6
heptapod-ci: remove useless mentions of Python 3
Raphaël Gomès <rgomes@octobus.net>
parents:
48898
diff
changeset
|
39 |
rust-cargo-test: |
49220
a17ffde1e71b
ci: have rust-cargo-test inherit from all
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49214
diff
changeset
|
40 |
<<: *all |
45974
3a3a510617e5
heptapod-ci: add a explicite "test" phases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
45912
diff
changeset
|
41 |
stage: tests |
44169
5fd43c788943
heptapod-ci: also run the dedicated rust test for the rust code
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44168
diff
changeset
|
42 |
script: |
5fd43c788943
heptapod-ci: also run the dedicated rust test for the rust code
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44168
diff
changeset
|
43 |
- echo "python used, $PYTHON" |
5fd43c788943
heptapod-ci: also run the dedicated rust test for the rust code
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44168
diff
changeset
|
44 |
- make rust-tests |
50013
86958104b6ca
heptapod-ci: add `clippy` to the CI
Raphaël Gomès <rgomes@octobus.net>
parents:
49770
diff
changeset
|
45 |
- make cargo-clippy |
44169
5fd43c788943
heptapod-ci: also run the dedicated rust test for the rust code
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44168
diff
changeset
|
46 |
variables: |
5fd43c788943
heptapod-ci: also run the dedicated rust test for the rust code
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44168
diff
changeset
|
47 |
PYTHON: python3 |
49639
d00ac86fbd78
contrib: adjust heptapod CI flavor sizes
Raphaël Gomès <rgomes@octobus.net>
parents:
49512
diff
changeset
|
48 |
CI_CLEVER_CLOUD_FLAVOR: S |
44169
5fd43c788943
heptapod-ci: also run the dedicated rust test for the rust code
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44168
diff
changeset
|
49 |
|
49040
469b9ee336a6
heptapod-ci: remove useless mentions of Python 3
Raphaël Gomès <rgomes@octobus.net>
parents:
48898
diff
changeset
|
50 |
test-c: |
44170
8814308e83bb
heptapod-ci: run the normal test suite
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44169
diff
changeset
|
51 |
<<: *runtests |
8814308e83bb
heptapod-ci: run the normal test suite
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44169
diff
changeset
|
52 |
variables: |
44502
b3991b72d9f1
heptapod-ci: use the new `--rust/--no-rust` flag to run the tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44198
diff
changeset
|
53 |
RUNTEST_ARGS: " --no-rust --blacklist /tmp/check-tests.txt" |
44170
8814308e83bb
heptapod-ci: run the normal test suite
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44169
diff
changeset
|
54 |
PYTHON: python3 |
44198
4bd35d25903f
heptapod-ci: use strict module policy
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44172
diff
changeset
|
55 |
TEST_HGMODULEPOLICY: "c" |
46715
b41f551c5dc7
ci: hook network-io tests into the pipeline
Joerg Sonnenberger <joerg@bec.de>
parents:
46494
diff
changeset
|
56 |
TEST_HGTESTS_ALLOW_NETIO: "1" |
44171
6733c565ca46
heptapod-ci: run the --pure test too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44170
diff
changeset
|
57 |
|
49040
469b9ee336a6
heptapod-ci: remove useless mentions of Python 3
Raphaël Gomès <rgomes@octobus.net>
parents:
48898
diff
changeset
|
58 |
test-pure: |
44171
6733c565ca46
heptapod-ci: run the --pure test too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44170
diff
changeset
|
59 |
<<: *runtests |
6733c565ca46
heptapod-ci: run the --pure test too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44170
diff
changeset
|
60 |
variables: |
6733c565ca46
heptapod-ci: run the --pure test too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44170
diff
changeset
|
61 |
RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" |
6733c565ca46
heptapod-ci: run the --pure test too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44170
diff
changeset
|
62 |
PYTHON: python3 |
44198
4bd35d25903f
heptapod-ci: use strict module policy
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44172
diff
changeset
|
63 |
TEST_HGMODULEPOLICY: "py" |
44172
541a509a47a8
heptapod-ci: add a job to test the rust version of Mercurial
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44171
diff
changeset
|
64 |
|
49040
469b9ee336a6
heptapod-ci: remove useless mentions of Python 3
Raphaël Gomès <rgomes@octobus.net>
parents:
48898
diff
changeset
|
65 |
test-rust: |
44172
541a509a47a8
heptapod-ci: add a job to test the rust version of Mercurial
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44171
diff
changeset
|
66 |
<<: *runtests |
541a509a47a8
heptapod-ci: add a job to test the rust version of Mercurial
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44171
diff
changeset
|
67 |
variables: |
541a509a47a8
heptapod-ci: add a job to test the rust version of Mercurial
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44171
diff
changeset
|
68 |
HGWITHRUSTEXT: cpython |
44502
b3991b72d9f1
heptapod-ci: use the new `--rust/--no-rust` flag to run the tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44198
diff
changeset
|
69 |
RUNTEST_ARGS: "--rust --blacklist /tmp/check-tests.txt" |
44172
541a509a47a8
heptapod-ci: add a job to test the rust version of Mercurial
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44171
diff
changeset
|
70 |
PYTHON: python3 |
44198
4bd35d25903f
heptapod-ci: use strict module policy
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44172
diff
changeset
|
71 |
TEST_HGMODULEPOLICY: "rust+c" |
44977
aa568b6c6a10
heptapod-ci: also run tests for chg on python 2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44586
diff
changeset
|
72 |
|
49040
469b9ee336a6
heptapod-ci: remove useless mentions of Python 3
Raphaël Gomès <rgomes@octobus.net>
parents:
48898
diff
changeset
|
73 |
test-rhg: |
46768
6b5714479288
ci: Add a job testing with rhg installed as `hg`
Simon Sapin <simon.sapin@octobus.net>
parents:
46715
diff
changeset
|
74 |
<<: *runtests |
6b5714479288
ci: Add a job testing with rhg installed as `hg`
Simon Sapin <simon.sapin@octobus.net>
parents:
46715
diff
changeset
|
75 |
variables: |
6b5714479288
ci: Add a job testing with rhg installed as `hg`
Simon Sapin <simon.sapin@octobus.net>
parents:
46715
diff
changeset
|
76 |
HGWITHRUSTEXT: cpython |
6b5714479288
ci: Add a job testing with rhg installed as `hg`
Simon Sapin <simon.sapin@octobus.net>
parents:
46715
diff
changeset
|
77 |
RUNTEST_ARGS: "--rust --rhg --blacklist /tmp/check-tests.txt" |
6b5714479288
ci: Add a job testing with rhg installed as `hg`
Simon Sapin <simon.sapin@octobus.net>
parents:
46715
diff
changeset
|
78 |
PYTHON: python3 |
6b5714479288
ci: Add a job testing with rhg installed as `hg`
Simon Sapin <simon.sapin@octobus.net>
parents:
46715
diff
changeset
|
79 |
TEST_HGMODULEPOLICY: "rust+c" |
6b5714479288
ci: Add a job testing with rhg installed as `hg`
Simon Sapin <simon.sapin@octobus.net>
parents:
46715
diff
changeset
|
80 |
|
49040
469b9ee336a6
heptapod-ci: remove useless mentions of Python 3
Raphaël Gomès <rgomes@octobus.net>
parents:
48898
diff
changeset
|
81 |
test-chg: |
46147
d109dda4a3e7
contrib: run python3+chg tests too in heptapod CI
Pulkit Goyal <7895pulkit@gmail.com>
parents:
46049
diff
changeset
|
82 |
<<: *runtests |
d109dda4a3e7
contrib: run python3+chg tests too in heptapod CI
Pulkit Goyal <7895pulkit@gmail.com>
parents:
46049
diff
changeset
|
83 |
variables: |
d109dda4a3e7
contrib: run python3+chg tests too in heptapod CI
Pulkit Goyal <7895pulkit@gmail.com>
parents:
46049
diff
changeset
|
84 |
PYTHON: python3 |
d109dda4a3e7
contrib: run python3+chg tests too in heptapod CI
Pulkit Goyal <7895pulkit@gmail.com>
parents:
46049
diff
changeset
|
85 |
RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt --chg" |
d109dda4a3e7
contrib: run python3+chg tests too in heptapod CI
Pulkit Goyal <7895pulkit@gmail.com>
parents:
46049
diff
changeset
|
86 |
TEST_HGMODULEPOLICY: "c" |
47040
e917fa36fb58
heptapod-ci: enable pytype checking
Matt Harbison <matt_harbison@yahoo.com>
parents:
46980
diff
changeset
|
87 |
|
49040
469b9ee336a6
heptapod-ci: remove useless mentions of Python 3
Raphaël Gomès <rgomes@octobus.net>
parents:
48898
diff
changeset
|
88 |
check-pytype: |
47040
e917fa36fb58
heptapod-ci: enable pytype checking
Matt Harbison <matt_harbison@yahoo.com>
parents:
46980
diff
changeset
|
89 |
extends: .runtests_template |
e917fa36fb58
heptapod-ci: enable pytype checking
Matt Harbison <matt_harbison@yahoo.com>
parents:
46980
diff
changeset
|
90 |
before_script: |
e917fa36fb58
heptapod-ci: enable pytype checking
Matt Harbison <matt_harbison@yahoo.com>
parents:
46980
diff
changeset
|
91 |
- hg clone . /tmp/mercurial-ci/ --noupdate --config phases.publish=no |
e917fa36fb58
heptapod-ci: enable pytype checking
Matt Harbison <matt_harbison@yahoo.com>
parents:
46980
diff
changeset
|
92 |
- hg -R /tmp/mercurial-ci/ update `hg log --rev '.' --template '{node}'` |
e917fa36fb58
heptapod-ci: enable pytype checking
Matt Harbison <matt_harbison@yahoo.com>
parents:
46980
diff
changeset
|
93 |
- cd /tmp/mercurial-ci/ |
e917fa36fb58
heptapod-ci: enable pytype checking
Matt Harbison <matt_harbison@yahoo.com>
parents:
46980
diff
changeset
|
94 |
- make local PYTHON=$PYTHON |
49770
86e398a3d598
ci: bump pytype to 2022.11.18
Matt Harbison <matt_harbison@yahoo.com>
parents:
49769
diff
changeset
|
95 |
- $PYTHON -m pip install --user -U libcst==0.3.20 pytype==2022.11.18 |
49769
556efeea6dbf
ci: run the script to add vendored type stubs to typeshed
Matt Harbison <matt_harbison@yahoo.com>
parents:
49512
diff
changeset
|
96 |
- ./contrib/setup-pytype.sh |
49422
dbdee8ac3e3f
heptapod-ci: use shell script in pytype step
Raphaël Gomès <rgomes@octobus.net>
parents:
49287
diff
changeset
|
97 |
script: |
dbdee8ac3e3f
heptapod-ci: use shell script in pytype step
Raphaël Gomès <rgomes@octobus.net>
parents:
49287
diff
changeset
|
98 |
- echo "Entering script section" |
dbdee8ac3e3f
heptapod-ci: use shell script in pytype step
Raphaël Gomès <rgomes@octobus.net>
parents:
49287
diff
changeset
|
99 |
- sh contrib/check-pytype.sh |
47040
e917fa36fb58
heptapod-ci: enable pytype checking
Matt Harbison <matt_harbison@yahoo.com>
parents:
46980
diff
changeset
|
100 |
variables: |
e917fa36fb58
heptapod-ci: enable pytype checking
Matt Harbison <matt_harbison@yahoo.com>
parents:
46980
diff
changeset
|
101 |
PYTHON: python3 |
47570
bc01b8ad6134
ci-windows: introduce manual windows CI
Raphaël Gomès <rgomes@octobus.net>
parents:
47040
diff
changeset
|
102 |
|
bc01b8ad6134
ci-windows: introduce manual windows CI
Raphaël Gomès <rgomes@octobus.net>
parents:
47040
diff
changeset
|
103 |
# `sh.exe --login` sets a couple of extra environment variables that are defined |
bc01b8ad6134
ci-windows: introduce manual windows CI
Raphaël Gomès <rgomes@octobus.net>
parents:
47040
diff
changeset
|
104 |
# in the MinGW shell, but switches CWD to /home/$username. The previous value |
bc01b8ad6134
ci-windows: introduce manual windows CI
Raphaël Gomès <rgomes@octobus.net>
parents:
47040
diff
changeset
|
105 |
# is stored in OLDPWD. Of the added variables, MSYSTEM is crucial to running |
bc01b8ad6134
ci-windows: introduce manual windows CI
Raphaël Gomès <rgomes@octobus.net>
parents:
47040
diff
changeset
|
106 |
# run-tests.py- it is needed to make run-tests.py generate a `python3` script |
bc01b8ad6134
ci-windows: introduce manual windows CI
Raphaël Gomès <rgomes@octobus.net>
parents:
47040
diff
changeset
|
107 |
# that satisfies the various shebang lines and delegates to `py -3`. |
bc01b8ad6134
ci-windows: introduce manual windows CI
Raphaël Gomès <rgomes@octobus.net>
parents:
47040
diff
changeset
|
108 |
.window_runtests_template: &windows_runtests |
47820
f6879956a386
ci: add a "all" template to easily control "when" test run
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47805
diff
changeset
|
109 |
<<: *all |
48345
b52cf5063865
heptapod-ci: make Windows jobs manual again
Raphaël Gomès <rgomes@octobus.net>
parents:
48326
diff
changeset
|
110 |
when: manual # we don't have any Windows runners anymore at the moment |
47570
bc01b8ad6134
ci-windows: introduce manual windows CI
Raphaël Gomès <rgomes@octobus.net>
parents:
47040
diff
changeset
|
111 |
stage: tests |
bc01b8ad6134
ci-windows: introduce manual windows CI
Raphaël Gomès <rgomes@octobus.net>
parents:
47040
diff
changeset
|
112 |
before_script: |
47801
d5d46dcd356b
windows-ci: clean up the Heptapod CI file now that the baseline is solid
Raphaël Gomès <rgomes@octobus.net>
parents:
47791
diff
changeset
|
113 |
- C:/MinGW/msys/1.0/bin/sh.exe --login -c 'cd "$OLDPWD" && ls -1 tests/test-check-*.* > C:/Temp/check-tests.txt' |
47570
bc01b8ad6134
ci-windows: introduce manual windows CI
Raphaël Gomès <rgomes@octobus.net>
parents:
47040
diff
changeset
|
114 |
# TODO: find/install cvs, bzr, perforce, gpg, sqlite3 |
bc01b8ad6134
ci-windows: introduce manual windows CI
Raphaël Gomès <rgomes@octobus.net>
parents:
47040
diff
changeset
|
115 |
|
bc01b8ad6134
ci-windows: introduce manual windows CI
Raphaël Gomès <rgomes@octobus.net>
parents:
47040
diff
changeset
|
116 |
script: |
bc01b8ad6134
ci-windows: introduce manual windows CI
Raphaël Gomès <rgomes@octobus.net>
parents:
47040
diff
changeset
|
117 |
- echo "Entering script section" |
bc01b8ad6134
ci-windows: introduce manual windows CI
Raphaël Gomès <rgomes@octobus.net>
parents:
47040
diff
changeset
|
118 |
- echo "python used, $Env:PYTHON" |
bc01b8ad6134
ci-windows: introduce manual windows CI
Raphaël Gomès <rgomes@octobus.net>
parents:
47040
diff
changeset
|
119 |
- Invoke-Expression "$Env:PYTHON -V" |
bc01b8ad6134
ci-windows: introduce manual windows CI
Raphaël Gomès <rgomes@octobus.net>
parents:
47040
diff
changeset
|
120 |
- Invoke-Expression "$Env:PYTHON -m black --version" |
bc01b8ad6134
ci-windows: introduce manual windows CI
Raphaël Gomès <rgomes@octobus.net>
parents:
47040
diff
changeset
|
121 |
- echo "$Env:RUNTEST_ARGS" |
47801
d5d46dcd356b
windows-ci: clean up the Heptapod CI file now that the baseline is solid
Raphaël Gomès <rgomes@octobus.net>
parents:
47791
diff
changeset
|
122 |
- echo "$Env:TMP" |
d5d46dcd356b
windows-ci: clean up the Heptapod CI file now that the baseline is solid
Raphaël Gomès <rgomes@octobus.net>
parents:
47791
diff
changeset
|
123 |
- echo "$Env:TEMP" |
47570
bc01b8ad6134
ci-windows: introduce manual windows CI
Raphaël Gomès <rgomes@octobus.net>
parents:
47040
diff
changeset
|
124 |
|
bc01b8ad6134
ci-windows: introduce manual windows CI
Raphaël Gomès <rgomes@octobus.net>
parents:
47040
diff
changeset
|
125 |
- C:/MinGW/msys/1.0/bin/sh.exe --login -c 'cd "$OLDPWD" && HGTESTS_ALLOW_NETIO="$TEST_HGTESTS_ALLOW_NETIO" HGMODULEPOLICY="$TEST_HGMODULEPOLICY" $PYTHON tests/run-tests.py --color=always $RUNTEST_ARGS' |
bc01b8ad6134
ci-windows: introduce manual windows CI
Raphaël Gomès <rgomes@octobus.net>
parents:
47040
diff
changeset
|
126 |
|
49040
469b9ee336a6
heptapod-ci: remove useless mentions of Python 3
Raphaël Gomès <rgomes@octobus.net>
parents:
48898
diff
changeset
|
127 |
windows: |
47570
bc01b8ad6134
ci-windows: introduce manual windows CI
Raphaël Gomès <rgomes@octobus.net>
parents:
47040
diff
changeset
|
128 |
<<: *windows_runtests |
bc01b8ad6134
ci-windows: introduce manual windows CI
Raphaël Gomès <rgomes@octobus.net>
parents:
47040
diff
changeset
|
129 |
tags: |
bc01b8ad6134
ci-windows: introduce manual windows CI
Raphaël Gomès <rgomes@octobus.net>
parents:
47040
diff
changeset
|
130 |
- windows |
bc01b8ad6134
ci-windows: introduce manual windows CI
Raphaël Gomès <rgomes@octobus.net>
parents:
47040
diff
changeset
|
131 |
variables: |
47645
b41b4c1c644f
windows: enforce the module policy to be c for test
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47570
diff
changeset
|
132 |
TEST_HGMODULEPOLICY: "c" |
47801
d5d46dcd356b
windows-ci: clean up the Heptapod CI file now that the baseline is solid
Raphaël Gomès <rgomes@octobus.net>
parents:
47791
diff
changeset
|
133 |
RUNTEST_ARGS: "--blacklist C:/Temp/check-tests.txt" |
47570
bc01b8ad6134
ci-windows: introduce manual windows CI
Raphaël Gomès <rgomes@octobus.net>
parents:
47040
diff
changeset
|
134 |
PYTHON: py -3 |
47822
9261326dd032
ci: run --pyoxidized tests on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
47820
diff
changeset
|
135 |
|
49040
469b9ee336a6
heptapod-ci: remove useless mentions of Python 3
Raphaël Gomès <rgomes@octobus.net>
parents:
48898
diff
changeset
|
136 |
windows-pyox: |
47822
9261326dd032
ci: run --pyoxidized tests on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
47820
diff
changeset
|
137 |
<<: *windows_runtests |
9261326dd032
ci: run --pyoxidized tests on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
47820
diff
changeset
|
138 |
tags: |
9261326dd032
ci: run --pyoxidized tests on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
47820
diff
changeset
|
139 |
- windows |
9261326dd032
ci: run --pyoxidized tests on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
47820
diff
changeset
|
140 |
variables: |
9261326dd032
ci: run --pyoxidized tests on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
47820
diff
changeset
|
141 |
TEST_HGMODULEPOLICY: "c" |
9261326dd032
ci: run --pyoxidized tests on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
47820
diff
changeset
|
142 |
RUNTEST_ARGS: "--blacklist C:/Temp/check-tests.txt --pyoxidized" |
9261326dd032
ci: run --pyoxidized tests on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
47820
diff
changeset
|
143 |
PYTHON: py -3 |