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: "desktop1604-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-hg4.3
143
when:
144
files-changed:
145
- 'testing/mozharness/**'
146
147
mozlint:
148
description: python/mozlint unit tests
149
platform:
150
- linux64/opt
151
- macosx1014-64/opt
152
- windows10-64/opt
153
python-version: [3]
154
treeherder:
155
symbol: mozlint
156
run:
157
using: python-test
158
subsuite: mozlint
159
when:
160
files-changed:
161
- 'python/mozlint/**'
162
- 'tools/lint/**'
163
164
mozrelease:
165
description: python/mozrelease unit tests
166
python-version: [2, 3]
167
treeherder:
168
symbol: release
169
run:
170
using: python-test
171
subsuite: mozrelease
172
when:
173
files-changed:
174
- 'python/mozrelease/**'
175
176
mozterm:
177
description: python/mozterm unit tests
178
platform:
179
- linux64/opt
180
- windows10-64/opt
181
python-version: [2, 3]
182
treeherder:
183
symbol: term
184
run:
185
using: python-test
186
subsuite: mozterm
187
when:
188
files-changed:
189
- 'python/mozterm/**'
190
191
mozversioncontrol:
192
description: python/mozversioncontrol unit tests
193
python-version: [2, 3]
194
treeherder:
195
symbol: vcs
196
run:
197
using: python-test
198
subsuite: mozversioncontrol
199
when:
200
files-changed:
201
- 'python/mozversioncontrol/**'
202
203
raptor:
204
description: testing/raptor unit tests
205
platform:
206
- linux64/opt
207
- windows10-64/opt
208
python-version: [2]
209
treeherder:
210
symbol: rap
211
run:
212
using: python-test
213
subsuite: raptor
214
when:
215
files-changed:
216
- 'testing/raptor/**'
217
218
reftest-harness:
219
description: layout/tools/reftest unittests
220
platform:
221
- linux64/opt
222
- linux64/debug
223
- linux64-asan/opt
224
require-build: true
225
always-target: false
226
treeherder:
227
symbol: py2(ref)
228
worker:
229
by-platform:
230
linux64.*:
231
docker-image: {in-tree: "desktop1604-test"}
232
max-run-time: 3600
233
run:
234
using: run-task
235
cwd: '{checkout}'
236
command: >
237
source /builds/worker/scripts/xvfb.sh &&
238
start_xvfb '1600x1200x24' 0 &&
239
export GECKO_BINARY_PATH=$MOZ_FETCHES_DIR/firefox/firefox &&
240
export TEST_HARNESS_ROOT=$MOZ_FETCHES_DIR/tests &&
241
./mach python-test --python 2 --subsuite reftest
242
fetches:
243
build:
244
- target.tar.bz2
245
- artifact: target.common.tests.tar.gz
246
dest: tests
247
- artifact: target.reftest.tests.tar.gz
248
dest: tests
249
when:
250
files-changed:
251
- 'layout/tools/reftest/**'
252
- 'testing/mozbase/moztest/moztest/selftest/**'
253
- 'testing/mozharness/mozharness/base/log.py'
254
- 'testing/mozharness/mozharness/mozilla/structuredlog.py'
255
- 'testing/mozharness/mozharness/mozilla/testing/errors.py'
256
257
tryselect:
258
description: tools/tryselect unit tests
259
platform:
260
- linux64/opt
261
- windows10-64/opt
262
python-version: [2]
263
treeherder:
264
symbol: try
265
run:
266
using: python-test
267
subsuite: try
268
when:
269
files-changed:
270
- 'taskcluster/ci/test/**'
271
- 'taskcluster/taskgraph/transforms/**'
272
- 'tools/tryselect/**'
273
274
mozbuild:
275
description: mozbuild unit tests
276
platform:
277
- linux64/opt
278
- macosx1014-64/opt
279
- windows10-64/opt
280
python-version: [2, 3]
281
treeherder:
282
symbol: mbu
283
run:
284
using: python-test
285
subsuite: mozbuild
286
fetches:
287
toolchain:
288
by-platform:
289
linux64/opt:
290
- linux64-node
291
macosx1014-64/opt:
292
- macosx64-node
293
windows10-64/opt:
294
- win64-node
295
when:
296
files-changed:
297
- '**/moz.configure'
298
- 'build/moz.configure/**'
299
- 'config/tests/**'
300
- 'python/mach/**'
301
- 'python/mozboot/**'
302
- 'python/mozbuild/**'
303
- 'python/mozterm/**'
304
- 'python/mozversioncontrol/**'
305
- 'testing/mozbase/**'
306
- 'testing/xpcshell/xpcshellcommandline.py'