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