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
newtab-unit-tests:
6
description: newtab unit tests
7
platform: linux64/opt
8
treeherder:
9
symbol: node(newtab)
10
kind: test
11
tier: 1
12
worker-type: t-linux-xlarge
13
worker:
14
docker-image: {in-tree: "desktop1604-test"}
15
max-run-time: 1800
16
require-build: true
17
fetches:
18
build:
19
- target.tar.bz2
20
run:
21
using: run-task
22
cache-dotcache: true
23
# We fetch our own Firefox nightly because the version of firefox
24
# currently in the desktop1604-test docker image is too old to
25
# pass our unit tests.
26
cwd: '{checkout}'
27
command: >
28
export FIREFOX_BIN=$MOZ_FETCHES_DIR/firefox/firefox &&
29
cd /builds/worker/checkouts/gecko/browser/components/newtab &&
30
npm install &&
31
node bin/try-runner.js
32
when:
33
files-changed:
34
- "browser/components/newtab/**"
35
36
debugger-tests:
37
description: devtools debugger unit tests and flow type checks
38
platform: linux64/opt
39
treeherder:
40
symbol: node(debugger)
41
kind: test
42
tier: 1
43
worker-type: t-linux-xlarge
44
worker:
45
docker-image: {in-tree: "lint"}
46
max-run-time: 1800
47
run:
48
using: run-task
49
cache-dotcache: true
50
cwd: '{checkout}'
51
command: >
52
npm install &&
53
cd devtools/client/debugger/ &&
54
yarn &&
55
node bin/try-runner.js
56
when:
57
files-changed:
58
- 'devtools/client/debugger/**'
59
60
devtools-tests:
61
description: devtools node-based tests (for instance jest)
62
platform: linux64/opt
63
treeherder:
64
symbol: node(devtools)
65
kind: test
66
tier: 1
67
worker-type: t-linux-xlarge
68
worker:
69
docker-image: {in-tree: "lint"}
70
max-run-time: 1800
71
run:
72
using: run-task
73
cache-dotcache: true
74
cwd: '{checkout}'
75
command: >
76
npm install &&
77
cd devtools/client/bin/ &&
78
node devtools-node-test-runner.js --suite=aboutdebugging &&
79
node devtools-node-test-runner.js --suite=accessibility &&
80
node devtools-node-test-runner.js --suite=application &&
81
node devtools-node-test-runner.js --suite=compatibility &&
82
node devtools-node-test-runner.js --suite=framework &&
83
node devtools-node-test-runner.js --suite=netmonitor &&
84
node devtools-node-test-runner.js --suite=webconsole
85
when:
86
files-changed:
87
- 'devtools/client/**'
88
- 'devtools/shared/**'
89
90
eslint-plugin-mozilla:
91
description: eslint-plugin-mozilla integration tests
92
platform: linux64/opt
93
treeherder:
94
symbol: node(epm)
95
kind: test
96
tier: 1
97
worker-type: t-linux-xlarge
98
worker:
99
docker-image: {in-tree: "lint"}
100
max-run-time: 1800
101
run:
102
using: run-task
103
cache-dotcache: true
104
cwd: '{checkout}/tools/lint/eslint/eslint-plugin-mozilla'
105
command: >
106
cp -r /build/node_modules_eslint-plugin-mozilla node_modules &&
107
npm run test
108
when:
109
files-changed:
110
- 'tools/lint/eslint/eslint-plugin-mozilla/**'