Show More
@@ -5,7 +5,7 b' stages:' | |||||
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 | TEST_HGTESTS_ALLOW_NETIO: "0" |
|
11 | TEST_HGTESTS_ALLOW_NETIO: "0" | |
@@ -30,17 +30,30 b' variables:' | |||||
30 | - echo "$RUNTEST_ARGS" |
|
30 | - echo "$RUNTEST_ARGS" | |
31 | - HGTESTS_ALLOW_NETIO="$TEST_HGTESTS_ALLOW_NETIO" HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" tests/run-tests.py --color=always $RUNTEST_ARGS |
|
31 | - HGTESTS_ALLOW_NETIO="$TEST_HGTESTS_ALLOW_NETIO" HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" tests/run-tests.py --color=always $RUNTEST_ARGS | |
32 |
|
32 | |||
33 | checks: |
|
33 | checks-py2: | |
34 | <<: *runtests |
|
34 | <<: *runtests | |
35 | variables: |
|
35 | variables: | |
36 | RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt" |
|
36 | RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt" | |
37 |
|
37 | |||
38 | rust-cargo-test: |
|
38 | checks-py3: | |
|
39 | <<: *runtests | |||
|
40 | variables: | |||
|
41 | RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt" | |||
|
42 | PYTHON: python3 | |||
|
43 | ||||
|
44 | rust-cargo-test-py2: &rust_cargo_test | |||
39 | <<: *all |
|
45 | <<: *all | |
40 | stage: tests |
|
46 | stage: tests | |
41 | script: |
|
47 | script: | |
|
48 | - echo "python used, $PYTHON" | |||
42 | - make rust-tests |
|
49 | - make rust-tests | |
43 |
|
50 | |||
|
51 | rust-cargo-test-py3: | |||
|
52 | stage: tests | |||
|
53 | <<: *rust_cargo_test | |||
|
54 | variables: | |||
|
55 | PYTHON: python3 | |||
|
56 | ||||
44 | phabricator-refresh: |
|
57 | phabricator-refresh: | |
45 | stage: phabricator |
|
58 | stage: phabricator | |
46 | variables: |
|
59 | variables: | |
@@ -54,40 +67,71 b' phabricator-refresh:' | |||||
54 | ./contrib/phab-refresh-stack.sh --comment "$DEFAULT_COMMENT"; |
|
67 | ./contrib/phab-refresh-stack.sh --comment "$DEFAULT_COMMENT"; | |
55 | fi |
|
68 | fi | |
56 |
|
69 | |||
57 | test: |
|
70 | test-py2: | |
58 | <<: *runtests |
|
71 | <<: *runtests | |
59 | variables: |
|
72 | variables: | |
60 | RUNTEST_ARGS: " --no-rust --blacklist /tmp/check-tests.txt" |
|
73 | RUNTEST_ARGS: " --no-rust --blacklist /tmp/check-tests.txt" | |
61 | TEST_HGMODULEPOLICY: "c" |
|
74 | TEST_HGMODULEPOLICY: "c" | |
62 | TEST_HGTESTS_ALLOW_NETIO: "1" |
|
75 | TEST_HGTESTS_ALLOW_NETIO: "1" | |
63 |
|
76 | |||
64 |
test-p |
|
77 | test-py3: | |
|
78 | <<: *runtests | |||
|
79 | variables: | |||
|
80 | RUNTEST_ARGS: " --no-rust --blacklist /tmp/check-tests.txt" | |||
|
81 | PYTHON: python3 | |||
|
82 | TEST_HGMODULEPOLICY: "c" | |||
|
83 | TEST_HGTESTS_ALLOW_NETIO: "1" | |||
|
84 | ||||
|
85 | test-py2-pure: | |||
65 | <<: *runtests |
|
86 | <<: *runtests | |
66 | variables: |
|
87 | variables: | |
67 | RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" |
|
88 | RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" | |
68 | TEST_HGMODULEPOLICY: "py" |
|
89 | TEST_HGMODULEPOLICY: "py" | |
69 |
|
90 | |||
70 | test-rust: |
|
91 | test-py3-pure: | |
|
92 | <<: *runtests | |||
|
93 | variables: | |||
|
94 | RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" | |||
|
95 | PYTHON: python3 | |||
|
96 | TEST_HGMODULEPOLICY: "py" | |||
|
97 | ||||
|
98 | test-py2-rust: | |||
71 | <<: *runtests |
|
99 | <<: *runtests | |
72 | variables: |
|
100 | variables: | |
73 | HGWITHRUSTEXT: cpython |
|
101 | HGWITHRUSTEXT: cpython | |
74 | RUNTEST_ARGS: "--rust --blacklist /tmp/check-tests.txt" |
|
102 | RUNTEST_ARGS: "--rust --blacklist /tmp/check-tests.txt" | |
75 | TEST_HGMODULEPOLICY: "rust+c" |
|
103 | TEST_HGMODULEPOLICY: "rust+c" | |
76 |
|
104 | |||
77 |
test- |
|
105 | test-py3-rust: | |
|
106 | <<: *runtests | |||
|
107 | variables: | |||
|
108 | HGWITHRUSTEXT: cpython | |||
|
109 | RUNTEST_ARGS: "--rust --blacklist /tmp/check-tests.txt" | |||
|
110 | PYTHON: python3 | |||
|
111 | TEST_HGMODULEPOLICY: "rust+c" | |||
|
112 | ||||
|
113 | test-py3-rhg: | |||
78 | <<: *runtests |
|
114 | <<: *runtests | |
79 | variables: |
|
115 | variables: | |
80 | HGWITHRUSTEXT: cpython |
|
116 | HGWITHRUSTEXT: cpython | |
81 | RUNTEST_ARGS: "--rust --rhg --blacklist /tmp/check-tests.txt" |
|
117 | RUNTEST_ARGS: "--rust --rhg --blacklist /tmp/check-tests.txt" | |
|
118 | PYTHON: python3 | |||
82 | TEST_HGMODULEPOLICY: "rust+c" |
|
119 | TEST_HGMODULEPOLICY: "rust+c" | |
83 |
|
120 | |||
84 | test-chg: |
|
121 | test-py2-chg: | |
85 | <<: *runtests |
|
122 | <<: *runtests | |
86 | variables: |
|
123 | variables: | |
87 | RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt --chg" |
|
124 | RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt --chg" | |
88 | TEST_HGMODULEPOLICY: "c" |
|
125 | TEST_HGMODULEPOLICY: "c" | |
89 |
|
126 | |||
90 | check-pytype: |
|
127 | test-py3-chg: | |
|
128 | <<: *runtests | |||
|
129 | variables: | |||
|
130 | PYTHON: python3 | |||
|
131 | RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt --chg" | |||
|
132 | TEST_HGMODULEPOLICY: "c" | |||
|
133 | ||||
|
134 | check-pytype-py3: | |||
91 | extends: .runtests_template |
|
135 | extends: .runtests_template | |
92 | before_script: |
|
136 | before_script: | |
93 | - hg clone . /tmp/mercurial-ci/ --noupdate --config phases.publish=no |
|
137 | - hg clone . /tmp/mercurial-ci/ --noupdate --config phases.publish=no | |
@@ -98,6 +142,7 b' check-pytype:' | |||||
98 | variables: |
|
142 | variables: | |
99 | RUNTEST_ARGS: " --allow-slow-tests tests/test-check-pytype.t" |
|
143 | RUNTEST_ARGS: " --allow-slow-tests tests/test-check-pytype.t" | |
100 | HGTEST_SLOWTIMEOUT: "3600" |
|
144 | HGTEST_SLOWTIMEOUT: "3600" | |
|
145 | PYTHON: python3 | |||
101 | TEST_HGMODULEPOLICY: "c" |
|
146 | TEST_HGMODULEPOLICY: "c" | |
102 |
|
147 | |||
103 | # `sh.exe --login` sets a couple of extra environment variables that are defined |
|
148 | # `sh.exe --login` sets a couple of extra environment variables that are defined |
General Comments 0
You need to be logged in to leave comments.
Login now