2019-09-23 11:42:36 +00:00
|
|
|
# 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/.
|
|
|
|
---
|
|
|
|
|
|
|
|
loader: taskgraph.loader.transform:loader
|
|
|
|
|
|
|
|
transforms:
|
|
|
|
- taskgraph.transforms.job:transforms
|
|
|
|
- taskgraph.transforms.task:transforms
|
|
|
|
|
2020-04-01 16:29:35 +00:00
|
|
|
kind-dependencies:
|
|
|
|
- toolchain
|
|
|
|
|
|
|
|
|
2019-09-23 11:42:36 +00:00
|
|
|
job-defaults:
|
|
|
|
attributes:
|
|
|
|
code-review: true
|
2020-03-03 23:09:43 +00:00
|
|
|
retrigger: true
|
2020-04-01 16:29:35 +00:00
|
|
|
fetches:
|
|
|
|
toolchain:
|
|
|
|
- android-sdk-linux
|
2020-05-13 16:36:48 +00:00
|
|
|
- android-gradle-dependencies
|
2019-09-23 11:42:36 +00:00
|
|
|
run:
|
|
|
|
use-caches: false
|
|
|
|
run-on-tasks-for: [github-pull-request, github-push]
|
2019-09-23 13:22:58 +00:00
|
|
|
treeherder:
|
|
|
|
kind: test
|
|
|
|
platform: 'lint/opt'
|
|
|
|
tier: 1
|
2020-04-01 16:29:35 +00:00
|
|
|
worker-type: b-android
|
|
|
|
worker:
|
|
|
|
docker-image: {in-tree: base}
|
|
|
|
max-run-time: 7200
|
2019-09-23 11:42:36 +00:00
|
|
|
|
|
|
|
jobs:
|
2019-09-23 13:22:58 +00:00
|
|
|
compare-locales:
|
|
|
|
description: 'Validate strings.xml with compare-locales'
|
|
|
|
run:
|
|
|
|
using: run-task
|
|
|
|
cwd: '{checkout}'
|
|
|
|
command: 'pip install --user "compare-locales>=5.0.2,<6.0" && compare-locales --validate l10n.toml .'
|
|
|
|
treeherder:
|
|
|
|
symbol: compare-locale
|
|
|
|
tier: 2
|
2019-09-23 11:42:36 +00:00
|
|
|
detekt:
|
|
|
|
description: 'Running detekt over all modules'
|
|
|
|
run:
|
|
|
|
using: gradlew
|
2020-10-21 17:42:07 +00:00
|
|
|
gradlew: [detekt, githubLintDetektDetails, 'mozilla-detekt-rules:test']
|
2019-09-23 13:22:58 +00:00
|
|
|
treeherder:
|
|
|
|
symbol: detekt
|
2020-06-11 18:03:54 +00:00
|
|
|
worker:
|
|
|
|
artifacts:
|
|
|
|
- name: public/reports
|
|
|
|
path: /builds/worker/checkouts/src/build/reports
|
|
|
|
type: directory
|
2020-07-10 18:24:48 +00:00
|
|
|
- name: public/github
|
|
|
|
path: /builds/worker/github
|
|
|
|
type: directory
|
2019-09-23 11:42:36 +00:00
|
|
|
ktlint:
|
|
|
|
description: 'Running ktlint over all modules'
|
|
|
|
run:
|
|
|
|
using: gradlew
|
|
|
|
gradlew: [ktlint]
|
2019-09-23 13:22:58 +00:00
|
|
|
treeherder:
|
|
|
|
symbol: ktlint
|
2019-09-23 11:42:36 +00:00
|
|
|
lint:
|
2019-11-21 23:26:42 +00:00
|
|
|
description: 'Running lint over all modules'
|
2019-09-23 11:42:36 +00:00
|
|
|
run:
|
|
|
|
using: gradlew
|
2020-10-21 17:42:07 +00:00
|
|
|
gradlew: ['lintDebug', 'githubLintAndroidDetails', 'mozilla-lint-rules:test']
|
2019-09-23 13:22:58 +00:00
|
|
|
treeherder:
|
|
|
|
symbol: lint
|
2020-06-11 18:03:54 +00:00
|
|
|
worker:
|
|
|
|
artifacts:
|
|
|
|
- name: public/reports
|
|
|
|
path: /builds/worker/checkouts/src/app/build/reports
|
|
|
|
type: directory
|
2020-07-10 18:24:48 +00:00
|
|
|
- name: public/github
|
|
|
|
path: /builds/worker/github
|
|
|
|
type: directory
|