##// END OF EJS Templates
windows-ci: temporarily allow Windows jobs to fail...
Raphaël Gomès -
r49269:750920b1 5.9.2 stable
parent child Browse files
Show More
@@ -1,187 +1,188 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 TEST_HGTESTS_ALLOW_NETIO: "0"
12 12
13 13 .all_template: &all
14 14 when: always
15 15
16 16 .runtests_template: &runtests
17 17 <<: *all
18 18 stage: tests
19 19 # The runner made a clone as root.
20 20 # We make a new clone owned by user used to run the step.
21 21 before_script:
22 22 - hg clone . /tmp/mercurial-ci/ --noupdate --config phases.publish=no
23 23 - hg -R /tmp/mercurial-ci/ update `hg log --rev '.' --template '{node}'`
24 24 - cd /tmp/mercurial-ci/
25 25 - ls -1 tests/test-check-*.* > /tmp/check-tests.txt
26 26 - black --version
27 27 - clang-format --version
28 28 script:
29 29 - echo "python used, $PYTHON"
30 30 - echo "$RUNTEST_ARGS"
31 31 - HGTESTS_ALLOW_NETIO="$TEST_HGTESTS_ALLOW_NETIO" HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" tests/run-tests.py --color=always $RUNTEST_ARGS
32 32
33 33 checks-py2:
34 34 <<: *runtests
35 35 variables:
36 36 RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt"
37 37
38 38 checks-py3:
39 39 <<: *runtests
40 40 variables:
41 41 RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt"
42 42 PYTHON: python3
43 43
44 44 rust-cargo-test-py2: &rust_cargo_test
45 45 <<: *all
46 46 stage: tests
47 47 script:
48 48 - echo "python used, $PYTHON"
49 49 - make rust-tests
50 50
51 51 rust-cargo-test-py3:
52 52 stage: tests
53 53 <<: *rust_cargo_test
54 54 variables:
55 55 PYTHON: python3
56 56
57 57 phabricator-refresh:
58 58 stage: phabricator
59 59 variables:
60 60 DEFAULT_COMMENT: ":white_check_mark: refresh by Heptapod after a successful CI run (:octopus: :green_heart:)"
61 61 STABLE_COMMENT: ":white_check_mark: refresh by Heptapod after a successful CI run (:octopus: :green_heart:)\n⚠ This patch is intended for stable ⚠\n{image https://media.giphy.com/media/nYI8SmmChYXK0/source.gif}"
62 62 script:
63 63 - |
64 64 if [ `hg branch` == "stable" ]; then
65 65 ./contrib/phab-refresh-stack.sh --comment "$STABLE_COMMENT";
66 66 else
67 67 ./contrib/phab-refresh-stack.sh --comment "$DEFAULT_COMMENT";
68 68 fi
69 69
70 70 test-py2:
71 71 <<: *runtests
72 72 variables:
73 73 RUNTEST_ARGS: " --no-rust --blacklist /tmp/check-tests.txt"
74 74 TEST_HGMODULEPOLICY: "c"
75 75 TEST_HGTESTS_ALLOW_NETIO: "1"
76 76
77 77 test-py3:
78 78 <<: *runtests
79 79 variables:
80 80 RUNTEST_ARGS: " --no-rust --blacklist /tmp/check-tests.txt"
81 81 PYTHON: python3
82 82 TEST_HGMODULEPOLICY: "c"
83 83 TEST_HGTESTS_ALLOW_NETIO: "1"
84 84
85 85 test-py2-pure:
86 86 <<: *runtests
87 87 variables:
88 88 RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt"
89 89 TEST_HGMODULEPOLICY: "py"
90 90
91 91 test-py3-pure:
92 92 <<: *runtests
93 93 variables:
94 94 RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt"
95 95 PYTHON: python3
96 96 TEST_HGMODULEPOLICY: "py"
97 97
98 98 test-py2-rust:
99 99 <<: *runtests
100 100 variables:
101 101 HGWITHRUSTEXT: cpython
102 102 RUNTEST_ARGS: "--rust --blacklist /tmp/check-tests.txt"
103 103 TEST_HGMODULEPOLICY: "rust+c"
104 104
105 105 test-py3-rust:
106 106 <<: *runtests
107 107 variables:
108 108 HGWITHRUSTEXT: cpython
109 109 RUNTEST_ARGS: "--rust --blacklist /tmp/check-tests.txt"
110 110 PYTHON: python3
111 111 TEST_HGMODULEPOLICY: "rust+c"
112 112
113 113 test-py3-rhg:
114 114 <<: *runtests
115 115 variables:
116 116 HGWITHRUSTEXT: cpython
117 117 RUNTEST_ARGS: "--rust --rhg --blacklist /tmp/check-tests.txt"
118 118 PYTHON: python3
119 119 TEST_HGMODULEPOLICY: "rust+c"
120 120
121 121 test-py2-chg:
122 122 <<: *runtests
123 123 variables:
124 124 RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt --chg"
125 125 TEST_HGMODULEPOLICY: "c"
126 126
127 127 test-py3-chg:
128 128 <<: *runtests
129 129 variables:
130 130 PYTHON: python3
131 131 RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt --chg"
132 132 TEST_HGMODULEPOLICY: "c"
133 133
134 134 check-pytype-py3:
135 135 extends: .runtests_template
136 136 before_script:
137 137 - hg clone . /tmp/mercurial-ci/ --noupdate --config phases.publish=no
138 138 - hg -R /tmp/mercurial-ci/ update `hg log --rev '.' --template '{node}'`
139 139 - cd /tmp/mercurial-ci/
140 140 - make local PYTHON=$PYTHON
141 141 - $PYTHON -m pip install --user -U pytype==2021.04.15
142 142 variables:
143 143 RUNTEST_ARGS: " --allow-slow-tests tests/test-check-pytype.t"
144 144 HGTEST_TIMEOUT: "3600"
145 145 PYTHON: python3
146 146 TEST_HGMODULEPOLICY: "c"
147 147
148 148 # `sh.exe --login` sets a couple of extra environment variables that are defined
149 149 # in the MinGW shell, but switches CWD to /home/$username. The previous value
150 150 # is stored in OLDPWD. Of the added variables, MSYSTEM is crucial to running
151 151 # run-tests.py- it is needed to make run-tests.py generate a `python3` script
152 152 # that satisfies the various shebang lines and delegates to `py -3`.
153 153 .window_runtests_template: &windows_runtests
154 154 <<: *all
155 when: manual # we don't have any Windows runners anymore at the moment
155 156 stage: tests
156 157 before_script:
157 158 - C:/MinGW/msys/1.0/bin/sh.exe --login -c 'cd "$OLDPWD" && ls -1 tests/test-check-*.* > C:/Temp/check-tests.txt'
158 159 # TODO: find/install cvs, bzr, perforce, gpg, sqlite3
159 160
160 161 script:
161 162 - echo "Entering script section"
162 163 - echo "python used, $Env:PYTHON"
163 164 - Invoke-Expression "$Env:PYTHON -V"
164 165 - Invoke-Expression "$Env:PYTHON -m black --version"
165 166 - echo "$Env:RUNTEST_ARGS"
166 167 - echo "$Env:TMP"
167 168 - echo "$Env:TEMP"
168 169
169 170 - C:/MinGW/msys/1.0/bin/sh.exe --login -c 'cd "$OLDPWD" && HGTESTS_ALLOW_NETIO="$TEST_HGTESTS_ALLOW_NETIO" HGMODULEPOLICY="$TEST_HGMODULEPOLICY" $PYTHON tests/run-tests.py --color=always $RUNTEST_ARGS'
170 171
171 172 windows-py3:
172 173 <<: *windows_runtests
173 174 tags:
174 175 - windows
175 176 variables:
176 177 TEST_HGMODULEPOLICY: "c"
177 178 RUNTEST_ARGS: "--blacklist C:/Temp/check-tests.txt"
178 179 PYTHON: py -3
179 180
180 181 windows-py3-pyox:
181 182 <<: *windows_runtests
182 183 tags:
183 184 - windows
184 185 variables:
185 186 TEST_HGMODULEPOLICY: "c"
186 187 RUNTEST_ARGS: "--blacklist C:/Temp/check-tests.txt --pyoxidized"
187 188 PYTHON: py -3
General Comments 0
You need to be logged in to leave comments. Login now