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