2019-09-24 10:52:05 +00:00
|
|
|
# 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:
|
|
|
|
- fenix_taskgraph.transforms.build:transforms
|
|
|
|
- taskgraph.transforms.job:transforms
|
|
|
|
- taskgraph.transforms.task:transforms
|
|
|
|
|
2020-04-01 16:29:35 +00:00
|
|
|
kind-dependencies:
|
|
|
|
- toolchain
|
|
|
|
|
|
|
|
|
2019-09-24 10:52:05 +00:00
|
|
|
job-defaults:
|
2020-04-01 16:29:35 +00:00
|
|
|
# Builds generate multiple APKs with different ABIs. For each APK described
|
|
|
|
# by `gradlew printVariant`, an artifact will be generated. `variant` and
|
|
|
|
# the per-apk config from `printVariant` can be used as substitutions in
|
|
|
|
# `name` and `path`.
|
|
|
|
apk-artifact-template:
|
|
|
|
type: file
|
2020-07-22 13:07:28 +00:00
|
|
|
name: public/build/{abi}/target.apk
|
2020-09-14 16:49:31 +00:00
|
|
|
github-name: 'fenix-{version}-{abi}.apk'
|
2020-07-22 13:07:28 +00:00
|
|
|
path: '/builds/worker/checkouts/src/app/build/outputs/apk/{gradle_build_type}/{fileName}'
|
2019-09-24 10:52:05 +00:00
|
|
|
description: Build Fenix from source code.
|
2020-04-01 16:29:35 +00:00
|
|
|
fetches:
|
|
|
|
toolchain:
|
|
|
|
- android-sdk-linux
|
2020-05-13 16:36:48 +00:00
|
|
|
- android-gradle-dependencies
|
2020-04-01 16:29:35 +00:00
|
|
|
run:
|
|
|
|
using: gradlew
|
|
|
|
use-caches: false
|
|
|
|
run-on-tasks-for: []
|
2019-09-24 10:52:05 +00:00
|
|
|
treeherder:
|
|
|
|
kind: build
|
|
|
|
symbol: B
|
|
|
|
platform: android-all/opt
|
|
|
|
tier: 1
|
|
|
|
worker-type: b-android
|
|
|
|
worker:
|
|
|
|
docker-image: {in-tree: base}
|
|
|
|
max-run-time: 7200
|
|
|
|
chain-of-trust: true
|
2020-04-01 16:29:35 +00:00
|
|
|
|
2019-09-24 10:52:05 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
debug:
|
|
|
|
attributes:
|
|
|
|
code-review: true
|
|
|
|
run-on-tasks-for: [github-pull-request, github-push]
|
|
|
|
run:
|
|
|
|
gradle-build-type: debug
|
|
|
|
treeherder:
|
|
|
|
symbol: debug(B)
|
|
|
|
|
2020-12-04 10:36:12 +00:00
|
|
|
beta-firebase:
|
|
|
|
disable-optimization: true
|
|
|
|
run-on-tasks-for: [github-push] # We want this on push so that we detect problem before triggering a new beta
|
|
|
|
run:
|
|
|
|
gradle-build-type: beta
|
|
|
|
test-build-type: beta
|
|
|
|
treeherder:
|
|
|
|
symbol: beta(Bf)
|
|
|
|
|
2021-03-10 10:31:55 +00:00
|
|
|
nightly-firebase:
|
|
|
|
disable-optimization: true
|
|
|
|
run-on-tasks-for: [github-push] # We want this on push so that we detect problem before triggering a new nightly
|
|
|
|
run:
|
|
|
|
gradle-build-type: nightly
|
|
|
|
test-build-type: nightly
|
|
|
|
treeherder:
|
|
|
|
symbol: nightly(Bf)
|
|
|
|
|
2019-11-26 15:20:35 +00:00
|
|
|
android-test-debug:
|
2019-11-07 16:38:17 +00:00
|
|
|
attributes:
|
|
|
|
code-review: true
|
|
|
|
run-on-tasks-for: [github-pull-request, github-push]
|
|
|
|
run:
|
|
|
|
gradle-build-type: androidTest
|
|
|
|
apk-artifact-template:
|
|
|
|
# 2 differences here: "androidTest/" is added and "{gradle_build_type}" is forced to "debug"
|
2020-07-22 13:07:28 +00:00
|
|
|
path: '/builds/worker/checkouts/src/app/build/outputs/apk/androidTest/debug/{fileName}'
|
2019-11-07 16:38:17 +00:00
|
|
|
treeherder:
|
2019-11-26 15:20:35 +00:00
|
|
|
symbol: debug(Bat)
|
|
|
|
|
2020-12-04 10:36:12 +00:00
|
|
|
# android-test-nightly and android-test-beta, while still being debug builds, are meant to be signed
|
|
|
|
# with the nightly/beta key. The Firebase testing infrastructure requires both the androidTest APK
|
|
|
|
# and the APK under test to be signed with the same key. Thus, the nightly APK being signed with
|
|
|
|
# nightly means we need an androidTest APK with the same signature.
|
2019-11-26 15:20:35 +00:00
|
|
|
#
|
|
|
|
# TODO: See if we can tweak the signing kind to make 2 signing jobs out of a single `android-test`
|
|
|
|
# job.
|
|
|
|
android-test-nightly:
|
|
|
|
attributes:
|
|
|
|
nightly: true
|
|
|
|
apk-artifact-template:
|
2020-12-04 10:36:12 +00:00
|
|
|
# 2 differences here:
|
|
|
|
# * "androidTest/" is added
|
|
|
|
# * "{gradle_build_type}" is forced to "debug"
|
2021-03-10 10:31:55 +00:00
|
|
|
path: '/builds/worker/checkouts/src/app/build/outputs/apk/androidTest/nightly/app-nightly-androidTest.apk'
|
|
|
|
disable-optimization: true
|
|
|
|
run:
|
|
|
|
gradle-build-type: androidTest
|
|
|
|
test-build-type: nightly
|
|
|
|
run-on-tasks-for: [github-push]
|
2019-11-26 15:20:35 +00:00
|
|
|
treeherder:
|
|
|
|
symbol: nightly(Bat)
|
2019-11-07 16:38:17 +00:00
|
|
|
|
2020-12-04 10:36:12 +00:00
|
|
|
android-test-beta:
|
|
|
|
apk-artifact-template:
|
|
|
|
# 3 differences here:
|
|
|
|
# * "androidTest/" is added
|
|
|
|
# * "{gradle_build_type}" is forced to "beta"
|
|
|
|
# * "{fileName}" is forced to "app-beta-androidTest.apk"
|
|
|
|
path: '/builds/worker/checkouts/src/app/build/outputs/apk/androidTest/beta/app-beta-androidTest.apk'
|
|
|
|
disable-optimization: true
|
|
|
|
run:
|
|
|
|
gradle-build-type: androidTest
|
|
|
|
test-build-type: beta
|
|
|
|
run-on-tasks-for: [github-push] # We want this on push so that we detect problem before triggering a new beta
|
|
|
|
treeherder:
|
|
|
|
symbol: beta(Bat)
|
|
|
|
|
2021-06-09 20:37:56 +00:00
|
|
|
android-test-mozillaonline:
|
|
|
|
apk-artifact-template:
|
|
|
|
# 3 differences here:
|
|
|
|
# * "androidTest/" is added
|
|
|
|
# * "{gradle_build_type}" is forced to "beta"
|
|
|
|
# * "{fileName}" is forced to "app-beta-androidTest.apk"
|
|
|
|
path: '/builds/worker/checkouts/src/app/build/outputs/apk/androidTest/beta/app-beta-androidTest.apk'
|
|
|
|
disable-optimization: true
|
|
|
|
run:
|
|
|
|
gradle-build-type: androidTest
|
|
|
|
gradle-extra-options:
|
2021-06-14 14:21:25 +00:00
|
|
|
- -PmozillaOnline
|
2021-06-09 20:37:56 +00:00
|
|
|
test-build-type: beta
|
|
|
|
run-on-tasks-for: [github-push] # We want this on push so that we detect problem before triggering a new beta
|
|
|
|
treeherder:
|
|
|
|
symbol: beta(Bat-mo)
|
|
|
|
|
2020-06-05 15:41:49 +00:00
|
|
|
nightly-simulation:
|
|
|
|
attributes:
|
|
|
|
nightly: false
|
|
|
|
run-on-tasks-for: [github-push]
|
|
|
|
include-nightly-version: true
|
|
|
|
include-shippable-secrets: true
|
|
|
|
run:
|
2020-07-22 13:07:28 +00:00
|
|
|
gradle-build-type: nightly
|
2020-06-05 15:41:49 +00:00
|
|
|
treeherder:
|
|
|
|
symbol: nightlySim(B)
|
|
|
|
|
2020-07-21 14:42:08 +00:00
|
|
|
nightly:
|
2019-09-24 10:52:05 +00:00
|
|
|
attributes:
|
2020-07-01 09:03:10 +00:00
|
|
|
nightly: true
|
|
|
|
include-nightly-version: true
|
2019-09-24 10:52:05 +00:00
|
|
|
include-shippable-secrets: true
|
|
|
|
run:
|
2020-07-22 13:07:28 +00:00
|
|
|
gradle-build-type: nightly
|
2020-07-21 14:42:08 +00:00
|
|
|
run-on-tasks-for: []
|
2019-09-24 10:52:05 +00:00
|
|
|
treeherder:
|
2020-07-21 14:42:08 +00:00
|
|
|
symbol: nightly(B)
|
2019-11-28 15:25:17 +00:00
|
|
|
|
2020-07-22 13:07:28 +00:00
|
|
|
beta:
|
2019-11-28 15:25:17 +00:00
|
|
|
attributes:
|
2020-02-19 14:35:20 +00:00
|
|
|
release-type: beta
|
2019-11-28 15:25:17 +00:00
|
|
|
include-release-version: true
|
|
|
|
include-shippable-secrets: true
|
2020-02-19 14:35:20 +00:00
|
|
|
filter-incomplete-translations: true
|
2019-11-28 15:25:17 +00:00
|
|
|
run:
|
2020-07-22 13:07:28 +00:00
|
|
|
gradle-build-type: beta
|
2019-11-28 15:25:17 +00:00
|
|
|
treeherder:
|
2020-07-22 13:07:28 +00:00
|
|
|
symbol: beta(B)
|
2019-11-28 15:25:17 +00:00
|
|
|
|
2021-06-09 20:37:56 +00:00
|
|
|
beta-mozillaonline:
|
|
|
|
apk-artifact-template:
|
|
|
|
github-name: 'fenix-mozillaonline-{version}-{abi}.apk'
|
|
|
|
attributes:
|
|
|
|
release-type: beta
|
|
|
|
include-release-version: true
|
|
|
|
include-shippable-secrets: true
|
|
|
|
filter-incomplete-translations: true
|
|
|
|
run:
|
|
|
|
gradle-build-type: beta
|
|
|
|
gradle-extra-options:
|
2021-06-14 14:21:25 +00:00
|
|
|
- -PmozillaOnline
|
2021-06-09 20:37:56 +00:00
|
|
|
treeherder:
|
|
|
|
symbol: beta(Bmo)
|
|
|
|
|
2020-07-22 13:07:28 +00:00
|
|
|
release:
|
2019-11-28 15:25:17 +00:00
|
|
|
attributes:
|
2020-07-22 13:07:28 +00:00
|
|
|
release-type: release
|
2019-11-28 15:25:17 +00:00
|
|
|
include-release-version: true
|
|
|
|
include-shippable-secrets: true
|
2020-06-04 12:54:11 +00:00
|
|
|
filter-incomplete-translations: true
|
2019-11-28 15:25:17 +00:00
|
|
|
run:
|
2020-07-22 13:07:28 +00:00
|
|
|
gradle-build-type: release
|
2019-11-28 15:25:17 +00:00
|
|
|
treeherder:
|
2020-07-22 13:07:28 +00:00
|
|
|
symbol: release(B)
|
2021-06-09 20:37:56 +00:00
|
|
|
|
|
|
|
release-mozillaonline:
|
|
|
|
apk-artifact-template:
|
|
|
|
github-name: 'fenix-mozillaonline-{version}-{abi}.apk'
|
|
|
|
attributes:
|
|
|
|
release-type: release
|
|
|
|
include-release-version: true
|
|
|
|
include-shippable-secrets: true
|
|
|
|
filter-incomplete-translations: true
|
|
|
|
run:
|
|
|
|
gradle-build-type: release
|
|
|
|
gradle-extra-options:
|
2021-06-14 14:21:25 +00:00
|
|
|
- -PmozillaOnline
|
2021-06-09 20:37:56 +00:00
|
|
|
treeherder:
|
|
|
|
symbol: release(Bmo)
|