Repository navigation
Expand file tree
/
Copy path.taskcluster.yml
More file actions
133 lines (131 loc) · 5.69 KB
/
Copy path.taskcluster.yml
File metadata and controls
133 lines (131 loc) · 5.69 KB
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
# 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/.
version: 0
allowPullRequests: collaborators
tasks:
####################################################################################################
# Task: Pull requests
####################################################################################################
- provisionerId: '{{ taskcluster.docker.provisionerId }}'
workerType: '{{ taskcluster.docker.workerType }}'
deadline: "{{ '2 hours' | $fromNow }}"
extra:
github:
env: true
events:
- pull_request.opened
- pull_request.edited
- pull_request.synchronize
- pull_request.reopened
- push
scopes:
- "queue:create-task:aws-provisioner-v1/github-worker"
- "queue:scheduler-id:taskcluster-github"
payload:
maxRunTime: 3600
image: 'mozillamobile/android-components:1.4'
command:
- /bin/bash
- '--login'
- '-cx'
- >-
export TERM=dumb
&& git clone {{ event.head.repo.url }}
&& cd application-services
&& git config advice.detachedHead false
&& git checkout {{ event.head.sha }}
&& python automation/taskcluster/decision_task_pull_request.py
features:
taskclusterProxy: true
metadata:
name: application-services - Pull Request
description: Building and testing the Application Services repository - triggered by a pull request.
owner: '{{ event.head.user.email }}'
source: '{{ event.head.repo.url }}'
####################################################################################################
# Task: Release
####################################################################################################
- provisionerId: '{{ taskcluster.docker.provisionerId }}'
workerType: '{{ taskcluster.docker.workerType }}'
deadline: "{{ '4 hours' | $fromNow }}"
extra:
github:
events:
- release
scopes:
- "secrets:get:project/application-services/publish"
payload:
maxRunTime: 7200
image: 'mozillamobile/rust-component:buildtools-27.0.3-ndk-r15c-ndk-version-21-rust-stable-1.28.0-rust-beta-1.29.0-beta.15'
command:
- /bin/bash
- '-c'
- >-
export TERM=dumb
&& git clone '{{ event.head.repo.url }}' application-services
&& cd application-services
&& git config advice.detachedHead false
&& git checkout '{{ event.version }}'
&& python automation/taskcluster/release/fetch-bintray-api-key.py
&& ./scripts/taskcluster-android.sh
&& ./gradlew --no-daemon clean :fxa-client-library:assembleRelease :logins-library:assembleRelease
&& ./gradlew bintrayUpload --debug -PvcsTag="{{ event.head.sha }}"
artifacts:
'public/bin/mozilla/fxa_client-release-{{ event.version }}.aar':
type: 'file'
path: '/build/application-services/fxa-client/sdks/android/library/build/outputs/aar/fxa_client-release.aar'
'public/bin/mozilla/logins-release-{{ event.version }}.aar':
type: 'file'
path: '/build/application-services/logins-api/android/library/build/outputs/aar/logins-release.aar'
features:
taskclusterProxy: true
routes:
- index.project.fxaclient.builds.{{ event.version }}
metadata:
name: fxa-client Android Build - Release ({{ event.version }})
description: Builds the FxA client and the Logins API for Android architectures.
owner: '{{ event.head.user.email }}'
source: '{{ event.head.repo.url }}'
####################################################################################################
# Task: Tag
####################################################################################################
- provisionerId: '{{ taskcluster.docker.provisionerId }}'
workerType: '{{ taskcluster.docker.workerType }}'
deadline: "{{ '4 hours' | $fromNow }}"
extra:
github:
events:
- tag
scopes:
- "secrets:get:project/application-services/publish"
payload:
maxRunTime: 7200
image: 'mozillamobile/rust-component:buildtools-27.0.3-ndk-r15c-ndk-version-21-rust-stable-1.28.0-rust-beta-1.29.0-beta.15'
command:
- /bin/bash
- '-c'
- >-
export TERM=dumb
&& git clone '{{ event.head.repo.url }}' application-services
&& cd application-services
&& git config advice.detachedHead false
&& git checkout '{{ event.head.tag }}'
&& python automation/taskcluster/release/fetch-bintray-api-key.py
&& ./scripts/taskcluster-android.sh
&& ./gradlew --no-daemon clean :fxa-client-library:assembleRelease :logins-library:assembleRelease
&& ./gradlew bintrayUpload --debug -PvcsTag="{{ event.head.sha }}"
artifacts:
'public/bin/mozilla/fxa_client-release-{{ event.head.tag }}.aar':
type: 'file'
path: '/build/application-services/fxa-client/sdks/android/library/build/outputs/aar/fxa_client-release.aar'
'public/bin/mozilla/logins-release-{{ event.head.tag }}.aar':
type: 'file'
path: '/build/application-services/logins-api/android/library/build/outputs/aar/logins-release.aar'
features:
taskclusterProxy: true
metadata:
name: application-services Android Build - Tag ({{ event.head.tag }})
description: Builds the FxA client and the Logins API for Android architectures.
owner: '{{ event.head.user.email }}'
source: '{{ event.head.repo.url }}'