-
Notifications
You must be signed in to change notification settings - Fork 7
/
.taskcluster.yml
43 lines (43 loc) · 1.21 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
version: 1
policy:
pullRequests: public
tasks:
$let:
should_run:
$if: 'tasks_for == "github-pull-request"'
then: {$eval: 'event["action"] in ["opened", "reopened", "synchronize"]'}
else: {$eval: 'tasks_for == "github-push"'}
clone_url:
$if: 'tasks_for == "github-pull-request"'
then: ${event.pull_request.head.repo.clone_url}
else: ${event.repository.clone_url}
sha:
$if: 'tasks_for == "github-pull-request"'
then: ${event.pull_request.head.sha}
else: ${event.after}
in:
- $if: should_run
then:
provisionerId: proj-taskcluster
workerType: ci
deadline: {$fromNow: '1 day'}
payload:
maxRunTime: 3600
image: "node:10"
command:
- /bin/bash
- '--login'
- '-c'
- >-
git clone ${clone_url} repo &&
cd repo &&
git config advice.detachedHead false &&
git checkout ${sha} &&
yarn &&
yarn lint &&
yarn test
metadata:
name: "taskcluster-lib-scopes test"
description: "Library for manipulating scopes"
owner: [email protected]
source: ${clone_url}