forked from LiskHQ/lisk-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile.builds
60 lines (59 loc) · 1.58 KB
/
Jenkinsfile.builds
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
@Library('lisk-jenkins') _
pipeline {
agent none
stages {
stage('package') {
parallel {
stage('linux, windows') {
agent { node { label 'lisk-desktop' } }
steps {
cleanWs(patterns: [[pattern: 'dist/lisk-*-*', type: 'INCLUDE'], [pattern: 'dist/latest-*.yml', type: 'INCLUDE']])
nvm(getNodejsVersion()) {
sh '''
npm i -g yarn
yarn --cwd app && yarn
cp -R /home/lisk/fonts/basierCircle setup/react/assets/fonts
cp -R /home/lisk/fonts/gilroy setup/react/assets/fonts
yarn run build
yarn run install:electron:dependencies
yarn run dist:linux
'''
sh '''
export DEBUG=electron-builder
#yarn run dist:win # does not work
'''
}
}
post {
success {
archiveArtifacts artifacts: 'dist/lisk-*-*, dist/latest-*.yml'
}
}
}
stage('darwin') {
agent { node { label 'darwin' } }
steps {
cleanWs(patterns: [[pattern: 'dist/lisk-mac-*-*', type: 'INCLUDE'], [pattern: 'dist/latest-mac-*.yml', type: 'INCLUDE']])
nvm(getNodejsVersion()) {
sh '''
npm i -g yarn
yarn --cwd app && yarn
cp -R /Users/jenkins/fonts/basierCircle setup/react/assets/fonts
cp -R /Users/jenkins/fonts/gilroy setup/react/assets/fonts
yarn run build
yarn run install:electron:dependencies
yarn run dist:mac -- --publish never
'''
}
}
post {
success {
archiveArtifacts artifacts: 'dist/lisk-mac-*, dist/latest-mac.yml'
}
}
}
}
}
}
}
// vim: filetype=groovy