forked from tinymce/tinymce-angular
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
57 lines (47 loc) · 1.24 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
46
47
48
49
50
51
52
53
54
55
56
57
#!groovy
@Library('[email protected]') _
standardProperties()
node("primary") {
echo "Clean workspace"
cleanWs()
stage("checkout") {
checkout localBranch(scm)
}
stage("dependencies") {
yarnInstall()
}
stage("stamp") {
sh "yarn beehive-flow stamp"
}
stage("build") {
sh "yarn build"
}
stage("lint") {
sh "yarn lint"
}
def platforms = [
[ os: "windows-10", browser: "chrome" ],
[ os: "windows-10", browser: "firefox" ],
[ os: "windows-10", browser: "MicrosoftEdge" ],
[ os: "macos", browser: "chrome" ],
[ os: "macos", browser: "firefox" ],
[ os: "macos", browser: "safari" ]
]
bedrockBrowsers(platforms: platforms, testDirs: [ "tinymce-angular-component/src/test/ts/browser" ])
stage("storybook") {
def status = beehiveFlowStatus();
if (status.branchState == 'releaseReady' && status.isLatest) {
sshagent (credentials: ['ccde5b3d-cf13-4d70-88cf-ae1e6dfd4ef4']) {
sh 'yarn storybook-to-ghpages'
}
} else {
echo "Skipping as is not latest release"
}
}
stage("publish") {
sshagent(credentials: ['jenkins2-github']) {
sh "yarn beehive-flow publish --working-dir dist/tinymce-angular"
sh "yarn beehive-flow advance-ci"
}
}
}