Bug 1783690 - part 9: Run gradlew in the android-components folder
[gecko.git] / mobile / android / taskcluster / ci / lint / kind.yml
blob18db143d9da02321f2ab147abbddd840cdadace4
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 ---
6 loader: taskgraph.loader.transform:loader
8 transforms:
9     - taskgraph.transforms.job:transforms
10     - taskgraph.transforms.task:transforms
12 kind-dependencies:
13     - toolchain
16 task-defaults:
17     attributes:
18         code-review: true
19     fetches:
20         toolchain:
21             - android-sdk-linux
22             - android-gradle-dependencies
23     run:
24         use-caches: false
25     run-on-tasks-for: [github-pull-request, github-push]
26     treeherder:
27         kind: test
28         platform: 'lint/opt'
29         tier: 1
30     worker-type: b-android
31     worker:
32         docker-image: {in-tree: base}
33         max-run-time: 600
35 tasks:
36     compare-locales:
37         description: 'Validate strings.xml with compare-locales'
38         run:
39             using: run-task
40             cwd: '{checkout}'
41             command: 'pip install --user "compare-locales>=5.0.2,<6.0" && compare-locales --validate l10n.toml .'
42         treeherder:
43             symbol: compare-locale
44             tier: 2
45     detektAndKtlint:
46         description: 'Running detekt and ktlint over all modules'
47         run:
48             gradlew: [detekt, ktlint, githubLintDetektDetails]
49             pre-gradlew:
50                 - ["cd", "android-components"]
51             using: gradlew
52         treeherder:
53             symbol: detektKtlint
54         worker:
55             artifacts:
56                 - name: public/reports
57                   path: /builds/worker/checkouts/vcs/build/reports
58                   type: directory
59                 - name: public/github
60                   path: /builds/worker/github
61                   type: directory