This repository has been archived by the owner on Jan 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
.taskcluster.yml
94 lines (92 loc) · 3.63 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
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
version: 1
policy: # There are no secrets here, so any pull request should be able to run the tasks.
pullRequests: public
tasks:
- $if: 'tasks_for == "github-pull-request" && event["action"] in ["opened", "reopened", "synchronize"]'
then:
provisionerId: aws-provisioner-v1
workerType: github-worker
taskId: {$eval: as_slugid("pr_task")}
created: {$fromNow: ''}
deadline: {$fromNow: '1 hour'}
payload:
maxRunTime: 3600
image: "node:8"
command:
- "/bin/bash"
- "-lc"
- "git clone ${event.pull_request.head.repo.git_url} repo && cd repo && git checkout ${event.pull_request.head.sha} && yarn global add node-gyp && yarn install && yarn test"
metadata:
name: "taskcluster-lib-api test"
description: "tests for metrics and monitoring library"
owner:
$if: 'event.pull_request.user.type == "User"'
then: ${event.pull_request.user.login}@users.noreply.github.com
else:
$if: '"[bot]" in event.pull_request.user.login'
then: ${event.pull_request.user.login[:-5]}@users.noreply.github.com
else: ${event.pull_request.user.login}@users.noreply.github.com
source: ${event.repository.url}
- $if: 'tasks_for == "github-push"'
then:
$if: 'event.ref == "refs/heads/master"'
then:
provisionerId: aws-provisioner-v1
workerType: github-worker
taskId: {$eval: as_slugid("push_task")}
created: {$fromNow: ''}
deadline: {$fromNow: '1 hour'}
scopes:
- auth:aws-s3:read-write:taskcluster-raw-docs/taskcluster-lib-api/
payload:
features:
taskclusterProxy:
true
maxRunTime: 3600
image: taskcluster/upload-project-docs:latest
command:
- /bin/bash
- '--login'
- '-cx'
- >-
git clone ${event.repository.url} repo &&
cd repo &&
git config advice.detachedHead false &&
git checkout ${event.after} &&
export DEBUG=* DOCS_PROJECT=taskcluster-lib-api DOCS_TIER=libraries DOCS_FOLDER=docs DOCS_README=README.md &&
upload-project-docs
metadata:
name: "taskcluster-lib-api docs upload"
description: "Upload documentation for this project"
owner:
$if: 'event.pusher.email'
then: ${event.pusher.email}
else:
$if: '"[bot]" in event.pusher.name'
then: ${event.pusher.name[:-5]}@users.noreply.github.com
else: ${event.pusher.name}@users.noreply.github.com
source: ${event.repository.url}
else:
provisionerId: aws-provisioner-v1
workerType: github-worker
taskId: {$eval: as_slugid("push_task")}
created: {$fromNow: ''}
deadline: {$fromNow: '1 hour'}
payload:
maxRunTime: 3600
image: "node:8"
command:
- "/bin/bash"
- "-lc"
- "git clone ${event.repository.url} repo && cd repo && git checkout ${event.after} && yarn global add node-gyp && yarn install && yarn test"
metadata:
name: "taskcluster-lib-api test"
description: "tests for metrics and monitoring library"
owner:
$if: 'event.pusher.email'
then: ${event.pusher.email}
else:
$if: '"[bot]" in event.pusher.name'
then: ${event.pusher.name[:-5]}@users.noreply.github.com
else: ${event.pusher.name}@users.noreply.github.com
source: ${event.repository.url}