summaryrefslogtreecommitdiffstats
path: root/taskcluster/kinds/source-test/buildconfig.yml
blob: a7dffefd09f23e9b7ad88427ddc23d5d4634fb29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# 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/.
---
job-defaults:
    description: Make sure the content of .buildconfig.yml matches what gradle knows about its projects
    always-target: true
    run:
        using: run-task
        cwd: '{checkout}'
    worker-type: t-linux-xlarge-source
    worker:
        artifacts:
            - type: directory
              name: public
              path: '/builds/worker/artifacts'
        docker-image: {in-tree: lint}
        max-run-time: 1800
        env:
            GRADLE_USER_HOME: "/builds/worker/checkouts/gecko/mobile/android/gradle/dotgradle-online"
            MOZCONFIG: "/builds/worker/checkouts/gecko/mobile/android/config/mozconfigs/android-arm/nightly-android-lints"
            ANDROID_SDK_ROOT: "/builds/worker/fetches/android-sdk-linux"
    platform: lint/opt
    treeherder:
        kind: other
        tier: 2
    fetches:
        toolchain:
            - linux64-jdk-repack
            - android-gradle-dependencies
            - android-sdk-linux
    use-python: system


buildconfig-android-components:
    optimization:
        skip-unless-changed:
            - "mobile/android/android-components/**/build.gradle"
            - "mobile/android/android-components/.buildconfig.yml"
    run:
        command: 'pip install --break-system-packages --user --require-hashes --requirement taskcluster/scripts/lint/requirements.txt && ./mach --log-no-times build pre-export export && taskcluster/scripts/lint/is_buildconfig_yml_up_to_date.py mobile/android/android-components'
    treeherder:
        symbol: buildconfig(AC)

buildconfig-focus:
    optimization:
        skip-unless-changed:
            - "mobile/android/android-components/**/build.gradle"   # A change in A-C may be reflected in focus
            - "mobile/android/android-components/.buildconfig.yml"
            - "mobile/android/focus-android/**/build.gradle"
            - "mobile/android/focus-android/.buildconfig.yml"
    run:
        command: 'pip install --break-system-packages --user --require-hashes --requirement taskcluster/scripts/lint/requirements.txt && ./mach --log-no-times build pre-export export && taskcluster/scripts/lint/is_buildconfig_yml_up_to_date.py mobile/android/focus-android'
    treeherder:
        symbol: buildconfig(focus)

buildconfig-fenix:
    optimization:
        skip-unless-changed:
            - "mobile/android/android-components/**/build.gradle"   # A change in A-C may be reflected in fenix
            - "mobile/android/android-components/.buildconfig.yml"
            - "mobile/android/fenix/**/build.gradle"
            - "mobile/android/fenix/.buildconfig.yml"
    run:
        command: 'pip install --break-system-packages --user --require-hashes --requirement taskcluster/scripts/lint/requirements.txt && ./mach --log-no-times build pre-export export && taskcluster/scripts/lint/is_buildconfig_yml_up_to_date.py mobile/android/fenix'
    treeherder:
        symbol: buildconfig(fenix)