author | Pierre-Yves David <pierre-yves.david@octobus.net> |
Sun, 29 Nov 2020 15:17:14 +0100 | |
changeset 45980 | 3302584ac0c7 |
parent 45974 | 3a3a510617e5 |
child 46006 | c7f40562389f |
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 |
|
45912
063cf294d5e0
heptapod-ci: hosting base image on registry.heptapod.net
Georges Racinet <georges.racinet@octobus.net>
parents:
45612
diff
changeset
|
4 |
image: registry.heptapod.net/mercurial/ci-images/mercurial-core |
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 |
|
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
|
6 |
# The runner made a clone as root. |
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
|
7 |
# We make a new clone owned by user used to run the step. |
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
|
8 |
before_script: |
45980
3302584ac0c7
heptapod-ci: do not publish changeset when doing the local clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
45974
diff
changeset
|
9 |
- hg clone . /tmp/mercurial-ci/ --noupdate --config phases.publish=no |
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
|
10 |
- hg -R /tmp/mercurial-ci/ update `hg log --rev '.' --template '{node}'` |
45052
93e8e6e0b5fb
heptapod-ci: build rhg before tests run
Antoine Cezar <antoine.cezar@octobus.net>
parents:
44977
diff
changeset
|
11 |
- cd /tmp/mercurial-ci/rust/rhg |
93e8e6e0b5fb
heptapod-ci: build rhg before tests run
Antoine Cezar <antoine.cezar@octobus.net>
parents:
44977
diff
changeset
|
12 |
- cargo build |
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
|
13 |
- cd /tmp/mercurial-ci/ |
44209
daf083140b5b
heptapod-ci: fix test paths in the listing file
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44204
diff
changeset
|
14 |
- ls -1 tests/test-check-*.* > /tmp/check-tests.txt |
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
|
15 |
|
44168
2aa2408e7515
heptapod-ci: run test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44167
diff
changeset
|
16 |
variables: |
2aa2408e7515
heptapod-ci: run test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44167
diff
changeset
|
17 |
PYTHON: python |
44198
4bd35d25903f
heptapod-ci: use strict module policy
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44172
diff
changeset
|
18 |
TEST_HGMODULEPOLICY: "allow" |
44168
2aa2408e7515
heptapod-ci: run test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44167
diff
changeset
|
19 |
|
2aa2408e7515
heptapod-ci: run test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44167
diff
changeset
|
20 |
.runtests_template: &runtests |
45974
3a3a510617e5
heptapod-ci: add a explicite "test" phases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
45912
diff
changeset
|
21 |
stage: tests |
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
|
22 |
script: |
44168
2aa2408e7515
heptapod-ci: run test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44167
diff
changeset
|
23 |
- 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
|
24 |
- echo "$RUNTEST_ARGS" |
44204
b7760c2d33de
heptapod-ci: run the test from outside the test directory
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44198
diff
changeset
|
25 |
- 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
|
26 |
|
2aa2408e7515
heptapod-ci: run test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44167
diff
changeset
|
27 |
checks-py2: |
2aa2408e7515
heptapod-ci: run test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44167
diff
changeset
|
28 |
<<: *runtests |
44170
8814308e83bb
heptapod-ci: run the normal test suite
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44169
diff
changeset
|
29 |
variables: |
8814308e83bb
heptapod-ci: run the normal test suite
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44169
diff
changeset
|
30 |
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
|
31 |
|
2aa2408e7515
heptapod-ci: run test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44167
diff
changeset
|
32 |
checks-py3: |
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 |
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
|
37 |
|
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 |
rust-cargo-test-py2: &rust_cargo_test |
45974
3a3a510617e5
heptapod-ci: add a explicite "test" phases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
45912
diff
changeset
|
39 |
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
|
40 |
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
|
41 |
- 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
|
42 |
- make rust-tests |
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 |
|
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 |
rust-cargo-test-py3: |
45974
3a3a510617e5
heptapod-ci: add a explicite "test" phases
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
45912
diff
changeset
|
45 |
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
|
46 |
<<: *rust_cargo_test |
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 |
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
|
48 |
PYTHON: python3 |
44170
8814308e83bb
heptapod-ci: run the normal test suite
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44169
diff
changeset
|
49 |
|
45612
e604a3c03ab9
rust: introduce `dirstate-tree` cargo feature
Raphaël Gomès <rgomes@octobus.net>
parents:
45052
diff
changeset
|
50 |
rust-cargo-test-py3-dirstate-tree: |
e604a3c03ab9
rust: introduce `dirstate-tree` cargo feature
Raphaël Gomès <rgomes@octobus.net>
parents:
45052
diff
changeset
|
51 |
<<: *rust_cargo_test |
e604a3c03ab9
rust: introduce `dirstate-tree` cargo feature
Raphaël Gomès <rgomes@octobus.net>
parents:
45052
diff
changeset
|
52 |
variables: |
e604a3c03ab9
rust: introduce `dirstate-tree` cargo feature
Raphaël Gomès <rgomes@octobus.net>
parents:
45052
diff
changeset
|
53 |
PYTHON: python3 |
e604a3c03ab9
rust: introduce `dirstate-tree` cargo feature
Raphaël Gomès <rgomes@octobus.net>
parents:
45052
diff
changeset
|
54 |
HG_RUST_FEATURES: dirstate-tree |
e604a3c03ab9
rust: introduce `dirstate-tree` cargo feature
Raphaël Gomès <rgomes@octobus.net>
parents:
45052
diff
changeset
|
55 |
|
44170
8814308e83bb
heptapod-ci: run the normal test suite
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44169
diff
changeset
|
56 |
test-py2: |
8814308e83bb
heptapod-ci: run the normal test suite
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44169
diff
changeset
|
57 |
<<: *runtests |
8814308e83bb
heptapod-ci: run the normal test suite
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44169
diff
changeset
|
58 |
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
|
59 |
RUNTEST_ARGS: " --no-rust --blacklist /tmp/check-tests.txt" |
44198
4bd35d25903f
heptapod-ci: use strict module policy
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44172
diff
changeset
|
60 |
TEST_HGMODULEPOLICY: "c" |
44170
8814308e83bb
heptapod-ci: run the normal test suite
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44169
diff
changeset
|
61 |
|
8814308e83bb
heptapod-ci: run the normal test suite
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44169
diff
changeset
|
62 |
test-py3: |
8814308e83bb
heptapod-ci: run the normal test suite
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44169
diff
changeset
|
63 |
<<: *runtests |
8814308e83bb
heptapod-ci: run the normal test suite
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44169
diff
changeset
|
64 |
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
|
65 |
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
|
66 |
PYTHON: python3 |
44198
4bd35d25903f
heptapod-ci: use strict module policy
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44172
diff
changeset
|
67 |
TEST_HGMODULEPOLICY: "c" |
44171
6733c565ca46
heptapod-ci: run the --pure test too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44170
diff
changeset
|
68 |
|
6733c565ca46
heptapod-ci: run the --pure test too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44170
diff
changeset
|
69 |
test-py2-pure: |
6733c565ca46
heptapod-ci: run the --pure test too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44170
diff
changeset
|
70 |
<<: *runtests |
6733c565ca46
heptapod-ci: run the --pure test too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44170
diff
changeset
|
71 |
variables: |
6733c565ca46
heptapod-ci: run the --pure test too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44170
diff
changeset
|
72 |
RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" |
44198
4bd35d25903f
heptapod-ci: use strict module policy
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44172
diff
changeset
|
73 |
TEST_HGMODULEPOLICY: "py" |
44171
6733c565ca46
heptapod-ci: run the --pure test too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44170
diff
changeset
|
74 |
|
6733c565ca46
heptapod-ci: run the --pure test too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44170
diff
changeset
|
75 |
test-py3-pure: |
6733c565ca46
heptapod-ci: run the --pure test too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44170
diff
changeset
|
76 |
<<: *runtests |
6733c565ca46
heptapod-ci: run the --pure test too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44170
diff
changeset
|
77 |
variables: |
6733c565ca46
heptapod-ci: run the --pure test too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44170
diff
changeset
|
78 |
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
|
79 |
PYTHON: python3 |
44198
4bd35d25903f
heptapod-ci: use strict module policy
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44172
diff
changeset
|
80 |
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
|
81 |
|
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
|
82 |
test-py2-rust: |
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
|
83 |
<<: *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
|
84 |
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
|
85 |
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
|
86 |
RUNTEST_ARGS: "--rust --blacklist /tmp/check-tests.txt" |
44198
4bd35d25903f
heptapod-ci: use strict module policy
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44172
diff
changeset
|
87 |
TEST_HGMODULEPOLICY: "rust+c" |
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
|
88 |
|
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
|
89 |
test-py3-rust: |
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
|
90 |
<<: *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
|
91 |
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
|
92 |
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
|
93 |
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
|
94 |
PYTHON: python3 |
44198
4bd35d25903f
heptapod-ci: use strict module policy
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44172
diff
changeset
|
95 |
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
|
96 |
|
45612
e604a3c03ab9
rust: introduce `dirstate-tree` cargo feature
Raphaël Gomès <rgomes@octobus.net>
parents:
45052
diff
changeset
|
97 |
test-py3-rust-dirstate-tree: |
e604a3c03ab9
rust: introduce `dirstate-tree` cargo feature
Raphaël Gomès <rgomes@octobus.net>
parents:
45052
diff
changeset
|
98 |
<<: *runtests |
e604a3c03ab9
rust: introduce `dirstate-tree` cargo feature
Raphaël Gomès <rgomes@octobus.net>
parents:
45052
diff
changeset
|
99 |
variables: |
e604a3c03ab9
rust: introduce `dirstate-tree` cargo feature
Raphaël Gomès <rgomes@octobus.net>
parents:
45052
diff
changeset
|
100 |
HGWITHRUSTEXT: cpython |
e604a3c03ab9
rust: introduce `dirstate-tree` cargo feature
Raphaël Gomès <rgomes@octobus.net>
parents:
45052
diff
changeset
|
101 |
RUNTEST_ARGS: "--rust --blacklist /tmp/check-tests.txt" |
e604a3c03ab9
rust: introduce `dirstate-tree` cargo feature
Raphaël Gomès <rgomes@octobus.net>
parents:
45052
diff
changeset
|
102 |
PYTHON: python3 |
e604a3c03ab9
rust: introduce `dirstate-tree` cargo feature
Raphaël Gomès <rgomes@octobus.net>
parents:
45052
diff
changeset
|
103 |
TEST_HGMODULEPOLICY: "rust+c" |
e604a3c03ab9
rust: introduce `dirstate-tree` cargo feature
Raphaël Gomès <rgomes@octobus.net>
parents:
45052
diff
changeset
|
104 |
HG_RUST_FEATURES: "dirstate-tree" |
e604a3c03ab9
rust: introduce `dirstate-tree` cargo feature
Raphaël Gomès <rgomes@octobus.net>
parents:
45052
diff
changeset
|
105 |
|
44977
aa568b6c6a10
heptapod-ci: also run tests for chg on python 2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44586
diff
changeset
|
106 |
test-py2-chg: |
aa568b6c6a10
heptapod-ci: also run tests for chg on python 2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44586
diff
changeset
|
107 |
<<: *runtests |
aa568b6c6a10
heptapod-ci: also run tests for chg on python 2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44586
diff
changeset
|
108 |
variables: |
aa568b6c6a10
heptapod-ci: also run tests for chg on python 2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44586
diff
changeset
|
109 |
RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt --chg" |
aa568b6c6a10
heptapod-ci: also run tests for chg on python 2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44586
diff
changeset
|
110 |
TEST_HGMODULEPOLICY: "c" |