forked from mozilla/notes
/
.taskcluster.yml
41 lines (41 loc) · 1.51 KB
/
.taskcluster.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
version: 0
tasks:
- provisionerId: '{{ taskcluster.docker.provisionerId }}'
workerType: '{{ taskcluster.docker.workerType }}'
scopes:
- "secrets:get:project/testpilot/notes"
extra:
github:
events:
- pull_request.opened
- pull_request.reopened
- pull_request.synchronize
- push
- release
payload:
features:
taskclusterProxy: true
maxRunTime: 3600
image: circleci/android:api-25-node8-alpha
command:
- /bin/bash
- '--login'
- '-c'
- >-
cd ~ && git clone {{event.head.repo.url}} repo && cd repo && git config
advice.detachedHead false && git checkout {{event.head.sha}} && cd native &&
source ./misc/taskcluster_secrets.sh &&
npm install . && cd android && set +x &&
./gradlew assembleRelease -PMYAPP_RELEASE_STORE_FILE=$MYAPP_RELEASE_STORE_FILE -PMYAPP_RELEASE_KEY_ALIAS=$MYAPP_RELEASE_KEY_ALIAS -PMYAPP_RELEASE_STORE_PASSWORD=$MYAPP_RELEASE_STORE_PASSWORD -PMYAPP_RELEASE_KEY_PASSWORD=$MYAPP_RELEASE_KEY_PASSWORD &&
set -x && cp app/build/outputs/apk/release/app-release.apk /tmp
artifacts:
'public/app-release.apk':
type: 'file'
path: '/tmp/app-release.apk'
expires: "{{ '1 month' | $fromNow }}"
metadata:
name: Test Pilot Notes
description: Test Pilot Notes
owner: '{{ event.head.user.email }}'
source: '{{ event.head.repo.url }}'
allowPullRequests: collaborators