@@ -5,21 +5,20 @@ 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'
25
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
@@ -34,23 +33,26 @@ pipeline {
34
33
sh ' python script/validators/source_validator.py'
35
34
sh ' mkdir build'
36
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'
37
41
}
38
42
}
39
43
40
- 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)' ) {
41
45
agent { docker { image ' ubuntu:trusty' } }
42
46
steps {
43
47
sh ' sudo /bin/bash -c "source ./script/installation/packages.sh"'
44
48
sh ' python script/validators/source_validator.py'
45
49
sh ' mkdir build'
46
- sh ' cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DCOVERALLS=False -DUSE_SANITIZER=Address -DCMAKE_CXX_FLAGS="-DLOG_LEVEL=LOG_LEVEL_TRACE" .. && make -j4'
47
- // redirect output to /dev/null because it is voluminous
48
- // sh 'cd build && make check -j4 > /dev/null || true'
49
- // sh 'cd build && make benchmark -j4'
50
- // sh 'cd build && make install'
51
- // sh 'cd build && bash ../script/testing/psql/psql_test.sh'
52
- // sh 'sudo apt-get -qq update && sudo apt-get -qq -y --no-install-recommends install wget default-jdk default-jre' // prerequisites for jdbc_validator
53
- // 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'
54
56
}
55
57
}
56
58
@@ -62,24 +64,31 @@ pipeline {
62
64
sh ' mkdir build'
63
65
sh ' cd build && cmake -DCMAKE_BUILD_TYPE=Release -DCOVERALLS=False .. && make -j4'
64
66
sh ' cd build && make check -j4 || true'
65
- // sh 'cd build && cp -pr test /job/'
66
- sh ' cd build && make benchmark -j4'
67
67
sh ' cd build && make install'
68
68
sh ' cd build && bash ../script/testing/psql/psql_test.sh'
69
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
70
70
sh ' cd build && python ../script/validators/jdbc_validator.py'
71
71
}
72
72
}
73
73
74
- // 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)') {
75
85
// agent { docker { image 'debian:stretch' } }
76
86
// steps {
77
87
// sh 'sudo /bin/bash -c "source ./script/installation/packages.sh"'
78
88
// sh 'python script/validators/source_validator.py'
79
89
// sh 'mkdir build'
80
- // 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'
81
91
// sh 'cd build && make check -j4 || true'
82
- // sh 'cd build && make benchmark -j4'
83
92
// sh 'cd build && make install'
84
93
// sh 'cd build && bash ../script/testing/psql/psql_test.sh'
85
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
@@ -94,6 +103,11 @@ pipeline {
94
103
// sh 'python script/validators/source_validator.py'
95
104
// sh 'mkdir build'
96
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'
97
111
// }
98
112
// }
99
113
@@ -103,7 +117,12 @@ pipeline {
103
117
// sh 'sudo /bin/bash -c "source ./script/installation/packages.sh"'
104
118
// sh 'python script/validators/source_validator.py'
105
119
// sh 'mkdir build'
106
- // 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'
107
126
// }
108
127
// }
109
128
@@ -114,28 +133,43 @@ pipeline {
114
133
// sh 'python script/validators/source_validator.py'
115
134
// sh 'mkdir build'
116
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'
117
141
// }
118
142
// }
119
143
120
- // stage('Fedora 27/gcc-7.2.1/llvm-4.0.1 (Debug)') {
121
- // agent { docker { image 'fedora:27' } }
122
- // steps {
123
- // sh 'sudo /bin/bash -c "source ./script/installation/packages.sh"'
124
- // sh 'python script/validators/source_validator.py'
125
- // sh 'mkdir build'
126
- // sh 'cd build && PATH=/usr/lib64/llvm4.0/bin:$PATH cmake -DCMAKE_CXX_FLAGS="-isystem /usr/include/llvm4.0" -DCMAKE_BUILD_TYPE=Debug -DCOVERALLS=False .. && make -j4'
127
- // }
128
- // }
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
+ }
129
158
130
- // stage('Fedora 27/gcc-7.2.1/llvm-4.0.1 (Release)') {
131
- // agent { docker { image 'fedora:27' } }
132
- // steps {
133
- // sh 'sudo /bin/bash -c "source ./script/installation/packages.sh"'
134
- // sh 'python script/validators/source_validator.py'
135
- // sh 'mkdir build'
136
- // 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'
137
- // }
138
- // }
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
+ }
139
173
140
174
// stage('CentOS 7/gcc-4.8.5/llvm-3.9.1 (Debug)') {
141
175
// agent { docker { image 'centos:7' } }
@@ -144,6 +178,11 @@ pipeline {
144
178
// sh 'python script/validators/source_validator.py'
145
179
// sh 'mkdir build'
146
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'
147
186
// }
148
187
// }
149
188
@@ -154,6 +193,11 @@ pipeline {
154
193
// sh 'python script/validators/source_validator.py'
155
194
// sh 'mkdir build'
156
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'
157
201
// }
158
202
// }
159
203
// end gcc builds
@@ -252,11 +296,11 @@ pipeline {
252
296
}
253
297
254
298
// Process test results from the first build stage
255
- post {
256
- always {
257
- dir(" ${ WORKSPACE} /../builds/${ BUILD_ID} " ) {
258
- 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 ]]])
259
- }
260
- }
261
- }
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
+ // }
262
306
}
0 commit comments