-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpipeline-macos.txt
More file actions
93 lines (92 loc) · 2.54 KB
/
Copy pathpipeline-macos.txt
File metadata and controls
93 lines (92 loc) · 2.54 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
node('Mac10.12.3') {
stage('Clean') {
if (params.BUILD_CLEAN) {
cleanSetup()
}
if (params.DEEP_CLEAN) {
cleanSetup()
sh '''
rm -rf opencmiss
rm -rf setup-build
'''
}
}
stage('Update') {
if (!params.BUILD_CLEAN) {
updateSource()
}
}
stage('Configure') {
sh 'mkdir -p opencmiss'
dir('./setup') {
git branch: 'develop', url: 'https://github.com/OpenCMISS/setup.git'
}
dir('./setup-build') {
if (params.BUILD_DEBUG) {
sh '''
cmake -DOPENCMISS_LIBRARIES=iron -DOPENCMISS_ROOT=../opencmiss -DOPENCMISS_CONFIG_BUILD_TYPE=Debug ../setup
'''
}
if (params.BUILD_RELEASE) {
sh '''
cmake -DOPENCMISS_LIBRARIES=iron -DOPENCMISS_ROOT=../opencmiss -DOPENCMISS_CONFIG_BUILD_TYPE=Release ../setup
'''
}
}
}
stage('Make') {
dir('./setup-build') {
sh '''
make
'''
}
}
stage('Test') {
if (params.BUILD_DEBUG) {
dir('./opencmiss/build/manage/release/config/Debug') {
sh '''
make keytests
'''
}
}
if (params.BUILD_RELEASE) {
dir('./opencmiss/build/manage/release/config/Release') {
sh '''
make keytests
'''
}
}
}
stage('Package') {
if(params.BUILD_RELEASE) {
dir('./opencmiss/build/manage/release/') {
if (params.DO_RELEASE) {
sh 'cmake -DOPENCMISS_RELEASE=ON .'
} else {
sh 'cmake -DOPENCMISS_RELEASE=OFF .'
}
sh 'make package_sdk'
}
}
if(params.BUILD_debug) {
dir('./opencmiss/build/manage/debug/') {
if (params.DO_RELEASE) {
sh 'cmake -DOPENCMISS_RELEASE=ON .'
} else {
sh 'cmake -DOPENCMISS_RELEASE=OFF .'
}
sh 'make package_sdk'
}
}
}
stage('Archive') {
if(params.BUILD_RELEASE) {
dir('./opencmiss/build/manage/release/packaging/sdk/package/') {
archiveArtifacts artifacts: 'OpenCMISS-Libraries*'
}
}
}
stage('Finish') {
echo "Finish"
}
}