Commit | Line | Data |
---|---|---|
890bff23 MJ |
1 | - defaults: |
2 | name: babeltrace | |
3 | description: | | |
4 | The Babeltrace project provides trace read and write libraries, as well | |
5 | as a trace converter. Plugins can be created for any trace format to | |
6 | allow its conversion to/from another trace format. | |
7 | ||
8 | The main format expected to be converted to/from is the Common Trace | |
9 | Format (CTF). The default input format of the "babeltrace" command is | |
10 | CTF, and its default output format is a human-readable text log. The | |
11 | "babeltrace-log" command converts from a text log to a CTF trace. | |
12 | ||
13 | <p>Job is managed by Jenkins Job Builder.</p> | |
14 | ||
15 | project-type: freestyle | |
16 | ||
890bff23 | 17 | wrappers: |
b9c55ae7 MJ |
18 | - ansicolor |
19 | - timeout: | |
20 | timeout: 90 | |
21 | fail: true | |
22 | type: absolute | |
890bff23 | 23 | - timestamps |
b9c55ae7 MJ |
24 | - workspace-cleanup: |
25 | clean-if: | |
26 | - failure: false | |
890bff23 MJ |
27 | |
28 | scm: | |
29 | - git: | |
4f827afb | 30 | url: git://github.com/{github_user}/{github_name}.git |
890bff23 | 31 | browser: githubweb |
4f827afb | 32 | browser-url: https://github.com/{github_user}/{github_name} |
890bff23 MJ |
33 | branches: |
34 | - origin/{version} | |
e6be9fb0 | 35 | basedir: src/babeltrace |
944a6c86 | 36 | skip-tag: true |
b9c55ae7 | 37 | git-tool: jgit |
890bff23 MJ |
38 | |
39 | triggers: | |
6cf22a3a MJ |
40 | - pollscm: |
41 | cron: "@hourly" | |
890bff23 MJ |
42 | |
43 | properties: | |
69f05d59 MJ |
44 | - inject: |
45 | properties-content: | | |
46 | PROJECT_NAME=babeltrace | |
edf72710 MJ |
47 | - build-discarder: |
48 | num-to-keep: 2 | |
890bff23 | 49 | - github: |
4f827afb | 50 | url: https://github.com/{github_user}/{github_name} |
890bff23 MJ |
51 | |
52 | ||
b9c55ae7 MJ |
53 | ## Anchors |
54 | - babeltrace_build_axes_defaults: &babeltrace_build_axes_defaults | |
55 | name: 'babeltrace_build_axes_defaults' | |
890bff23 | 56 | project-type: matrix |
ca8c6144 | 57 | node: 'master' # Applies only to matrix flyweight task |
890bff23 MJ |
58 | axes: |
59 | - axis: | |
60 | type: slave | |
61 | name: arch | |
62 | values: '{obj:arch}' | |
63 | - axis: | |
64 | type: user-defined | |
65 | name: conf | |
87e41bca | 66 | values: '{obj:conf}' |
890bff23 MJ |
67 | - axis: |
68 | type: user-defined | |
69 | name: build | |
9d0846f3 | 70 | values: '{obj:build}' |
890bff23 | 71 | |
b9c55ae7 MJ |
72 | - babeltrace_build_builders_defaults: &babeltrace_build_builders_defaults |
73 | name: 'babeltrace_build_builders_defaults' | |
890bff23 MJ |
74 | builders: |
75 | - shell: | |
ef63064f | 76 | !include-raw-escape: scripts/babeltrace/build.sh |
890bff23 | 77 | |
b9c55ae7 MJ |
78 | - babeltrace_build_builders_win: &babeltrace_build_builders_win |
79 | name: 'babeltrace_build_builders_win' | |
80 | builders: | |
81 | - conditional-step: | |
82 | condition-kind: strings-match | |
83 | on-evaluation-failure: run | |
84 | condition-string1: '${{arch}}' | |
85 | condition-string2: 'cygwin' | |
86 | steps: | |
87 | - shell: | |
88 | !include-raw-escape: | |
89 | - scripts/common/cygwin-shebang | |
90 | - scripts/common/cygwin-prefix | |
91 | - scripts/babeltrace/build.sh | |
92 | - conditional-step: | |
93 | condition-kind: strings-match | |
94 | on-evaluation-failure: run | |
95 | condition-string1: '${{arch}}' | |
96 | condition-string2: 'cygwin64' | |
97 | steps: | |
98 | - shell: | |
99 | !include-raw-escape: | |
100 | - scripts/common/cygwin64-shebang | |
101 | - scripts/common/cygwin-prefix | |
102 | - scripts/babeltrace/build.sh | |
103 | - conditional-step: | |
104 | condition-kind: strings-match | |
105 | on-evaluation-failure: run | |
106 | condition-string1: '${{arch}}' | |
107 | condition-string2: 'msys32' | |
108 | steps: | |
109 | - inject: | |
110 | properties-content: 'MSYSTEM=MINGW32' | |
111 | - shell: | |
112 | !include-raw-escape: | |
113 | - scripts/common/msys32-shebang | |
114 | - scripts/common/cygwin-prefix | |
115 | - scripts/babeltrace/build.sh | |
116 | - conditional-step: | |
117 | condition-kind: strings-match | |
118 | on-evaluation-failure: run | |
119 | condition-string1: '${{arch}}' | |
120 | condition-string2: 'msys64' | |
121 | steps: | |
122 | - inject: | |
123 | properties-content: 'MSYSTEM=MINGW64' | |
124 | - shell: | |
125 | !include-raw-escape: | |
126 | - scripts/common/msys64-shebang | |
127 | - scripts/common/cygwin-prefix | |
128 | - scripts/babeltrace/build.sh | |
129 | ||
130 | ||
131 | - babeltrace_build_publishers_defaults: &babeltrace_build_publishers_defaults | |
132 | name: 'babeltrace_build_publishers_defaults' | |
890bff23 MJ |
133 | publishers: |
134 | - tap: | |
e6be9fb0 | 135 | results: 'tap/**/*.log' |
890bff23 | 136 | failed-tests-mark-build-as-failure: true |
95654431 | 137 | todo-is-failure: false |
890bff23 MJ |
138 | - warnings: |
139 | console-log-parsers: | |
140 | - 'GNU Make + GNU C Compiler (gcc)' | |
141 | total-thresholds: | |
51ca880a | 142 | unstable: |
d2c76ee5 MJ |
143 | total-all: 0 |
144 | total-high: 0 | |
145 | total-normal: 0 | |
146 | total-low: 0 | |
b9c55ae7 MJ |
147 | |
148 | - babeltrace_build_publishers_prod: &babeltrace_build_publishers_prod | |
149 | name: 'babeltrace_build_publishers_prod' | |
150 | publishers: | |
890bff23 MJ |
151 | - archive: |
152 | artifacts: 'build/**' | |
153 | allow-empty: false | |
1f6ad2ae | 154 | - ircbot: |
95654431 | 155 | strategy: new-failure-and-fixed |
1f6ad2ae MJ |
156 | matrix-notifier: only-parent |
157 | channels: | |
158 | - name: '#lttng' | |
890bff23 | 159 | |
b9c55ae7 MJ |
160 | ## Templates |
161 | ||
162 | - job-template: | |
163 | name: babeltrace_{version}_{buildtype} | |
164 | defaults: babeltrace | |
165 | ||
166 | <<: *babeltrace_build_axes_defaults | |
167 | <<: *babeltrace_build_builders_defaults | |
168 | <<: *babeltrace_build_publishers_defaults | |
169 | <<: *babeltrace_build_publishers_prod | |
170 | ||
171 | - job-template: | |
172 | name: babeltrace_{version}_winbuild | |
173 | defaults: babeltrace | |
174 | ||
175 | <<: *babeltrace_build_axes_defaults | |
176 | <<: *babeltrace_build_builders_win | |
177 | <<: *babeltrace_build_publishers_defaults | |
178 | <<: *babeltrace_build_publishers_prod | |
179 | ||
4f827afb JR |
180 | - job-template: |
181 | name: dev_{user}_babeltrace_{version}_{buildtype} | |
b9c55ae7 MJ |
182 | defaults: babeltrace |
183 | ||
184 | <<: *babeltrace_build_axes_defaults | |
185 | <<: *babeltrace_build_builders_defaults | |
186 | <<: *babeltrace_build_publishers_defaults | |
4f827afb | 187 | |
890bff23 MJ |
188 | - job-template: |
189 | name: babeltrace_{version}_cppcheck | |
190 | defaults: babeltrace | |
191 | ||
192 | triggers: | |
6cf22a3a MJ |
193 | - pollscm: |
194 | cron: "@daily" | |
890bff23 MJ |
195 | |
196 | builders: | |
197 | - shell: | | |
198 | rm -f babeltrace-cppcheck.xml | |
73778992 | 199 | cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/babeltrace 2> babeltrace-cppcheck.xml |
890bff23 MJ |
200 | |
201 | publishers: | |
202 | - archive: | |
203 | artifacts: 'babeltrace-cppcheck.xml' | |
204 | allow-empty: false | |
890bff23 MJ |
205 | - cppcheck: |
206 | pattern: 'babeltrace-cppcheck.xml' | |
890bff23 MJ |
207 | |
208 | - job-template: | |
209 | name: babeltrace_{version}_scan-build | |
210 | defaults: babeltrace | |
211 | node: 'x86-64' | |
212 | ||
213 | triggers: | |
6cf22a3a MJ |
214 | - pollscm: |
215 | cron: "@daily" | |
890bff23 MJ |
216 | |
217 | builders: | |
218 | - shell: | |
69f05d59 | 219 | !include-raw-escape: scripts/common/scan-build.sh |
890bff23 MJ |
220 | |
221 | publishers: | |
222 | - html-publisher: | |
223 | name: 'HTML Report' | |
224 | dir: 'scan-build-archive/' | |
225 | files: 'index.html' | |
226 | ||
6cf22a3a MJ |
227 | - job-template: |
228 | name: babeltrace_{version}_coverity | |
229 | defaults: babeltrace | |
230 | node: 'x86-64' | |
231 | ||
232 | triggers: | |
233 | - pollscm: | |
234 | cron: "@daily" | |
235 | ||
236 | wrappers: | |
237 | - workspace-cleanup | |
238 | - timestamps | |
239 | - ansicolor: | |
240 | colormap: xterm | |
241 | - credentials-binding: | |
242 | - username-password-separated: | |
243 | credential-id: babeltrace_coverity_token | |
244 | username: COVERITY_SCAN_PROJECT_NAME | |
245 | password: COVERITY_SCAN_TOKEN | |
246 | builders: | |
247 | - shell: | |
ef63064f | 248 | !include-raw-escape: scripts/common/coverity.sh |
6cf22a3a MJ |
249 | |
250 | publishers: | |
251 | - workspace-cleanup | |
73778992 MJ |
252 | - archive: |
253 | artifacts: 'analysis-results.tgz,cov-int/**' | |
254 | allow-empty: false | |
890bff23 MJ |
255 | |
256 | - job-template: | |
257 | name: babeltrace_{version}_pylint | |
258 | defaults: babeltrace | |
259 | node: 'x86-64' | |
260 | ||
261 | scm: [] | |
262 | ||
263 | triggers: | |
6cf22a3a MJ |
264 | - pollscm: |
265 | cron: "@daily" | |
890bff23 MJ |
266 | |
267 | builders: | |
268 | - copyartifact: | |
ce1e1df3 | 269 | project: babeltrace_{version}_build/arch=x86-64,build=std,conf=python-bindings |
890bff23 | 270 | which-build: last-successful |
3522265a | 271 | stable: false |
890bff23 | 272 | filter: 'build/**' |
b0afcb47 | 273 | target: 'deps/babeltrace' |
890bff23 | 274 | - shell: |
ef63064f | 275 | !include-raw-escape: scripts/babeltrace/pylint.sh |
890bff23 MJ |
276 | |
277 | publishers: | |
278 | - archive: | |
279 | artifacts: 'pep8.out,pylint.out' | |
890bff23 MJ |
280 | - violations: |
281 | pep8: | |
282 | pattern: pep8.out | |
283 | min: 10 | |
284 | max: 999 | |
285 | unstable: 999 | |
286 | pylint: | |
287 | pattern: pylint.out | |
288 | min: 10 | |
289 | max: 999 | |
290 | unstable: 999 | |
291 | - email: | |
292 | recipients: 'ci-notification@lists.lttng.org' | |
293 | notify-every-unstable-build: true | |
294 | send-to-individuals: false | |
295 | ||
556e87cc JR |
296 | # Use - in version number since yaml anchor do not support dot |
297 | - babeltrace_version_glib-2-22-5_anchor: &babeltrace_version_glib-2-22-5_anchor | |
298 | name: 'babeltrace_version_glib_anchor' | |
299 | defaults: babeltrace | |
300 | node: 'x86-64' | |
301 | ||
302 | builders: | |
303 | - inject: | |
304 | properties-content: | | |
305 | LD_LIBRARY_PATH=$WORKSPACE/glib-2.22.5/BUILD_RESULT/lib | |
306 | PKG_CONFIG_PATH=$WORKSPACE/glib-2.22.5/BUILD_RESULT/lib/pkgconfig | |
307 | arch=x86-64 | |
308 | conf=std | |
309 | build=std | |
310 | - shell: | | |
311 | wget http://ftp.gnome.org/pub/gnome/sources/glib/2.22/glib-2.22.5.tar.gz | |
312 | tar xvf glib-2.22.5.tar.gz | |
313 | cd glib-2.22.5 | |
314 | mkdir BUILD_RESULT | |
315 | ./configure --prefix=$WORKSPACE/glib-2.22.5/BUILD_RESULT | |
316 | make -j `nproc` | |
317 | make install | |
318 | ||
319 | - shell: | |
320 | !include-raw-escape: scripts/babeltrace/build.sh | |
321 | ||
322 | - job-template: | |
323 | name: babeltrace_{version}_glib-2.22.5 | |
324 | triggers: | |
325 | - pollscm: | |
326 | cron: "@daily" | |
327 | <<: *babeltrace_version_glib-2-22-5_anchor | |
328 | ||
329 | - job-template: | |
330 | name: dev_{user}_babeltrace_{version}_glib-2.22.5 | |
331 | <<: *babeltrace_version_glib-2-22-5_anchor | |
890bff23 | 332 | |
b9c55ae7 | 333 | |
890bff23 MJ |
334 | ## Project |
335 | - project: | |
336 | name: babeltrace | |
4f827afb JR |
337 | github_user: efficios |
338 | github_name: babeltrace | |
890bff23 | 339 | version: |
ecf9997a MJ |
340 | - stable-1.3 |
341 | - stable-1.4 | |
9eb09611 | 342 | - stable-1.5 |
ecf9997a | 343 | - master |
890bff23 | 344 | jobs: |
57ae8ff4 MJ |
345 | - 'babeltrace_{version}_{buildtype}': |
346 | buildtype: build | |
890bff23 | 347 | arch: !!python/tuple [x86-32, x86-64] |
9d0846f3 | 348 | build: !!python/tuple [std, oot, dist] |
87e41bca | 349 | conf: !!python/tuple [std, static, python-bindings] |
0628a9d8 MJ |
350 | - 'babeltrace_{version}_{buildtype}': |
351 | buildtype: clangbuild | |
352 | arch: !!python/tuple [x86-32, x86-64] | |
353 | build: !!python/tuple [clang] | |
354 | conf: !!python/tuple [std, static] | |
57ae8ff4 MJ |
355 | - 'babeltrace_{version}_{buildtype}': |
356 | buildtype: portbuild | |
c56b9301 | 357 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el] |
9d0846f3 | 358 | build: !!python/tuple [std] |
87e41bca MJ |
359 | conf: !!python/tuple [std, static, python-bindings] |
360 | - 'babeltrace_{version}_{buildtype}': | |
361 | buildtype: solarisbuild | |
362 | arch: !!python/tuple [solaris10, solaris11] | |
363 | build: !!python/tuple [std] | |
364 | conf: !!python/tuple [std, static] | |
221450b6 MJ |
365 | - 'babeltrace_{version}_{buildtype}': |
366 | buildtype: macosxbuild | |
367 | arch: !!python/tuple [macosx] | |
368 | build: !!python/tuple [std] | |
cd12b140 | 369 | conf: !!python/tuple [std] |
221450b6 | 370 | version: |
ecf9997a | 371 | - stable-1.4 |
9eb09611 | 372 | - stable-1.5 |
221450b6 | 373 | - master |
b9c55ae7 MJ |
374 | - 'babeltrace_{version}_winbuild': |
375 | arch: !!python/tuple [cygwin, cygwin64] | |
376 | build: !!python/tuple [std] | |
377 | conf: !!python/tuple [std] | |
378 | version: | |
379 | - stable-1.5 | |
890bff23 MJ |
380 | - 'babeltrace_{version}_cppcheck' |
381 | - 'babeltrace_{version}_scan-build' | |
382 | - 'babeltrace_{version}_pylint' | |
6cf22a3a MJ |
383 | - 'babeltrace_{version}_coverity': |
384 | version: master | |
556e87cc JR |
385 | - 'babeltrace_{version}_glib-2.22.5': |
386 | version: master | |
387 | - 'dev_{user}_babeltrace_{version}_glib-2.22.5': | |
388 | user: jgalar | |
389 | github_user: jgalar | |
390 | github_name: babeltrace | |
391 | version: | |
392 | - master-staging | |
4f827afb JR |
393 | - 'dev_{user}_babeltrace_{version}_{buildtype}': |
394 | user: jgalar | |
395 | github_user: jgalar | |
396 | github_name: babeltrace | |
397 | buildtype: build | |
398 | version: | |
399 | - master-staging | |
4f827afb | 400 | - stable-1.3-staging |
ecf9997a | 401 | - stable-1.4-staging |
9eb09611 | 402 | - stable-1.5-staging |
4f827afb JR |
403 | arch: !!python/tuple [x86-32, x86-64] |
404 | build: !!python/tuple [std, oot, dist] | |
405 | conf: !!python/tuple [std, static, python-bindings] | |
4b9bec35 MJ |
406 | - 'dev_{user}_babeltrace_{version}_{buildtype}': |
407 | user: jgalar | |
408 | github_user: jgalar | |
409 | github_name: babeltrace | |
410 | buildtype: macosxbuild | |
411 | version: | |
412 | - master-staging | |
413 | - stable-1.4-staging | |
414 | - stable-1.5-staging | |
415 | arch: !!python/tuple [macosx] | |
416 | build: !!python/tuple [std] | |
417 | conf: !!python/tuple [std] | |
890bff23 | 418 |