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