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
|
|
|
|
|
|
|
|
job-defaults:
|
|
|
|
attributes:
|
|
|
|
code-review: true
|
|
|
|
worker-type: b-android
|
|
|
|
worker:
|
|
|
|
docker-image: {in-tree: base}
|
|
|
|
max-run-time: 7200
|
|
|
|
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
|
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
|
|
|
|
gradlew: [detekt]
|
2019-09-23 13:22:58 +00:00
|
|
|
treeherder:
|
|
|
|
symbol: detekt
|
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:
|
|
|
|
description: 'Running tlint over all modules'
|
|
|
|
run:
|
|
|
|
using: gradlew
|
|
|
|
gradlew: [lintDebug]
|
2019-09-23 13:22:58 +00:00
|
|
|
treeherder:
|
|
|
|
symbol: lint
|