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