-
Notifications
You must be signed in to change notification settings - Fork 46
/
.taskcluster.yml
51 lines (47 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
42
43
44
45
46
47
48
49
50
51
version: 0
metadata:
name: Normandy
description: Normandy CI Tasks
owner: "{{ event.head.user.email }}"
source: "{{ event.head.repo.url }}"
tasks:
- metadata:
name: normandy:decision
description: Normandy decision task
owner: "{{ event.head.user.email }}"
source: "{{ event.head.repo.url }}"
provisionerId: "{{ taskcluster.docker.provisionerId }}"
workerType: "{{ taskcluster.docker.workerType }}"
scopes:
- queue:create-task:aws-provisioner-v1/github-worker
# the decision task creates tasks that run on the gecko worker for speed
# and to ensure the same execution environment as "regular" gecko builds
- queue:create-task:aws-provisioner-v1/gecko-1-b-linux
payload:
env:
maxRunTime: 300 # 5 minutes
image: mozilla/normandy-taskcluster:2018-01-18
features:
taskclusterProxy: true
command:
- "/bin/bash"
- "-c"
- >-
git clone $GITHUB_HEAD_REPO_URL normandy &&
pushd normandy &&
git checkout $GITHUB_HEAD_SHA &&
popd &&
pushd normandy/ci/taskcluster &&
python3.6 -m venv venv &&
source venv/bin/activate &&
pip install -r requirements/default.txt -c requirements/constraints.txt &&
popd &&
python3.6 normandy/ci/taskcluster/bin/decision.py
extra:
github:
env: true
events:
- pull_request.opened
- pull_request.synchronize
- push
- release