-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.taskcluster.yml
130 lines (130 loc) · 3.92 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
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
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"
- "-lc"
- "git clone ${clone_url} repo && cd repo && git checkout ${sha} && yarn install && yarn test"
metadata:
name: "taskcluster-lib-urls node.js test"
description: "Library for building taskcluster urls"
owner: [email protected]
source: ${clone_url}
- $if: should_run
then:
provisionerId: proj-taskcluster
workerType: ci
deadline: {$fromNow: '1 day'}
payload:
maxRunTime: 3600
image: 'golang:1.10'
command:
- /bin/bash
- '-c'
- |
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH/bin v1.12.3 &&
mkdir -p /go/src/github.com/taskcluster/taskcluster-lib-urls
cd /go/src/github.com/taskcluster/taskcluster-lib-urls
git clone ${clone_url} repo
cd repo
git config advice.detachedHead false
git checkout ${sha}
go get -v -d -t ./...
go test -v -race ./...
golangci-lint run
metadata:
name: "taskcluster-lib-urls go test"
description: Run library test suite - golang 1.10
owner: [email protected]
source: ${clone_url}
- $if: should_run
then:
provisionerId: proj-taskcluster
workerType: ci
deadline: {$fromNow: '1 day'}
payload:
maxRunTime: 3600
image: 'maven:3.6.3-openjdk-8'
command:
- /bin/bash
- '-c'
- |
git clone ${clone_url} repo
cd repo
git config advice.detachedHead false
git checkout ${sha}
mvn -X -e install
metadata:
name: taskcluster-lib-urls java test
description: Run library test suite - java
owner: [email protected]
source: ${clone_url}
- $if: should_run
then:
provisionerId: proj-taskcluster
workerType: ci
deadline: {$fromNow: '1 day'}
payload:
maxRunTime: 3600
image: 'python:2.7'
command:
- /bin/bash
- '-c'
- |
git clone ${clone_url} repo
cd repo
git config advice.detachedHead false
git checkout ${sha}
pip install tox
tox -e py27
metadata:
name: "taskcluster-lib-urls python 2.7 test"
description: Run library test suite - python2.7
owner: [email protected]
source: ${clone_url}
- $if: should_run
then:
provisionerId: proj-taskcluster
workerType: ci
deadline: {$fromNow: '1 day'}
payload:
maxRunTime: 3600
image: 'python:3.6'
command:
- /bin/bash
- '-c'
- |
git clone ${clone_url} repo
cd repo
git config advice.detachedHead false
git checkout ${sha}
pip install tox
tox -e py36
metadata:
name: taskcluster-lib-urls python 3.6 test
description: Run library test suite - python3.6
owner: [email protected]
source: ${clone_url}