forked from mozilla/qbrt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.taskcluster.yml
68 lines (68 loc) · 1.96 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
version: 0
allowPullRequests: public
metadata:
name: qbrt
description: a Node CLI to a minimal Mozilla desktop app runtime
owner: '{{ event.head.user.email }}'
source: '{{ event.head.repo.url }}'
tasks:
# - provisionerId: "{{ taskcluster.docker.provisionerId }}"
# metadata:
# name: qbrt test Windows
# description: qbrt automated test suite on Windows
# owner: "{{ event.head.user.email }}"
# source: "{{ event.head.repo.url }}"
# workerType: "win2012r2"
# extra:
# github:
# env: true
# events:
# - pull_request.opened
# - pull_request.closed
# - pull_request.synchronize
# - pull_request.reopened
# - push
# - release
# payload:
# maxRunTime: 3600
# command:
# - "git clone {{event.head.repo.url}} repo"
# - "cd repo"
# - "git checkout {{event.head.repo.branch}}"
# - "npm install"
# - "npm test"
- provisionerId: '{{ taskcluster.docker.provisionerId }}'
workerType: '{{ taskcluster.docker.workerType }}'
metadata:
name: qbrt test Linux
description: qbrt automated test suite on Linux
owner: '{{ event.head.user.email }}'
source: '{{ event.head.repo.url }}'
extra:
github:
events:
- pull_request.opened
- pull_request.closed
- pull_request.synchronize
- pull_request.reopened
- push
- release
payload:
env:
MOZ_HEADLESS: 1
maxRunTime: 3600
image: 'node:6'
command:
- /bin/bash
- '--login'
- '-c'
- >-
apt-get update -y &&
apt-get install -y libgtk-3-0 libdbus-glib-1-2 xvfb &&
su node -c 'cd &&
git clone {{event.head.repo.url}} repo &&
cd repo &&
git checkout {{event.head.sha}} &&
npm install . &&
node ./bin/postinstall.js &&
npm test'