Show More
@@ -1,104 +1,110 b'' | |||||
|
1 | stages: | |||
|
2 | - tests | |||
|
3 | ||||
1 | image: registry.heptapod.net/mercurial/ci-images/mercurial-core |
|
4 | image: registry.heptapod.net/mercurial/ci-images/mercurial-core | |
2 |
|
5 | |||
3 | # The runner made a clone as root. |
|
6 | # The runner made a clone as root. | |
4 | # We make a new clone owned by user used to run the step. |
|
7 | # We make a new clone owned by user used to run the step. | |
5 | before_script: |
|
8 | before_script: | |
6 | - hg clone . /tmp/mercurial-ci/ --noupdate |
|
9 | - hg clone . /tmp/mercurial-ci/ --noupdate | |
7 | - hg -R /tmp/mercurial-ci/ update `hg log --rev '.' --template '{node}'` |
|
10 | - hg -R /tmp/mercurial-ci/ update `hg log --rev '.' --template '{node}'` | |
8 | - cd /tmp/mercurial-ci/rust/rhg |
|
11 | - cd /tmp/mercurial-ci/rust/rhg | |
9 | - cargo build |
|
12 | - cargo build | |
10 | - cd /tmp/mercurial-ci/ |
|
13 | - cd /tmp/mercurial-ci/ | |
11 | - ls -1 tests/test-check-*.* > /tmp/check-tests.txt |
|
14 | - ls -1 tests/test-check-*.* > /tmp/check-tests.txt | |
12 |
|
15 | |||
13 | variables: |
|
16 | variables: | |
14 | PYTHON: python |
|
17 | PYTHON: python | |
15 | TEST_HGMODULEPOLICY: "allow" |
|
18 | TEST_HGMODULEPOLICY: "allow" | |
16 |
|
19 | |||
17 | .runtests_template: &runtests |
|
20 | .runtests_template: &runtests | |
|
21 | stage: tests | |||
18 | script: |
|
22 | script: | |
19 | - echo "python used, $PYTHON" |
|
23 | - echo "python used, $PYTHON" | |
20 | - echo "$RUNTEST_ARGS" |
|
24 | - echo "$RUNTEST_ARGS" | |
21 | - HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" tests/run-tests.py --color=always $RUNTEST_ARGS |
|
25 | - HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" tests/run-tests.py --color=always $RUNTEST_ARGS | |
22 |
|
26 | |||
23 | checks-py2: |
|
27 | checks-py2: | |
24 | <<: *runtests |
|
28 | <<: *runtests | |
25 | variables: |
|
29 | variables: | |
26 | RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt" |
|
30 | RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt" | |
27 |
|
31 | |||
28 | checks-py3: |
|
32 | checks-py3: | |
29 | <<: *runtests |
|
33 | <<: *runtests | |
30 | variables: |
|
34 | variables: | |
31 | RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt" |
|
35 | RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt" | |
32 | PYTHON: python3 |
|
36 | PYTHON: python3 | |
33 |
|
37 | |||
34 | rust-cargo-test-py2: &rust_cargo_test |
|
38 | rust-cargo-test-py2: &rust_cargo_test | |
|
39 | stage: tests | |||
35 | script: |
|
40 | script: | |
36 | - echo "python used, $PYTHON" |
|
41 | - echo "python used, $PYTHON" | |
37 | - make rust-tests |
|
42 | - make rust-tests | |
38 |
|
43 | |||
39 | rust-cargo-test-py3: |
|
44 | rust-cargo-test-py3: | |
|
45 | stage: tests | |||
40 | <<: *rust_cargo_test |
|
46 | <<: *rust_cargo_test | |
41 | variables: |
|
47 | variables: | |
42 | PYTHON: python3 |
|
48 | PYTHON: python3 | |
43 |
|
49 | |||
44 | rust-cargo-test-py3-dirstate-tree: |
|
50 | rust-cargo-test-py3-dirstate-tree: | |
45 | <<: *rust_cargo_test |
|
51 | <<: *rust_cargo_test | |
46 | variables: |
|
52 | variables: | |
47 | PYTHON: python3 |
|
53 | PYTHON: python3 | |
48 | HG_RUST_FEATURES: dirstate-tree |
|
54 | HG_RUST_FEATURES: dirstate-tree | |
49 |
|
55 | |||
50 | test-py2: |
|
56 | test-py2: | |
51 | <<: *runtests |
|
57 | <<: *runtests | |
52 | variables: |
|
58 | variables: | |
53 | RUNTEST_ARGS: " --no-rust --blacklist /tmp/check-tests.txt" |
|
59 | RUNTEST_ARGS: " --no-rust --blacklist /tmp/check-tests.txt" | |
54 | TEST_HGMODULEPOLICY: "c" |
|
60 | TEST_HGMODULEPOLICY: "c" | |
55 |
|
61 | |||
56 | test-py3: |
|
62 | test-py3: | |
57 | <<: *runtests |
|
63 | <<: *runtests | |
58 | variables: |
|
64 | variables: | |
59 | RUNTEST_ARGS: " --no-rust --blacklist /tmp/check-tests.txt" |
|
65 | RUNTEST_ARGS: " --no-rust --blacklist /tmp/check-tests.txt" | |
60 | PYTHON: python3 |
|
66 | PYTHON: python3 | |
61 | TEST_HGMODULEPOLICY: "c" |
|
67 | TEST_HGMODULEPOLICY: "c" | |
62 |
|
68 | |||
63 | test-py2-pure: |
|
69 | test-py2-pure: | |
64 | <<: *runtests |
|
70 | <<: *runtests | |
65 | variables: |
|
71 | variables: | |
66 | RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" |
|
72 | RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" | |
67 | TEST_HGMODULEPOLICY: "py" |
|
73 | TEST_HGMODULEPOLICY: "py" | |
68 |
|
74 | |||
69 | test-py3-pure: |
|
75 | test-py3-pure: | |
70 | <<: *runtests |
|
76 | <<: *runtests | |
71 | variables: |
|
77 | variables: | |
72 | RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" |
|
78 | RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" | |
73 | PYTHON: python3 |
|
79 | PYTHON: python3 | |
74 | TEST_HGMODULEPOLICY: "py" |
|
80 | TEST_HGMODULEPOLICY: "py" | |
75 |
|
81 | |||
76 | test-py2-rust: |
|
82 | test-py2-rust: | |
77 | <<: *runtests |
|
83 | <<: *runtests | |
78 | variables: |
|
84 | variables: | |
79 | HGWITHRUSTEXT: cpython |
|
85 | HGWITHRUSTEXT: cpython | |
80 | RUNTEST_ARGS: "--rust --blacklist /tmp/check-tests.txt" |
|
86 | RUNTEST_ARGS: "--rust --blacklist /tmp/check-tests.txt" | |
81 | TEST_HGMODULEPOLICY: "rust+c" |
|
87 | TEST_HGMODULEPOLICY: "rust+c" | |
82 |
|
88 | |||
83 | test-py3-rust: |
|
89 | test-py3-rust: | |
84 | <<: *runtests |
|
90 | <<: *runtests | |
85 | variables: |
|
91 | variables: | |
86 | HGWITHRUSTEXT: cpython |
|
92 | HGWITHRUSTEXT: cpython | |
87 | RUNTEST_ARGS: "--rust --blacklist /tmp/check-tests.txt" |
|
93 | RUNTEST_ARGS: "--rust --blacklist /tmp/check-tests.txt" | |
88 | PYTHON: python3 |
|
94 | PYTHON: python3 | |
89 | TEST_HGMODULEPOLICY: "rust+c" |
|
95 | TEST_HGMODULEPOLICY: "rust+c" | |
90 |
|
96 | |||
91 | test-py3-rust-dirstate-tree: |
|
97 | test-py3-rust-dirstate-tree: | |
92 | <<: *runtests |
|
98 | <<: *runtests | |
93 | variables: |
|
99 | variables: | |
94 | HGWITHRUSTEXT: cpython |
|
100 | HGWITHRUSTEXT: cpython | |
95 | RUNTEST_ARGS: "--rust --blacklist /tmp/check-tests.txt" |
|
101 | RUNTEST_ARGS: "--rust --blacklist /tmp/check-tests.txt" | |
96 | PYTHON: python3 |
|
102 | PYTHON: python3 | |
97 | TEST_HGMODULEPOLICY: "rust+c" |
|
103 | TEST_HGMODULEPOLICY: "rust+c" | |
98 | HG_RUST_FEATURES: "dirstate-tree" |
|
104 | HG_RUST_FEATURES: "dirstate-tree" | |
99 |
|
105 | |||
100 | test-py2-chg: |
|
106 | test-py2-chg: | |
101 | <<: *runtests |
|
107 | <<: *runtests | |
102 | variables: |
|
108 | variables: | |
103 | RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt --chg" |
|
109 | RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt --chg" | |
104 | TEST_HGMODULEPOLICY: "c" |
|
110 | TEST_HGMODULEPOLICY: "c" |
General Comments 0
You need to be logged in to leave comments.
Login now