forked from yarnpkg/yarn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jenkins_jobs.groovy
64 lines (61 loc) · 1.41 KB
/
jenkins_jobs.groovy
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
// Jenkins build jobs for Yarn
// https://build.dan.cx/view/Yarn/
/**
* Trigger that fires when a new stable Yarn version is released
* This could probably be smarter in the future (eg. handle it using a webhook
* rather than polling the version number)
*/
def yarnStableVersionChange = {
triggerContext -> triggerContext.with {
urlTrigger {
cron 'H/15 * * * *'
url('https://yarnpkg.com/latest-version') {
inspection 'change'
}
}
}
}
matrixJob('yarn-e2e') {
displayName 'Yarn End To End'
description 'Nightly end-to-end tests for Yarn'
scm {
github 'yarnpkg/yarn', 'master'
}
triggers {
cron '@midnight'
}
axes {
text 'os', 'ubuntu-16.04', 'ubuntu-14.04', 'ubuntu-12.04'
label 'label', 'docker' // Only run on build hosts that have Docker
}
steps {
// 192.168.122.1:3142 is apt-cacher-ng on the Docker host
shell '''
cd end_to_end_tests
APT_PROXY=192.168.122.1:3142 ./test-$os.sh
'''
}
publishers {
gitHubIssueNotifier {
}
}
}
job('yarn-chocolatey') {
displayName 'Yarn Chocolatey'
description 'Ensures the Chocolatey package for Yarn is up-to-date'
label 'windows'
scm {
github 'yarnpkg/yarn', 'master'
}
triggers {
yarnStableVersionChange delegate
}
steps {
powerShell '.\\scripts\\build-chocolatey.ps1 -Publish'
}
publishers {
gitHubIssueNotifier {
}
mailer '[email protected]'
}
}