This repository has been archived by the owner on Nov 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 473
/
kind.yml
151 lines (143 loc) · 5.57 KB
/
kind.yml
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# 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: ac_taskgraph.loader.build_config:loader
transforms:
- ac_taskgraph.transforms.build:transforms
- taskgraph.transforms.code_review:transforms
- taskgraph.transforms.job:transforms
- 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
# We always build components that have changed files or dependencies, but we also need
# to rebuild some or all components when other files change. This structure
# maintains the latter mapping. The value may either be a list of specific components,
# or the special sentinel value `all-components`.
files-affecting-components:
^build.gradle$: all-components
^settings.gradle$: all-components
^buildSrc.*$: all-components
^gradle.properties$: all-components
^gradle/wrapper/gradle-wrapper.properties$: all-components
task-defaults:
artifact-template:
type: file
name: public/build/{artifact_file_name}
path: '/builds/worker/checkouts/vcs/{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/vcs/{component_path}/build/reports/tests'
lint-artifact-template:
type: file
name: public/reports/lint-results-release.html
path: '/builds/worker/checkouts/vcs/{component_path}/build/reports/lint-results-release.html'
text-artifact-template:
type: file
name: public/github/customCheckRunText.md
path: '/builds/worker/github/customCheckRunText.md'
jacoco-coverage-template:
type: directory
name: public/reports/jacoco
path: '/builds/worker/checkouts/vcs/{component_path}/build/reports/jacoco'
attributes:
code-review:
by-build-type:
release: false
nightly: false
default: true
description: Execute Gradle tasks for component "{component}"
expose-artifacts:
by-build-type:
release: true
nightly: true
default: false
fetches:
toolchain:
- android-sdk-linux
- android-gradle-dependencies
include-coverage:
by-build-type:
release: false
nightly: false
default: true
run:
gradlew:
by-build-type:
release:
- ':{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'
- 'githubBuildDetails'
# No testRelease on this task, gradle task isn't defined
tooling-detekt:
- ':{component}:assemble'
- ':{component}:assembleAndroidTest'
- ':{component}:test'
- ':{component}:lintRelease'
- 'githubBuildDetails'
default:
- ':{component}:assemble'
- ':{component}:assembleAndroidTest'
- ':{component}:testRelease'
- ':{component}:lintRelease'
- 'githubBuildDetails'
using: gradlew
use-caches: false
run-on-tasks-for:
by-build-type:
release: []
nightly: []
default: [github-pull-request, github-push]
treeherder:
kind: build
symbol:
by-build-type:
release: '{component}(BR)'
nightly: '{component}(BN)'
default: '{component}(B)'
platform: android-all/opt
tier: 1
worker-type: b-android
worker:
chain-of-trust: true
docker-image: {in-tree: base}
max-run-time: 1200
overriden-jobs:
# Treeherder group names are too long to fit in 25 chars
lib-fetch-httpurlconnection:
treeherder:
symbol: 'lib-fetch-httpurlconnect(B)'
nightly-lib-fetch-httpurlconnection:
treeherder:
symbol: 'lib-fetch-httpurlconnect(BN)'
release-lib-fetch-httpurlconnection:
treeherder:
symbol: 'lib-fetch-httpurlconnect(BR)'
feature-webcompat-reporter:
treeherder:
symbol: 'feature-webcompat-report(B)'
nightly-feature-webcompat-reporter:
treeherder:
symbol: 'feature-webcompat-report(BN)'
release-feature-webcompat-reporter:
treeherder:
symbol: 'feature-webcompat-report(BR)'