@@ -5,23 +5,23 @@ pipeline {
5
5
parallel {
6
6
// begin gcc builds
7
7
// NOTE: this next stage is special because it copies the test results out of the container
8
- stage(' Ubuntu Xenial/gcc-5.4.0/llvm-3.7.1 (Debug/Test )' ) {
8
+ stage(' Ubuntu Xenial/gcc-5.4.0/llvm-3.7.1 (Debug)' ) {
9
9
agent {
10
10
docker {
11
11
image ' ubuntu:xenial'
12
- args ' -v ${WORKSPACE}/../builds/${BUILD_ID}:/job:rw'
12
+ // args '-v ${WORKSPACE}/../builds/${BUILD_ID}:/job:rw'
13
13
}
14
14
}
15
15
steps {
16
16
sh ' sudo /bin/bash -c "source ./script/installation/packages.sh"'
17
17
sh ' python ./script/validators/source_validator.py'
18
18
sh ' mkdir build'
19
- sh ' cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DCOVERALLS=False -DUSE_SANITIZER=Address .. && make -j4'
19
+ sh ' cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_SANITIZER=Address -DCOVERALLS=False .. && make -j4'
20
20
sh ' cd build && make check -j4 || true'
21
- sh ' cd build && cp -pr test /job/'
22
- sh ' cd build && make benchmark -j4'
21
+ // sh 'cd build && cp -pr test /job/' // special tests collection step just for this stage
23
22
sh ' cd build && make install'
24
23
sh ' cd build && bash ../script/testing/psql/psql_test.sh'
24
+ sh ' sudo apt-get -qq update && sudo apt-get -qq -y --no-install-recommends install wget default-jdk default-jre' // prerequisites for jdbc_validator
25
25
sh ' cd build && python ../script/validators/jdbc_validator.py'
26
26
}
27
27
}
@@ -33,22 +33,26 @@ pipeline {
33
33
sh ' python ./script/validators/source_validator.py'
34
34
sh ' mkdir build'
35
35
sh ' cd build && cmake -DCMAKE_BUILD_TYPE=Release -DCOVERALLS=False .. && make -j4'
36
+ sh ' cd build && make check -j4 || true'
37
+ sh ' cd build && make install'
38
+ sh ' cd build && bash ../script/testing/psql/psql_test.sh'
39
+ sh ' sudo apt-get -qq update && sudo apt-get -qq -y --no-install-recommends install wget default-jdk default-jre' // prerequisites for jdbc_validator
40
+ sh ' cd build && python ../script/validators/jdbc_validator.py'
36
41
}
37
42
}
38
43
39
- stage(' Ubuntu Trusty/gcc-4.8.4/llvm-3.7.1 (Debug/Test/LOG_LEVEL_TRACE )' ) {
44
+ stage(' Ubuntu Trusty/gcc-4.8.4/llvm-3.7.1 (Debug)' ) {
40
45
agent { docker { image ' ubuntu:trusty' } }
41
46
steps {
42
47
sh ' sudo /bin/bash -c "source ./script/installation/packages.sh"'
43
48
sh ' python ./script/validators/source_validator.py'
44
49
sh ' mkdir build'
45
- sh ' cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DCOVERALLS=False -DUSE_SANITIZER=Address -DCMAKE_CXX_FLAGS="-DLOG_LEVEL=LOG_LEVEL_TRACE" .. && make -j4'
46
- // redirect output to /dev/null because it is voluminous
47
- // sh 'cd build && make check -j4 > /dev/null || true'
48
- // sh 'cd build && make benchmark -j4'
49
- // sh 'cd build && make install'
50
- // sh 'cd build && bash ../script/testing/psql/psql_test.sh'
51
- // sh 'cd build && python ../script/validators/jdbc_validator.py'
50
+ sh ' cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_SANITIZER=Address -DCOVERALLS=False .. && make -j4'
51
+ sh ' cd build && make check -j4 || true'
52
+ sh ' cd build && make install'
53
+ sh ' cd build && bash ../script/testing/psql/psql_test.sh'
54
+ sh ' sudo apt-get -qq update && sudo apt-get -qq -y --no-install-recommends install wget default-jdk default-jre' // prerequisites for jdbc_validator
55
+ sh ' cd build && python ../script/validators/jdbc_validator.py'
52
56
}
53
57
}
54
58
@@ -60,25 +64,34 @@ pipeline {
60
64
sh ' mkdir build'
61
65
sh ' cd build && cmake -DCMAKE_BUILD_TYPE=Release -DCOVERALLS=False .. && make -j4'
62
66
sh ' cd build && make check -j4 || true'
63
- // sh 'cd build && cp -pr test /job/'
64
- sh ' cd build && make benchmark -j4'
65
67
sh ' cd build && make install'
66
68
sh ' cd build && bash ../script/testing/psql/psql_test.sh'
69
+ sh ' sudo apt-get -qq update && sudo apt-get -qq -y --no-install-recommends install wget default-jdk default-jre' // prerequisites for jdbc_validator
67
70
sh ' cd build && python ../script/validators/jdbc_validator.py'
68
71
}
69
72
}
70
73
71
- // stage('Debian Stretch/gcc-6.3.0/llvm-3.8.1 (Debug/Test)') {
74
+ stage(' Ubuntu Xenial/gcc-5.4.0/llvm-3.7.1 (LOG_LEVEL_TRACE)' ) {
75
+ agent { docker { image ' ubuntu:xenial' } }
76
+ steps {
77
+ sh ' sudo /bin/bash -c "source ./script/installation/packages.sh"'
78
+ sh ' python ./script/validators/source_validator.py'
79
+ sh ' mkdir build'
80
+ sh ' cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_SANITIZER=Address -DCMAKE_CXX_FLAGS="-DLOG_LEVEL=LOG_LEVEL_TRACE" -DCOVERALLS=False .. && make -j4'
81
+ }
82
+ }
83
+
84
+ // stage('Debian Stretch/gcc-6.3.0/llvm-3.8.1 (Debug)') {
72
85
// agent { docker { image 'debian:stretch' } }
73
86
// steps {
74
87
// sh 'sudo /bin/bash -c "source ./script/installation/packages.sh"'
75
88
// sh 'python ./script/validators/source_validator.py'
76
89
// sh 'mkdir build'
77
- // sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DCOVERALLS=False -DUSE_SANITIZER=Address .. && make -j4'
90
+ // sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_SANITIZER=Address -DCOVERALLS=False .. && make -j4'
78
91
// sh 'cd build && make check -j4 || true'
79
- // sh 'cd build && make benchmark -j4'
80
92
// sh 'cd build && make install'
81
93
// sh 'cd build && bash ../script/testing/psql/psql_test.sh'
94
+ // sh 'sudo apt-get -qq update && sudo apt-get -qq -y --no-install-recommends install wget default-jdk default-jre' // prerequisites for jdbc_validator
82
95
// sh 'cd build && python ../script/validators/jdbc_validator.py'
83
96
// }
84
97
// }
@@ -90,6 +103,11 @@ pipeline {
90
103
// sh 'python ./script/validators/source_validator.py'
91
104
// sh 'mkdir build'
92
105
// sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release -DCOVERALLS=False .. && make -j4'
106
+ // sh 'cd build && make check -j4 || true'
107
+ // sh 'cd build && make install'
108
+ // sh 'cd build && bash ../script/testing/psql/psql_test.sh'
109
+ // sh 'sudo apt-get -qq update && sudo apt-get -qq -y --no-install-recommends install wget default-jdk default-jre' // prerequisites for jdbc_validator
110
+ // sh 'cd build && python ../script/validators/jdbc_validator.py'
93
111
// }
94
112
// }
95
113
@@ -99,7 +117,12 @@ pipeline {
99
117
// sh 'sudo /bin/bash -c "source ./script/installation/packages.sh"'
100
118
// sh 'python ./script/validators/source_validator.py'
101
119
// sh 'mkdir build'
102
- // sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DCOVERALLS=False .. && make -j4'
120
+ // sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_SANITIZER=Address -DCOVERALLS=False .. && make -j4'
121
+ // sh 'cd build && make check -j4 || true'
122
+ // sh 'cd build && make install'
123
+ // sh 'cd build && bash ../script/testing/psql/psql_test.sh'
124
+ // sh 'sudo dnf -q install -y wget java-devel' // prerequisites for jdbc_validator
125
+ // sh 'cd build && python ../script/validators/jdbc_validator.py'
103
126
// }
104
127
// }
105
128
@@ -110,28 +133,43 @@ pipeline {
110
133
// sh 'python ./script/validators/source_validator.py'
111
134
// sh 'mkdir build'
112
135
// sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release -DCOVERALLS=False .. && make -j4'
136
+ // sh 'cd build && make check -j4 || true'
137
+ // sh 'cd build && make install'
138
+ // sh 'cd build && bash ../script/testing/psql/psql_test.sh'
139
+ // sh 'sudo dnf -q install -y wget java-devel' // prerequisites for jdbc_validator
140
+ // sh 'cd build && python ../script/validators/jdbc_validator.py'
113
141
// }
114
142
// }
115
143
116
- // stage('Fedora 27/gcc-7.2.1/llvm-4.0.1 (Debug)') {
117
- // agent { docker { image 'fedora:27' } }
118
- // steps {
119
- // sh 'sudo /bin/bash -c "source ./script/installation/packages.sh"'
120
- // sh 'python ./script/validators/source_validator.py'
121
- // sh 'mkdir build'
122
- // sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DCOVERALLS=False .. && make -j4'
123
- // }
124
- // }
144
+ stage(' Fedora 27/gcc-7.2.1/llvm-4.0.1 (Debug)' ) {
145
+ agent { docker { image ' fedora:27' } }
146
+ steps {
147
+ sh ' sudo /bin/bash -c "source ./script/installation/packages.sh"'
148
+ sh ' python ./script/validators/source_validator.py'
149
+ sh ' mkdir build'
150
+ 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'
151
+ sh ' cd build && make check -j4 || true'
152
+ sh ' cd build && make install'
153
+ sh ' cd build && bash ../script/testing/psql/psql_test.sh'
154
+ sh ' sudo dnf -q install -y wget java-devel' // prerequisites for jdbc_validator
155
+ sh ' cd build && python ../script/validators/jdbc_validator.py'
156
+ }
157
+ }
125
158
126
- // stage('Fedora 27/gcc-7.2.1/llvm-4.0.1 (Release)') {
127
- // agent { docker { image 'fedora:27' } }
128
- // steps {
129
- // sh 'sudo /bin/bash -c "source ./script/installation/packages.sh"'
130
- // sh 'python ./script/validators/source_validator.py'
131
- // sh 'mkdir build'
132
- // sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release -DCOVERALLS=False .. && make -j4'
133
- // }
134
- // }
159
+ stage(' Fedora 27/gcc-7.2.1/llvm-4.0.1 (Release)' ) {
160
+ agent { docker { image ' fedora:27' } }
161
+ steps {
162
+ sh ' sudo /bin/bash -c "source ./script/installation/packages.sh"'
163
+ sh ' python ./script/validators/source_validator.py'
164
+ sh ' mkdir build'
165
+ 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'
166
+ sh ' cd build && make check -j4 || true'
167
+ sh ' cd build && make install'
168
+ sh ' cd build && bash ../script/testing/psql/psql_test.sh'
169
+ sh ' sudo dnf -q install -y wget java-devel' // prerequisites for jdbc_validator
170
+ sh ' cd build && python ../script/validators/jdbc_validator.py'
171
+ }
172
+ }
135
173
136
174
// stage('CentOS 7/gcc-4.8.5/llvm-3.9.1 (Debug)') {
137
175
// agent { docker { image 'centos:7' } }
@@ -140,6 +178,11 @@ pipeline {
140
178
// sh 'python ./script/validators/source_validator.py'
141
179
// sh 'mkdir build'
142
180
// sh 'cd build && cmake3 -DCMAKE_BUILD_TYPE=Debug -DCOVERALLS=False .. && make -j4'
181
+ // sh 'cd build && make check -j4 || true'
182
+ // sh 'cd build && make install'
183
+ // sh 'cd build && bash ../script/testing/psql/psql_test.sh'
184
+ // sh 'sudo yum -q install -y wget java-devel' // prerequisites for jdbc_validator
185
+ // sh 'cd build && python ../script/validators/jdbc_validator.py'
143
186
// }
144
187
// }
145
188
@@ -150,6 +193,11 @@ pipeline {
150
193
// sh 'python ./script/validators/source_validator.py'
151
194
// sh 'mkdir build'
152
195
// sh 'cd build && cmake3 -DCMAKE_BUILD_TYPE=Release -DCOVERALLS=False .. && make -j4'
196
+ // sh 'cd build && make check -j4 || true'
197
+ // sh 'cd build && make install'
198
+ // sh 'cd build && bash ../script/testing/psql/psql_test.sh'
199
+ // sh 'sudo yum -q install -y wget java-devel' // prerequisites for jdbc_validator
200
+ // sh 'cd build && python ../script/validators/jdbc_validator.py'
153
201
// }
154
202
// }
155
203
// end gcc builds
@@ -248,11 +296,11 @@ pipeline {
248
296
}
249
297
250
298
// Process test results from the first build stage
251
- post {
252
- always {
253
- dir(" ${ WORKSPACE} /../builds/${ BUILD_ID} " ) {
254
- 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 ]]])
255
- }
256
- }
257
- }
299
+ // post {
300
+ // always {
301
+ // dir("${WORKSPACE}/../builds/${BUILD_ID}") {
302
+ // 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]]])
303
+ // }
304
+ // }
305
+ // }
258
306
}
0 commit comments