forked from cmu-db/peloton
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
executable file
·343 lines (320 loc) · 20.9 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
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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
pipeline {
agent none
stages {
stage('Build') {
parallel {
// begin gcc builds
// NOTE: this next stage is special because it copies the test results out of the container
stage('Ubuntu Xenial/gcc-5.4.0/llvm-3.7.1 (Debug)') {
agent {
docker {
image 'ubuntu:xenial'
// args '-v ${WORKSPACE}/../builds/${BUILD_ID}:/job:rw'
}
}
steps {
sh 'sudo /bin/bash -c "source ./script/installation/packages.sh"'
sh 'python script/validators/source_validator.py'
sh 'mkdir build'
sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_SANITIZER=Address -DCOVERALLS=False .. && make -j4'
sh 'cd build && make check -j4'
// sh 'cd build && cp -pr test /job/' // special tests collection step just for this stage
sh 'cd build && make install'
sh 'cd build && bash ../script/testing/psql/psql_test.sh'
sh 'sudo apt-get -qq update && sudo apt-get -qq -y --no-install-recommends install wget default-jdk default-jre' // prerequisites for jdbc_validator
sh 'cd build && python ../script/validators/jdbc_validator.py'
sh 'cd build && python ../script/testing/junit/run_junit.py'
}
}
stage('Ubuntu Xenial/gcc-5.4.0/llvm-3.7.1 (Release)') {
agent { docker { image 'ubuntu:xenial' } }
steps {
sh 'sudo /bin/bash -c "source ./script/installation/packages.sh"'
sh 'python script/validators/source_validator.py'
sh 'mkdir build'
sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release -DCOVERALLS=False .. && make -j4'
sh 'cd build && make check -j4'
sh 'cd build && make install'
sh 'cd build && bash ../script/testing/psql/psql_test.sh'
sh 'sudo apt-get -qq update && sudo apt-get -qq -y --no-install-recommends install wget default-jdk default-jre' // prerequisites for jdbc_validator
sh 'cd build && python ../script/validators/jdbc_validator.py'
sh 'cd build && python ../script/testing/junit/run_junit.py'
}
}
stage('Ubuntu Trusty/gcc-5.4.0/llvm-3.7.1 (Debug)') {
agent { docker { image 'ubuntu:trusty' } }
steps {
sh 'sudo /bin/bash -c "source ./script/installation/packages.sh"'
sh 'sudo apt-get -y install software-properties-common'
sh 'sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test'
sh 'sudo apt-get update'
sh 'sudo apt-get -y install gcc-5 g++-5'
sh 'sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1 --slave /usr/bin/g++ g++ /usr/bin/g++-5'
sh 'python script/validators/source_validator.py'
sh 'mkdir build'
sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_SANITIZER=Address -DCOVERALLS=False .. && make -j4'
sh 'cd build && make check -j4'
sh 'cd build && make install'
sh 'cd build && bash ../script/testing/psql/psql_test.sh'
sh 'sudo apt-get -qq update && sudo apt-get -qq -y --no-install-recommends install wget default-jdk default-jre' // prerequisites for jdbc_validator
sh 'cd build && python ../script/validators/jdbc_validator.py'
sh 'cd build && python ../script/testing/junit/run_junit.py'
}
}
stage('Ubuntu Trusty/gcc-5.4.0/llvm-3.7.1 (Release)') {
agent { docker { image 'ubuntu:trusty' } }
steps {
sh 'sudo /bin/bash -c "source ./script/installation/packages.sh"'
sh 'sudo apt-get -y install software-properties-common'
sh 'sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test'
sh 'sudo apt-get update'
sh 'sudo apt-get -y install gcc-5 g++-5'
sh 'sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1 --slave /usr/bin/g++ g++ /usr/bin/g++-5'
sh 'python script/validators/source_validator.py'
sh 'mkdir build'
sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release -DCOVERALLS=False .. && make -j4'
sh 'cd build && make check -j4'
sh 'cd build && make install'
sh 'cd build && bash ../script/testing/psql/psql_test.sh'
sh 'sudo apt-get -qq update && sudo apt-get -qq -y --no-install-recommends install wget default-jdk default-jre' // prerequisites for jdbc_validator
sh 'cd build && python ../script/validators/jdbc_validator.py'
sh 'cd build && python ../script/testing/junit/run_junit.py'
}
}
stage('Ubuntu Xenial/gcc-5.4.0/llvm-3.7.1 (LOG_LEVEL_TRACE)') {
agent { docker { image 'ubuntu:xenial' } }
steps {
sh 'sudo /bin/bash -c "source ./script/installation/packages.sh"'
sh 'python ./script/validators/source_validator.py'
sh 'mkdir build'
sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_SANITIZER=Address -DCMAKE_CXX_FLAGS="-DLOG_LEVEL=LOG_LEVEL_TRACE" -DCOVERALLS=False .. && make -j4'
}
}
stage('macOS 10.13/Apple LLVM version 9.1.0 (Debug)') {
agent { label 'macos' }
steps {
sh 'sudo /bin/bash -c "source ./script/installation/packages.sh"'
sh 'python script/validators/source_validator.py'
sh 'mkdir build'
sh 'cd build && cmake -DCMAKE_PREFIX_PATH=`llvm-config-3.7 --prefix` -DCMAKE_BUILD_TYPE=Debug -DUSE_SANITIZER=Address -DCOVERALLS=False .. && make -j4'
sh 'cd build && ASAN_OPTIONS=detect_container_overflow=0 make check -j4'
sh 'cd build && make install'
sh 'cd build && bash ../script/testing/psql/psql_test.sh'
sh 'cd build && python ../script/validators/jdbc_validator.py'
sh 'cd build && ASAN_OPTIONS=detect_container_overflow=0 python ../script/testing/junit/run_junit.py'
}
}
// stage('Debian Stretch/gcc-6.3.0/llvm-3.8.1 (Debug)') {
// agent { docker { image 'debian:stretch' } }
// steps {
// sh 'sudo /bin/bash -c "source ./script/installation/packages.sh"'
// sh 'python script/validators/source_validator.py'
// sh 'mkdir build'
// sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_SANITIZER=Address -DCOVERALLS=False .. && make -j4'
// sh 'cd build && make check -j4'
// sh 'cd build && make install'
// sh 'cd build && bash ../script/testing/psql/psql_test.sh'
// sh 'sudo apt-get -qq update && sudo apt-get -qq -y --no-install-recommends install wget default-jdk default-jre' // prerequisites for jdbc_validator
// sh 'cd build && python ../script/validators/jdbc_validator.py'
// sh 'cd build && python ../script/testing/junit/run_junit.py'
// }
// }
// stage('Debian Stretch/gcc-6.3.0/llvm-3.8.1 (Release)') {
// agent { docker { image 'debian:stretch' } }
// steps {
// sh 'sudo /bin/bash -c "source ./script/installation/packages.sh"'
// sh 'python script/validators/source_validator.py'
// sh 'mkdir build'
// sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release -DCOVERALLS=False .. && make -j4'
// sh 'cd build && make check -j4'
// sh 'cd build && make install'
// sh 'cd build && bash ../script/testing/psql/psql_test.sh'
// sh 'sudo apt-get -qq update && sudo apt-get -qq -y --no-install-recommends install wget default-jdk default-jre' // prerequisites for jdbc_validator
// sh 'cd build && python ../script/validators/jdbc_validator.py'
// sh 'cd build && python ../script/testing/junit/run_junit.py'
// }
// }
// stage('Fedora 26/gcc-7.1.1/llvm-4.0.1 (Debug)') {
// agent { docker { image 'fedora:26' } }
// steps {
// sh 'sudo /bin/bash -c "source ./script/installation/packages.sh"'
// sh 'python script/validators/source_validator.py'
// sh 'mkdir build'
// sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_SANITIZER=Address -DCOVERALLS=False .. && make -j4'
// sh 'cd build && make check -j4'
// sh 'cd build && make install'
// sh 'cd build && bash ../script/testing/psql/psql_test.sh'
// sh 'sudo dnf -q install -y wget java-devel' // prerequisites for jdbc_validator
// sh 'cd build && python ../script/validators/jdbc_validator.py'
// sh 'cd build && python ../script/testing/junit/run_junit.py'
// }
// }
// stage('Fedora 26/gcc-7.1.1/llvm-4.0.1 (Release)') {
// agent { docker { image 'fedora:26' } }
// steps {
// sh 'sudo /bin/bash -c "source ./script/installation/packages.sh"'
// sh 'python script/validators/source_validator.py'
// sh 'mkdir build'
// sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release -DCOVERALLS=False .. && make -j4'
// sh 'cd build && make check -j4'
// sh 'cd build && make install'
// sh 'cd build && bash ../script/testing/psql/psql_test.sh'
// sh 'sudo dnf -q install -y wget java-devel' // prerequisites for jdbc_validator
// sh 'cd build && python ../script/validators/jdbc_validator.py'
// sh 'cd build && python ../script/testing/junit/run_junit.py'
// }
// }
// stage('Fedora 27/gcc-7.2.1/llvm-4.0.1 (Debug)') {
// agent { docker { image 'fedora:27' } }
// steps {
// sh 'sudo /bin/bash -c "source ./script/installation/packages.sh"'
// sh 'python ./script/validators/source_validator.py'
// sh 'mkdir build'
// sh 'cd build && PATH=/usr/lib64/llvm4.0/bin:$PATH cmake -DCMAKE_CXX_FLAGS="-isystem /usr/include/llvm4.0" -DCMAKE_BUILD_TYPE=Debug -DUSE_SANITIZER=Address -DCOVERALLS=False .. && make -j4'
// sh 'cd build && make check -j4'
// sh 'cd build && make install'
// sh 'cd build && bash ../script/testing/psql/psql_test.sh'
// sh 'sudo dnf -q install -y wget java-devel' // prerequisites for jdbc_validator
// sh 'cd build && python ../script/validators/jdbc_validator.py'
// sh 'cd build && python ../script/testing/junit/run_junit.py'
// }
// }
// stage('Fedora 27/gcc-7.2.1/llvm-4.0.1 (Release)') {
// agent { docker { image 'fedora:27' } }
// steps {
// sh 'sudo /bin/bash -c "source ./script/installation/packages.sh"'
// sh 'python ./script/validators/source_validator.py'
// sh 'mkdir build'
// sh 'cd build && PATH=/usr/lib64/llvm4.0/bin:$PATH cmake -DCMAKE_CXX_FLAGS="-isystem /usr/include/llvm4.0" -DCMAKE_BUILD_TYPE=Release -DCOVERALLS=False .. && make -j4'
// sh 'cd build && make check -j4'
// sh 'cd build && make install'
// sh 'cd build && bash ../script/testing/psql/psql_test.sh'
// sh 'sudo dnf -q install -y wget java-devel' // prerequisites for jdbc_validator
// sh 'cd build && python ../script/validators/jdbc_validator.py'
// sh 'cd build && python ../script/testing/junit/run_junit.py'
// }
// }
// stage('CentOS 7/gcc-4.8.5/llvm-3.9.1 (Debug)') {
// agent { docker { image 'centos:7' } }
// steps {
// sh 'sudo /bin/bash -c "source ./script/installation/packages.sh"'
// sh 'python script/validators/source_validator.py'
// sh 'mkdir build'
// sh 'cd build && cmake3 -DCMAKE_BUILD_TYPE=Debug -DCOVERALLS=False .. && make -j4'
// sh 'cd build && make check -j4'
// sh 'cd build && make install'
// sh 'cd build && bash ../script/testing/psql/psql_test.sh'
// sh 'sudo yum -q install -y wget java-devel' // prerequisites for jdbc_validator
// sh 'cd build && python ../script/validators/jdbc_validator.py'
// sh 'cd build && python ../script/testing/junit/run_junit.py'
// }
// }
// stage('CentOS 7/gcc-4.8.5/llvm-3.9.1 (Release)') {
// agent { docker { image 'centos:7' } }
// steps {
// sh 'sudo /bin/bash -c "source ./script/installation/packages.sh"'
// sh 'python script/validators/source_validator.py'
// sh 'mkdir build'
// sh 'cd build && cmake3 -DCMAKE_BUILD_TYPE=Release -DCOVERALLS=False .. && make -j4'
// sh 'cd build && make check -j4'
// sh 'cd build && make install'
// sh 'cd build && bash ../script/testing/psql/psql_test.sh'
// sh 'sudo yum -q install -y wget java-devel' // prerequisites for jdbc_validator
// sh 'cd build && python ../script/validators/jdbc_validator.py'
// sh 'cd build && python ../script/testing/junit/run_junit.py'
// }
// }
// end gcc builds
// begin clang builds
// stage('Ubuntu Xenial/clang-3.7.1/llvm-3.7.1 (Debug)') {
// agent { docker { image 'ubuntu:xenial' } }
// steps {
// sh 'sudo /bin/bash -c "source ./peloton/script/installation/packages.sh"'
// sh 'python script/validators/source_validator.py'
// sh 'mkdir build'
// sh 'cd build && CC=clang-3.7 CXX=clang++-3.7 cmake -DCMAKE_BUILD_TYPE=Debug -DCOVERALLS=False .. && make -j4 && make install'
// }
// }
// stage('Ubuntu Xenial/clang-3.7.1/llvm-3.7.1 (Release)') {
// agent { docker { image 'ubuntu:xenial' } }
// steps {
// sh 'sudo /bin/bash -c "source ./peloton/script/installation/packages.sh"'
// sh 'python script/validators/source_validator.py'
// sh 'mkdir build'
// sh 'cd build && CC=clang-3.7 CXX=clang++-3.7 cmake -DCMAKE_BUILD_TYPE=Release -DCOVERALLS=False .. && make -j4 && make install'
// }
// }
// stage('Ubuntu Trusty/clang-3.7.1/llvm-3.7.1 (Debug)') {
// agent { docker { image 'ubuntu:trusty' } }
// steps {
// sh 'sudo /bin/bash -c "source ./script/installation/packages.sh"'
// sh 'python script/validators/source_validator.py'
// sh 'mkdir build'
// sh 'cd build && CC=clang-3.7 CXX=clang++-3.7 cmake -DCMAKE_BUILD_TYPE=Debug -DCOVERALLS=False .. && make -j4'
// }
// }
// stage('Ubuntu Trusty/clang-3.7.1/llvm-3.7.1 (Release)') {
// agent { docker { image 'ubuntu:trusty' } }
// steps {
// sh 'sudo /bin/bash -c "source ./script/installation/packages.sh"'
// sh 'python script/validators/source_validator.py'
// sh 'mkdir build'
// sh 'cd build && CC=clang-3.7 CXX=clang++-3.7 cmake -DCMAKE_BUILD_TYPE=Release -DCOVERALLS=False .. && make -j4'
// }
// }
// stage('Fedora 26/clang-4.0.1/llvm-4.0.1 (Debug)') {
// agent { docker { image 'fedora:26' } }
// steps {
// sh 'sudo /bin/bash -c "source ./script/installation/packages.sh"'
// sh 'python script/validators/source_validator.py'
// sh 'mkdir build'
// sh 'cd build && CC=clang CXX=clang++ cmake -DCMAKE_BUILD_TYPE=Debug -DCOVERALLS=False .. && make -j4'
// }
// }
// stage('Fedora 26/clang-4.0.1/llvm-4.0.1 (Release)') {
// agent { docker { image 'fedora:26' } }
// steps {
// sh 'sudo /bin/bash -c "source ./script/installation/packages.sh"'
// sh 'python script/validators/source_validator.py'
// sh 'mkdir build'
// sh 'cd build && CC=clang CXX=clang++ cmake -DCMAKE_BUILD_TYPE=Release -DCOVERALLS=False .. && make -j4'
// }
// }
// stage('Fedora 27/clang-4.0.1/llvm-4.0.1 (Debug)') {
// agent { docker { image 'fedora:27' } }
// steps {
// sh 'sudo /bin/bash -c "source ./script/installation/packages.sh"'
// sh 'python script/validators/source_validator.py'
// sh 'mkdir build'
// sh 'cd build && CC=clang CXX=clang++ cmake -DCMAKE_BUILD_TYPE=Debug -DCOVERALLS=False .. && make -j4'
// }
// }
// stage('Fedora 27/clang-4.0.1/llvm-4.0.1 (Release)') {
// agent { docker { image 'fedora:27' } }
// steps {
// sh 'sudo /bin/bash -c "source ./script/installation/packages.sh"'
// sh 'python script/validators/source_validator.py'
// sh 'mkdir build'
// sh 'cd build && CC=clang CXX=clang++ cmake -DCMAKE_BUILD_TYPE=Release -DCOVERALLS=False .. && make -j4'
// }
// }
// Omit this configuration for now since the corresponding version of clang does not seem to be available on this platform
// stage('CentOS 7/clang-??/llvm-3.9.1') {
// agent { docker { image 'centos:7' } }
// steps {
// sh 'lsb_release -a'
// }
// }
// end clang builds
}
}
}
// Process test results from the first build stage
// post {
// always {
// dir("${WORKSPACE}/../builds/${BUILD_ID}") {
// step([$class: 'XUnitBuilder', testTimeMargin: '3000', thresholdMode: 1, thresholds: [[$class: 'FailedThreshold', failureNewThreshold: '', failureThreshold: '', unstableNewThreshold: '', unstableThreshold: ''], [$class: 'SkippedThreshold', failureNewThreshold: '', failureThreshold: '', unstableNewThreshold: '', unstableThreshold: '']], tools: [[$class: 'GoogleTestType', deleteOutputFiles: true, failIfNotNew: true, pattern: 'test/*_test.xml', skipNoTestFiles: false, stopProcessingIfError: true]]])
// }
// }
// }
}