kind.yml 1.68 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
# 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

12
13
14
15
kind-dependencies:
    - toolchain


16
17
18
job-defaults:
    attributes:
        code-review: true
19
        retrigger: true
20
21
22
    fetches:
        toolchain:
            - android-sdk-linux
23
24
25
    run:
        use-caches: false
    run-on-tasks-for: [github-pull-request, github-push]
26
27
28
29
    treeherder:
        kind: test
        platform: 'lint/opt'
        tier: 1
30
31
32
33
    worker-type: b-android
    worker:
        docker-image: {in-tree: base}
        max-run-time: 7200
34
35

jobs:
36
37
38
39
40
41
42
43
44
    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
45
46
47
48
49
    detekt:
        description: 'Running detekt over all modules'
        run:
            using: gradlew
            gradlew: [detekt]
50
51
        treeherder:
            symbol: detekt
52
53
54
55
56
    ktlint:
        description: 'Running ktlint over all modules'
        run:
            using: gradlew
            gradlew: [ktlint]
57
58
        treeherder:
            symbol: ktlint
59
    lint:
60
        description: 'Running lint over all modules'
61
62
        run:
            using: gradlew
63
            gradlew: ['lintGeckoNightlyDebug']
64
65
        treeherder:
            symbol: lint