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
attributes:
33
code-review: true
34
when:
35
files-changed:
36
- "browser/components/newtab/**"
37
38
debugger-tests:
39
description: devtools debugger unit tests and flow type checks
40
platform: linux64/opt
41
treeherder:
42
symbol: node(debugger)
43
kind: test
44
tier: 1
45
worker-type: t-linux-xlarge
46
worker:
47
docker-image: {in-tree: "lint"}
48
max-run-time: 1800
49
run:
50
using: run-task
51
cache-dotcache: true
52
cwd: '{checkout}'
53
command: >
54
npm install &&
55
cd devtools/client/debugger/ &&
56
yarn &&
57
node bin/try-runner.js
58
attributes:
59
code-review: true
60
when:
61
files-changed:
62
- 'devtools/client/debugger/**'
63
64
devtools-tests:
65
description: devtools node-based tests (for instance jest)
66
platform: linux64/opt
67
treeherder:
68
symbol: node(devtools)
69
kind: test
70
tier: 1
71
worker-type: t-linux-xlarge
72
worker:
73
docker-image: {in-tree: "lint"}
74
max-run-time: 1800
75
run:
76
using: run-task
77
cache-dotcache: true
78
cwd: '{checkout}'
79
command: >
80
npm install &&
81
cd devtools/client/bin/ &&
82
node devtools-node-test-runner.js --suite=aboutdebugging &&
83
node devtools-node-test-runner.js --suite=accessibility &&
84
node devtools-node-test-runner.js --suite=application &&
85
node devtools-node-test-runner.js --suite=framework &&
86
node devtools-node-test-runner.js --suite=netmonitor &&
87
node devtools-node-test-runner.js --suite=webconsole
88
when:
89
files-changed:
90
- 'devtools/client/**'
91
- 'devtools/shared/**'
92
93
eslint-plugin-mozilla:
94
description: eslint-plugin-mozilla integration tests
95
platform: linux64/opt
96
treeherder:
97
symbol: node(epm)
98
kind: test
99
tier: 1
100
worker-type: t-linux-xlarge
101
worker:
102
docker-image: {in-tree: "lint"}
103
max-run-time: 1800
104
run:
105
using: run-task
106
cache-dotcache: true
107
cwd: '{checkout}/tools/lint/eslint/eslint-plugin-mozilla'
108
command: >
109
cp -r /build/node_modules_eslint-plugin-mozilla node_modules &&
110
npm run test
111
when:
112
files-changed:
113
- 'tools/lint/eslint/eslint-plugin-mozilla/**'