summaryrefslogtreecommitdiffstats
path: root/taskcluster/kinds/build-components/kind.yml
blob: 52793cb3f1873e56bc4616064a2227ef04fc9609 (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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# 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: android_taskgraph.loader.build_config:components_loader

transforms:
    - android_taskgraph.transforms.build_components:transforms
    - gecko_taskgraph.transforms.build_schedules:transforms
    - gecko_taskgraph.transforms.job:transforms
    - gecko_taskgraph.transforms.task:transforms

not-for-components:
    - samples-browser   # Their configs are too different, so they're handled in a specific kind

kind-dependencies:
    - toolchain
    - build-fat-aar

job-defaults:
    artifact-template:
        type: file
        name: public/build/{artifact_file_name}
        path: '/builds/worker/checkouts/gecko/mobile/android/android-components/{component_path}/build/maven/org/mozilla/components/{component}/{version}/{artifact_file_name}'
    tests-artifact-template:
        type: directory
        name: public/reports/tests
        path: '/builds/worker/checkouts/gecko/mobile/android/android-components/{component_path}/build/reports/tests'
    lint-artifact-template:
        type: file
        name: public/reports/lint-results-release.html
        path: '/builds/worker/checkouts/gecko/mobile/android/android-components/{component_path}/build/reports/lint-results-release.html'
    jacoco-coverage-template:
        type: directory
        name: public/reports/jacoco
        path: '/builds/worker/checkouts/gecko/mobile/android/android-components/{component_path}/build/reports/jacoco'
    description: Execute Gradle tasks for component "{component}"
    fetches:
        toolchain:
            - android-sdk-linux
            - android-gradle-dependencies
            - linux64-jdk
        build-fat-aar:
            - target.maven.tar.xz
    attributes:
        build_platform: android
    dependencies:
        build-fat-aar:
            by-build-type:
                release|nightly|beta: build-fat-aar-android-geckoview-fat-aar-shippable/opt
                default: build-fat-aar-android-geckoview-fat-aar/opt
    include-coverage:
        by-build-type:
            release: false
            beta: false
            nightly: false
            default: true
    run:
        gradlew:
            by-build-type:
                release:
                    - ':{component}:assembleRelease'
                    - ':{component}:testRelease'
                    - ':{component}:lintRelease'
                    - ':{component}:publish'
                beta:
                    # /!\ Beta builds are considered Release in gradle
                    - ':{component}:assembleRelease'
                    - ':{component}:testRelease'
                    - ':{component}:lintRelease'
                    - ':{component}:publish'
                nightly:
                    - '-PnightlyVersion={nightlyVersion}'
                    - ':{component}:assembleRelease'
                    - ':{component}:testRelease'
                    - ':{component}:lintRelease'
                    - ':{component}:publish'
                default:
                    by-component:
                        # No lintRelease on this task, gradle task isn't defined
                        tooling-lint:
                            - ':{component}:assemble'
                            - ':{component}:assembleAndroidTest'
                            - ':{component}:test'
                            - ':{component}:lint'
                        # No testRelease on this task, gradle task isn't defined
                        tooling-detekt:
                            - ':{component}:assemble'
                            - ':{component}:assembleAndroidTest'
                            - ':{component}:test'
                            - ':{component}:lintRelease'
                        # No publish on these tasks
                        tooling-fetch-tests|samples-.*:
                            - ':{component}:assemble'
                            - ':{component}:assembleAndroidTest'
                            - ':{component}:testRelease'
                            - ':{component}:lintRelease'
                        default:
                            - ':{component}:assemble'
                            - ':{component}:assembleAndroidTest'
                            - ':{component}:testRelease'
                            - ':{component}:lintRelease'
                            - ':{component}:publish'
        pre-gradlew:
            - ["cd", "mobile/android/android-components"]
        using: gradlew
        use-caches: false
    run-on-projects:
        by-build-type:
            release: []
            beta: []
            nightly: []
            default: [all]
    shipping-phase:
        by-build-type:
            (nightly|beta|release): promote
            default: null
    shipping-product: firefox-android
    treeherder:
        kind: build
        symbol:
            by-build-type:
                release: '{treeherder_group}(BR)'
                beta: '{treeherder_group}(BB)'
                nightly: '{treeherder_group}(BN)'
                default: '{treeherder_group}(B)'
        platform: AC-android-all/opt
        tier: 1
    worker-type: b-linux-medium-gcp
    worker:
        chain-of-trust: true
        docker-image: {in-tree: android-components}
        max-run-time: 1200
        env:
            ANDROID_SDK_ROOT: /builds/worker/fetches/android-sdk-linux