-
Notifications
You must be signed in to change notification settings - Fork 6
/
Jenkinsfile
45 lines (37 loc) · 1.02 KB
/
Jenkinsfile
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
#!groovy
@Library('waluigi@release/7') _
// NOTE: This Jenkinsfile relies on Tiny's internal infrastructure
standardProperties()
timestamps {
tinyPods.node() {
stage("clean") {
exec('yarn clean')
}
stage("install") {
yarnInstall()
}
stage("build") {
exec('yarn build')
}
stage("test") {
exec('yarn test')
bedrockBrowsers(
prepareTests: {
yarnInstall()
exec('yarn build')
},
testDirs: [ 'modules/sample/src/test/ts/**/pass' ],
custom: '--config modules/sample/tsconfig.json --customRoutes modules/sample/routes.json --polyfills Promise Symbol'
)
}
if (isReleaseBranch()) {
stage("publish") {
tinyNpm.withNpmPublishCredentials {
// We need to tell git to ignore the changes to .npmrc when publishing
exec('git update-index --assume-unchanged .npmrc')
exec('yarn lerna publish from-package --yes --no-git-reset --ignore @ephox/bedrock-sample')
}
}
}
}
}