Mercurial > hg-stable
annotate contrib/heptapod-ci.yml @ 44171:6733c565ca46 stable
heptapod-ci: run the --pure test too
These are usually rarely run by individual developper because they are slow.
However it is important that they stay happy.
Differential Revision: https://phab.mercurial-scm.org/D8016
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 16 Nov 2019 12:26:54 +0100 |
parents | 8814308e83bb |
children | 541a509a47a8 |
rev | line source |
---|---|
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
|
1 image: octobus/ci-mercurial-core |
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
|
2 |
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
|
3 # 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
|
4 # 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
|
5 before_script: |
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 - hg clone . /tmp/mercurial-ci/ --noupdate |
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 - hg -R /tmp/mercurial-ci/ update `hg log --rev '.' --template '{node}'` |
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 - cd /tmp/mercurial-ci/ |
44170
8814308e83bb
heptapod-ci: run the normal test suite
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44169
diff
changeset
|
9 - (cd tests; ls -1 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
|
10 |
44168
2aa2408e7515
heptapod-ci: run test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44167
diff
changeset
|
11 variables: |
2aa2408e7515
heptapod-ci: run test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44167
diff
changeset
|
12 PYTHON: python |
2aa2408e7515
heptapod-ci: run test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44167
diff
changeset
|
13 |
2aa2408e7515
heptapod-ci: run test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44167
diff
changeset
|
14 .runtests_template: &runtests |
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 script: |
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
|
16 - cd tests/ |
44168
2aa2408e7515
heptapod-ci: run test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44167
diff
changeset
|
17 - 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
|
18 - echo "$RUNTEST_ARGS" |
8814308e83bb
heptapod-ci: run the normal test suite
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44169
diff
changeset
|
19 - $PYTHON 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
|
20 |
2aa2408e7515
heptapod-ci: run test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44167
diff
changeset
|
21 checks-py2: |
2aa2408e7515
heptapod-ci: run test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44167
diff
changeset
|
22 <<: *runtests |
44170
8814308e83bb
heptapod-ci: run the normal test suite
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44169
diff
changeset
|
23 variables: |
8814308e83bb
heptapod-ci: run the normal test suite
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44169
diff
changeset
|
24 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
|
25 |
2aa2408e7515
heptapod-ci: run test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44167
diff
changeset
|
26 checks-py3: |
2aa2408e7515
heptapod-ci: run test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44167
diff
changeset
|
27 <<: *runtests |
2aa2408e7515
heptapod-ci: run test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44167
diff
changeset
|
28 variables: |
44170
8814308e83bb
heptapod-ci: run the normal test suite
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44169
diff
changeset
|
29 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
|
30 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
|
31 |
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
|
32 rust-cargo-test-py2: &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
|
33 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
|
34 - 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
|
35 - 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
|
36 |
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 rust-cargo-test-py3: |
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 |
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
|
39 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
|
40 PYTHON: python3 |
44170
8814308e83bb
heptapod-ci: run the normal test suite
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44169
diff
changeset
|
41 |
8814308e83bb
heptapod-ci: run the normal test suite
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44169
diff
changeset
|
42 test-py2: |
8814308e83bb
heptapod-ci: run the normal test suite
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44169
diff
changeset
|
43 <<: *runtests |
8814308e83bb
heptapod-ci: run the normal test suite
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44169
diff
changeset
|
44 variables: |
8814308e83bb
heptapod-ci: run the normal test suite
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44169
diff
changeset
|
45 RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt" |
8814308e83bb
heptapod-ci: run the normal test suite
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44169
diff
changeset
|
46 |
8814308e83bb
heptapod-ci: run the normal test suite
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44169
diff
changeset
|
47 test-py3: |
8814308e83bb
heptapod-ci: run the normal test suite
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44169
diff
changeset
|
48 <<: *runtests |
8814308e83bb
heptapod-ci: run the normal test suite
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44169
diff
changeset
|
49 variables: |
8814308e83bb
heptapod-ci: run the normal test suite
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44169
diff
changeset
|
50 RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt" |
8814308e83bb
heptapod-ci: run the normal test suite
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44169
diff
changeset
|
51 PYTHON: python3 |
44171
6733c565ca46
heptapod-ci: run the --pure test too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44170
diff
changeset
|
52 |
6733c565ca46
heptapod-ci: run the --pure test too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44170
diff
changeset
|
53 test-py2-pure: |
6733c565ca46
heptapod-ci: run the --pure test too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44170
diff
changeset
|
54 <<: *runtests |
6733c565ca46
heptapod-ci: run the --pure test too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44170
diff
changeset
|
55 variables: |
6733c565ca46
heptapod-ci: run the --pure test too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44170
diff
changeset
|
56 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
|
57 |
6733c565ca46
heptapod-ci: run the --pure test too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44170
diff
changeset
|
58 test-py3-pure: |
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 |