-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipeline-gnulinux.txt
182 lines (182 loc) · 6.33 KB
/
pipeline-gnulinux.txt
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
parallel 'Ubuntu 16.04': {
node('Ubuntu_16.04_bioeng49') {
stage('Ubuntu 16.04 Clean') {
if (params.BUILD_CLEAN) {
cleanSetup()
}
if (params.DEEP_CLEAN) {
cleanSetup()
sh '''
rm -rf opencmiss
rm -rf setup-build
'''
}
}
stage('Ubuntu 16.04 Update') {
if (!params.BUILD_CLEAN) {
updateSource()
}
}
stage('Ubuntu 16.04 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_ROOT=../opencmiss -DOPENCMISS_LIBRARIES=iron -DOPENCMISS_CONFIG_BUILD_TYPE=Debug ../setup'
}
if (params.BUILD_RELEASE) {
sh 'cmake -DOPENCMISS_ROOT=../opencmiss -DOPENCMISS_LIBRARIES=iron -DOPENCMISS_CONFIG_BUILD_TYPE=Release ../setup'
}
}
}
stage('Ubuntu 16.04 Make') {
dir('./setup-build') {
sh '''#!/bin/bash
source /home/cmiss/python3.7.env/bin/activate
export PYTHONPATH=/home/cmiss/python3.7.env/lib/python3.7/site-packages/:$PYTHONPATH
make
deactivate
'''
}
}
stage('Ubuntu 16.04 Test') {
if (params.BUILD_RELEASE) {
dir('./opencmiss/build/manage/release/config/Release') {
sh '''#!/bin/bash
source /home/cmiss/python3.7.env/bin/activate
export PYTHONPATH=/home/cmiss/python3.7.env/lib/python3.7/site-packages/:$PYTHONPATH
make keytests
deactivate
'''
}
}
if (params.BUILD_DEBUG) {
dir('./opencmiss/build/manage/release/config/Debug') {
sh '''#!/bin/bash
source /home/cmiss/python3.7.env/bin/activate
export PYTHONPATH=/home/cmiss/python3.7.env/lib/python3.7/site-packages/:$PYTHONPATH
make keytests
deactivate
'''
}
}
}
stage('Ubuntu 16.04 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('Ubuntu 16.04 Archive') {
if (params.BUILD_RELEASE) {
dir('./opencmiss/build/manage/release/packaging/sdk/package/') {
archiveArtifacts artifacts: 'OpenCMISS-Libraries*'
}
}
}
stage('Ubuntu 16.04 Finish') {
echo "Finish"
}
}
}, 'Ubuntu 14.04': {
node('1034_Ubuntu') {
stage('Ubuntu 14.04 Clean') {
if (params.BUILD_CLEAN) {
cleanSetup()
}
if (params.DEEP_CLEAN) {
cleanSetup()
sh '''
rm -rf opencmiss
rm -rf setup-build
'''
}
}
stage('Ubuntu 14.04 Update') {
if (!params.BUILD_CLEAN) {
updateSource()
}
}
stage('Ubuntu 14.04 Configure') {
sh 'mkdir -p opencmiss'
dir('./setup') {
git branch: 'develop', url: 'https://github.com/OpenCMISS/setup.git'
}
dir('./setup-build') {
if (params.BUILD_RELEASE) {
sh 'cmake -DOPENCMISS_ROOT=../opencmiss -DOPENCMISS_LIBRARIES=iron -DOPENCMISS_CONFIG_BUILD_TYPE=Release ../setup'
}
if (params.BUILD_DEBUG) {
sh 'cmake -DOPENCMISS_ROOT=../opencmiss -DOPENCMISS_LIBRARIES=iron -DOPENCMISS_CONFIG_BUILD_TYPE=Debug ../setup'
}
}
}
stage('Ubuntu 14.04 Make') {
dir('./setup-build') {
sh 'make'
}
}
stage('Ubuntu 14.04 Test') {
if (params.BUILD_RELEASE) {
dir('./opencmiss/build/manage/release/config/Release') {
sh 'make keytests'
}
}
if (params.BUILD_DEBUG) {
dir('./opencmiss/build/manage/release/config/Debug') {
sh 'make keytests'
}
}
}
stage('Ubuntu 14.04 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('Ubuntu 14.04 Archive') {
if (params.BUILD_RELEASE) {
dir('./opencmiss/build/manage/release/packaging/sdk/package/') {
archiveArtifacts artifacts: 'OpenCMISS-Libraries*'
}
}
}
stage('Ubuntu 14.04 Finish') {
echo "Finish"
}
}
}