gecko-dev/taskcluster/ci/source-test/node.yml

114 строки
3.4 KiB
YAML

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
---
newtab-unit-tests:
description: newtab unit tests
platform: linux64/opt
treeherder:
symbol: node(newtab)
kind: test
tier: 1
worker-type: t-linux-xlarge
worker:
docker-image: {in-tree: "desktop1604-test"}
max-run-time: 1800
require-build: true
fetches:
build:
- target.tar.bz2
run:
using: run-task
cache-dotcache: true
# We fetch our own Firefox nightly because the version of firefox
# currently in the desktop1604-test docker image is too old to
# pass our unit tests.
cwd: '{checkout}'
command: >
export FIREFOX_BIN=$MOZ_FETCHES_DIR/firefox/firefox &&
cd /builds/worker/checkouts/gecko/browser/components/newtab &&
npm install &&
node bin/try-runner.js
attributes:
code-review: true
when:
files-changed:
- "browser/components/newtab/**"
debugger-tests:
description: devtools debugger unit tests and flow type checks
platform: linux64/opt
treeherder:
symbol: node(debugger)
kind: test
tier: 1
worker-type: t-linux-xlarge
worker:
docker-image: {in-tree: "lint"}
max-run-time: 1800
run:
using: run-task
cache-dotcache: true
cwd: '{checkout}'
command: >
npm install &&
cd devtools/client/debugger/ &&
yarn &&
node bin/try-runner.js
attributes:
code-review: true
when:
files-changed:
- 'devtools/client/debugger/**'
devtools-tests:
description: devtools node-based tests (for instance jest)
platform: linux64/opt
treeherder:
symbol: node(devtools)
kind: test
tier: 1
worker-type: t-linux-xlarge
worker:
docker-image: {in-tree: "lint"}
max-run-time: 1800
run:
using: run-task
cache-dotcache: true
cwd: '{checkout}'
command: >
npm install &&
cd devtools/client/bin/ &&
node devtools-node-test-runner.js --suite=aboutdebugging &&
node devtools-node-test-runner.js --suite=accessibility &&
node devtools-node-test-runner.js --suite=application &&
node devtools-node-test-runner.js --suite=framework &&
node devtools-node-test-runner.js --suite=netmonitor &&
node devtools-node-test-runner.js --suite=webconsole
when:
files-changed:
- 'devtools/client/**'
- 'devtools/shared/**'
eslint-plugin-mozilla:
description: eslint-plugin-mozilla integration tests
platform: linux64/opt
treeherder:
symbol: node(epm)
kind: test
tier: 1
worker-type: t-linux-xlarge
worker:
docker-image: {in-tree: "lint"}
max-run-time: 1800
run:
using: run-task
cache-dotcache: true
cwd: '{checkout}/tools/lint/eslint/eslint-plugin-mozilla'
command: >
cp -r /build/node_modules_eslint-plugin-mozilla node_modules &&
npm run test
when:
files-changed:
- 'tools/lint/eslint/eslint-plugin-mozilla/**'