Source code

Revision control

Other Tools

1
# This Source Code Form is subject to the terms of the Mozilla Public
2
# License, v. 2.0. If a copy of the MPL was not distributed with this
3
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
---
5
job-defaults:
6
platform: linux64/opt
7
always-target: true
8
worker-type:
9
by-platform:
10
linux64.*: t-linux-xlarge
11
macosx1014-64.*: t-osx-1014
12
windows10-64.*: t-win10-64
13
worker:
14
by-platform:
15
linux64.*:
16
docker-image: {in-tree: "lint"}
17
max-run-time: 3600
18
default:
19
max-run-time: 3600
20
treeherder:
21
kind: test
22
tier: 2
23
run:
24
using: mach
25
when:
26
files-changed:
27
- 'config/mozunit/**'
28
- 'python/mach_commands.py'
29
30
taskgraph-tests:
31
description: taskcluster/taskgraph unit tests
32
python-version: [2]
33
treeherder:
34
symbol: tg
35
run:
36
using: python-test
37
subsuite: taskgraph
38
when:
39
files-changed:
40
- 'taskcluster/**/*.py'
41
- 'python/mach/**/*.py'
42
43
mach:
44
description: python/mach unit tests
45
platform:
46
- linux64/opt
47
- macosx1014-64/opt
48
- windows10-64/opt
49
python-version: [2, 3]
50
treeherder:
51
symbol: mach
52
run:
53
using: python-test
54
subsuite: mach
55
when:
56
files-changed:
57
- 'python/mach/**'
58
59
marionette-harness:
60
description: testing/marionette/harness unit tests
61
platform:
62
- linux64/opt
63
- windows10-64/opt
64
python-version: [2]
65
treeherder:
66
symbol: mnh
67
run:
68
using: python-test
69
subsuite: marionette-harness
70
when:
71
files-changed:
72
- 'testing/marionette/harness/**'
73
- 'testing/mozbase/mozlog/mozlog/**'
74
- 'testing/mozbase/mozlog/setup.py'
75
- 'testing/mozbase/packages.txt'
76
77
mochitest-harness:
78
description: testing/mochitest unittests
79
platform:
80
- linux64/opt
81
- linux64/debug
82
- linux64-asan/opt
83
require-build: true
84
always-target: false
85
treeherder:
86
symbol: py2(mch)
87
worker:
88
by-platform:
89
linux64.*:
90
docker-image: {in-tree: "ubuntu1804-test"}
91
max-run-time: 3600
92
run:
93
using: run-task
94
cwd: '{checkout}'
95
command: >
96
source /builds/worker/scripts/xvfb.sh &&
97
start_xvfb '1600x1200x24' 0 &&
98
export GECKO_BINARY_PATH=$MOZ_FETCHES_DIR/firefox/firefox &&
99
export TEST_HARNESS_ROOT=$MOZ_FETCHES_DIR/tests &&
100
./mach python-test --python 2 --subsuite mochitest
101
fetches:
102
build:
103
- target.tar.bz2
104
- artifact: target.common.tests.tar.gz
105
dest: tests
106
- artifact: target.mochitest.tests.tar.gz
107
dest: tests
108
when:
109
files-changed:
110
- 'testing/mochitest/**'
111
- 'testing/mozbase/moztest/moztest/selftest/**'
112
- 'testing/mozharness/mozharness/base/log.py'
113
- 'testing/mozharness/mozharness/mozilla/structuredlog.py'
114
- 'testing/mozharness/mozharness/mozilla/testing/errors.py'
115
- 'testing/profiles/**'
116
117
mozbase:
118
description: testing/mozbase unit tests
119
platform:
120
- linux64/opt
121
- macosx1014-64/opt
122
- windows10-64/opt
123
python-version: [2, 3]
124
treeherder:
125
symbol: mb
126
run:
127
using: python-test
128
subsuite: mozbase
129
when:
130
files-changed:
131
- 'testing/mozbase/**'
132
133
mozharness:
134
description: mozharness integration tests
135
treeherder:
136
symbol: py2(mh)
137
run:
138
using: run-task
139
cache-dotcache: true
140
cwd: '{checkout}/testing/mozharness'
141
command: >
142
/usr/local/bin/tox -e py27-hg5.2
143
when:
144
files-changed:
145
- 'testing/mozharness/**'
146
147
mozharness-py3:
148
description: mozharness integration tests
149
treeherder:
150
symbol: py3(mh)
151
run:
152
using: run-task
153
cache-dotcache: true
154
cwd: '{checkout}/testing/mozharness'
155
command: >
156
/usr/local/bin/tox -e py36-hg5.2
157
when:
158
files-changed:
159
- 'testing/mozharness/**'
160
161
mozlint:
162
description: python/mozlint unit tests
163
platform:
164
- linux64/opt
165
- macosx1014-64/opt
166
- windows10-64/opt
167
python-version: [3]
168
treeherder:
169
symbol: mozlint
170
run:
171
using: python-test
172
subsuite: mozlint
173
when:
174
files-changed:
175
- 'python/mozlint/**'
176
- 'tools/lint/**'
177
178
mozrelease:
179
description: python/mozrelease unit tests
180
python-version: [2, 3]
181
treeherder:
182
symbol: release
183
run:
184
using: python-test
185
subsuite: mozrelease
186
when:
187
files-changed:
188
- 'python/mozrelease/**'
189
190
mozterm:
191
description: python/mozterm unit tests
192
platform:
193
- linux64/opt
194
- windows10-64/opt
195
python-version: [2, 3]
196
treeherder:
197
symbol: term
198
run:
199
using: python-test
200
subsuite: mozterm
201
when:
202
files-changed:
203
- 'python/mozterm/**'
204
205
mozversioncontrol:
206
description: python/mozversioncontrol unit tests
207
python-version: [2, 3]
208
treeherder:
209
symbol: vcs
210
run:
211
using: python-test
212
subsuite: mozversioncontrol
213
when:
214
files-changed:
215
- 'python/mozversioncontrol/**'
216
217
raptor:
218
description: testing/raptor unit tests
219
platform:
220
- linux64/opt
221
- macosx1014-64/opt
222
- windows10-64/opt
223
python-version: [2, 3]
224
treeherder:
225
symbol: rap
226
run:
227
using: python-test
228
subsuite: raptor
229
when:
230
files-changed:
231
- 'testing/raptor/**'
232
233
reftest-harness:
234
description: layout/tools/reftest unittests
235
platform:
236
- linux64/opt
237
- linux64/debug
238
- linux64-asan/opt
239
require-build: true
240
always-target: false
241
treeherder:
242
symbol: py2(ref)
243
worker:
244
by-platform:
245
linux64.*:
246
docker-image: {in-tree: "ubuntu1804-test"}
247
max-run-time: 3600
248
run:
249
using: run-task
250
cwd: '{checkout}'
251
command: >
252
source /builds/worker/scripts/xvfb.sh &&
253
start_xvfb '1600x1200x24' 0 &&
254
export GECKO_BINARY_PATH=$MOZ_FETCHES_DIR/firefox/firefox &&
255
export TEST_HARNESS_ROOT=$MOZ_FETCHES_DIR/tests &&
256
./mach python-test --python 2 --subsuite reftest
257
fetches:
258
build:
259
- target.tar.bz2
260
- artifact: target.common.tests.tar.gz
261
dest: tests
262
- artifact: target.reftest.tests.tar.gz
263
dest: tests
264
when:
265
files-changed:
266
- 'layout/tools/reftest/**'
267
- 'testing/mozbase/moztest/moztest/selftest/**'
268
- 'testing/mozharness/mozharness/base/log.py'
269
- 'testing/mozharness/mozharness/mozilla/structuredlog.py'
270
- 'testing/mozharness/mozharness/mozilla/testing/errors.py'
271
272
tryselect:
273
description: tools/tryselect unit tests
274
platform:
275
- linux64/opt
276
- windows10-64/opt
277
python-version: [2]
278
treeherder:
279
symbol: try
280
run:
281
using: python-test
282
subsuite: try
283
when:
284
files-changed:
285
- 'taskcluster/ci/test/**'
286
- 'taskcluster/taskgraph/transforms/**'
287
- 'tools/tryselect/**'
288
289
mozbuild:
290
description: mozbuild unit tests
291
platform:
292
- linux64/opt
293
- macosx1014-64/opt
294
- windows10-64/opt
295
python-version: [2, 3]
296
treeherder:
297
symbol: mbu
298
run:
299
using: python-test
300
subsuite: mozbuild
301
fetches:
302
toolchain:
303
by-platform:
304
linux64/opt:
305
- linux64-node
306
macosx1014-64/opt:
307
- macosx64-node
308
windows10-64/opt:
309
- win64-node
310
when:
311
files-changed:
312
- '**/moz.configure'
313
- 'build/moz.configure/**'
314
- 'config/tests/**'
315
- 'python/mach/**'
316
- 'python/mozboot/**'
317
- 'python/mozbuild/**'
318
- 'python/mozterm/**'
319
- 'python/mozversioncontrol/**'
320
- 'testing/mozbase/**'
321
- 'testing/xpcshell/xpcshellcommandline.py'
322
323
condprof:
324
description: testing/condprofile unit tests
325
platform:
326
- linux64/opt
327
- macosx1014-64/opt
328
- windows10-64/opt
329
python-version: [2]
330
treeherder:
331
symbol: condprof
332
run:
333
using: python-test
334
subsuite: condprof
335
when:
336
files-changed:
337
- 'testing/condprofile/condprof**'
338
- 'testing/condprofile/setup.py'