jjb: Remove deprecated stable-2.7 jobs, except sles12
[lttng-ci.git] / jobs / babeltrace.yaml
CommitLineData
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}}'
8f541678 107 condition-string2: 'msys2-mingw32'
b9c55ae7
MJ
108 steps:
109 - inject:
110 properties-content: 'MSYSTEM=MINGW32'
111 - shell:
112 !include-raw-escape:
8f541678 113 - scripts/common/msys2-shebang
b9c55ae7
MJ
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}}'
8f541678 120 condition-string2: 'msys2-mingw64'
b9c55ae7
MJ
121 steps:
122 - inject:
123 properties-content: 'MSYSTEM=MINGW64'
124 - shell:
125 !include-raw-escape:
8f541678 126 - scripts/common/msys2-shebang
b9c55ae7
MJ
127 - scripts/common/cygwin-prefix
128 - scripts/babeltrace/build.sh
129
130
499a96d0
JR
131- babeltrace_build_publishers_dev: &babeltrace_build_publishers_dev
132 name: 'babeltrace_build_publishers_dev'
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
499a96d0
JR
147 - email-ext:
148 recipients: '{obj:email_to}'
149 always: false
150 unstable: false
151 first-failure: true
152 first-unstable: true
153 not-built: false
154 aborted: false
155 regression: false
156 failure: false
157 second-failure: false
158 improvement: false
159 still-failing: false
160 success: false
161 fixed: false
162 fixed-unhealthy: true
163 still-unstable: false
164 pre-build: false
165 matrix-trigger: only-parent
166 send-to:
167 - recipients
168
b9c55ae7
MJ
169
170- babeltrace_build_publishers_prod: &babeltrace_build_publishers_prod
171 name: 'babeltrace_build_publishers_prod'
172 publishers:
0efb2471
JR
173 - tap:
174 results: 'tap/**/*.log'
175 failed-tests-mark-build-as-failure: true
176 todo-is-failure: false
177 - warnings:
178 console-log-parsers:
179 - 'GNU Make + GNU C Compiler (gcc)'
180 total-thresholds:
181 unstable:
182 total-all: 0
183 total-high: 0
184 total-normal: 0
185 total-low: 0
890bff23
MJ
186 - archive:
187 artifacts: 'build/**'
188 allow-empty: false
499a96d0
JR
189 - email-ext:
190 recipients: '{obj:email_to}'
191 reply-to: ci-notification@lists.lttng.org
192 always: false
193 unstable: false
194 first-failure: true
195 first-unstable: true
196 not-built: false
197 aborted: false
198 regression: false
199 failure: false
200 second-failure: false
201 improvement: false
202 still-failing: false
203 success: false
204 fixed: false
205 fixed-unhealthy: true
206 still-unstable: false
207 pre-build: false
208 matrix-trigger: only-parent
209 send-to:
210 - recipients
890bff23 211
b9c55ae7
MJ
212## Templates
213
214- job-template:
215 name: babeltrace_{version}_{buildtype}
216 defaults: babeltrace
217
218 <<: *babeltrace_build_axes_defaults
219 <<: *babeltrace_build_builders_defaults
b9c55ae7
MJ
220 <<: *babeltrace_build_publishers_prod
221
222- job-template:
223 name: babeltrace_{version}_winbuild
224 defaults: babeltrace
225
226 <<: *babeltrace_build_axes_defaults
227 <<: *babeltrace_build_builders_win
b9c55ae7
MJ
228 <<: *babeltrace_build_publishers_prod
229
4f827afb
JR
230- job-template:
231 name: dev_{user}_babeltrace_{version}_{buildtype}
b9c55ae7
MJ
232 defaults: babeltrace
233
234 <<: *babeltrace_build_axes_defaults
235 <<: *babeltrace_build_builders_defaults
499a96d0 236 <<: *babeltrace_build_publishers_dev
4f827afb 237
890bff23
MJ
238- job-template:
239 name: babeltrace_{version}_cppcheck
240 defaults: babeltrace
241
242 triggers:
6cf22a3a
MJ
243 - pollscm:
244 cron: "@daily"
890bff23
MJ
245
246 builders:
247 - shell: |
5279b0f2
MJ
248 rm -f cppcheck-result.xml
249 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/babeltrace 2> cppcheck-result.xml
890bff23
MJ
250
251 publishers:
252 - archive:
5279b0f2 253 artifacts: 'cppcheck-result.xml'
890bff23 254 allow-empty: false
890bff23 255 - cppcheck:
5279b0f2 256 pattern: 'cppcheck-result.xml'
890bff23
MJ
257
258- job-template:
259 name: babeltrace_{version}_scan-build
260 defaults: babeltrace
16844a6d 261 node: 'amd64'
890bff23
MJ
262
263 triggers:
6cf22a3a
MJ
264 - pollscm:
265 cron: "@daily"
890bff23
MJ
266
267 builders:
268 - shell:
69f05d59 269 !include-raw-escape: scripts/common/scan-build.sh
890bff23
MJ
270
271 publishers:
272 - html-publisher:
273 name: 'HTML Report'
274 dir: 'scan-build-archive/'
275 files: 'index.html'
276
6cf22a3a
MJ
277- job-template:
278 name: babeltrace_{version}_coverity
279 defaults: babeltrace
16844a6d 280 node: 'amd64'
6cf22a3a
MJ
281
282 triggers:
283 - pollscm:
284 cron: "@daily"
285
286 wrappers:
287 - workspace-cleanup
288 - timestamps
289 - ansicolor:
290 colormap: xterm
291 - credentials-binding:
292 - username-password-separated:
293 credential-id: babeltrace_coverity_token
294 username: COVERITY_SCAN_PROJECT_NAME
295 password: COVERITY_SCAN_TOKEN
296 builders:
297 - shell:
ef63064f 298 !include-raw-escape: scripts/common/coverity.sh
6cf22a3a
MJ
299
300 publishers:
301 - workspace-cleanup
73778992
MJ
302 - archive:
303 artifacts: 'analysis-results.tgz,cov-int/**'
304 allow-empty: false
890bff23
MJ
305
306- job-template:
307 name: babeltrace_{version}_pylint
308 defaults: babeltrace
16844a6d 309 node: 'amd64'
890bff23
MJ
310
311 scm: []
312
313 triggers:
6cf22a3a
MJ
314 - pollscm:
315 cron: "@daily"
890bff23
MJ
316
317 builders:
318 - copyartifact:
16844a6d 319 project: babeltrace_{version}_build/arch=amd64,build=std,conf=python-bindings
890bff23 320 which-build: last-successful
3522265a 321 stable: false
890bff23 322 filter: 'build/**'
b0afcb47 323 target: 'deps/babeltrace'
890bff23 324 - shell:
ef63064f 325 !include-raw-escape: scripts/babeltrace/pylint.sh
890bff23
MJ
326
327 publishers:
328 - archive:
329 artifacts: 'pep8.out,pylint.out'
890bff23
MJ
330 - violations:
331 pep8:
332 pattern: pep8.out
333 min: 10
334 max: 999
335 unstable: 999
336 pylint:
337 pattern: pylint.out
338 min: 10
339 max: 999
340 unstable: 999
499a96d0
JR
341 - email-ext:
342 recipients: '{obj:email_to}'
343 reply-to: ci-notification@lists.lttng.org
344 always: false
345 unstable: false
346 first-failure: true
347 first-unstable: true
348 not-built: false
349 aborted: false
350 regression: false
351 failure: false
352 second-failure: false
353 improvement: false
354 still-failing: false
355 success: false
356 fixed: false
357 fixed-unhealthy: true
358 still-unstable: false
359 pre-build: false
360 matrix-trigger: only-parent
361 send-to:
362 - recipients
890bff23 363
556e87cc
JR
364# Use - in version number since yaml anchor do not support dot
365- babeltrace_version_glib-2-22-5_anchor: &babeltrace_version_glib-2-22-5_anchor
366 name: 'babeltrace_version_glib_anchor'
367 defaults: babeltrace
16844a6d 368 node: 'amd64'
556e87cc
JR
369
370 builders:
371 - inject:
372 properties-content: |
373 LD_LIBRARY_PATH=$WORKSPACE/glib-2.22.5/BUILD_RESULT/lib
374 PKG_CONFIG_PATH=$WORKSPACE/glib-2.22.5/BUILD_RESULT/lib/pkgconfig
16844a6d 375 arch=amd64
556e87cc
JR
376 conf=std
377 build=std
378 - shell: |
379 wget http://ftp.gnome.org/pub/gnome/sources/glib/2.22/glib-2.22.5.tar.gz
380 tar xvf glib-2.22.5.tar.gz
381 cd glib-2.22.5
382 mkdir BUILD_RESULT
383 ./configure --prefix=$WORKSPACE/glib-2.22.5/BUILD_RESULT
384 make -j `nproc`
385 make install
386
387 - shell:
388 !include-raw-escape: scripts/babeltrace/build.sh
389
390- job-template:
391 name: babeltrace_{version}_glib-2.22.5
392 triggers:
393 - pollscm:
394 cron: "@daily"
395 <<: *babeltrace_version_glib-2-22-5_anchor
499a96d0
JR
396 publishers:
397 - email-ext:
398 recipients: '{obj:email_to}'
399 reply-to: ci-notification@lists.lttng.org
400 always: false
401 unstable: false
402 first-failure: true
403 first-unstable: true
404 not-built: false
405 aborted: false
406 regression: false
407 failure: false
408 second-failure: false
409 improvement: false
410 still-failing: false
411 success: false
412 fixed: false
413 fixed-unhealthy: true
414 still-unstable: false
415 pre-build: false
416 matrix-trigger: only-parent
417 send-to:
418 - recipients
556e87cc
JR
419
420- job-template:
421 name: dev_{user}_babeltrace_{version}_glib-2.22.5
422 <<: *babeltrace_version_glib-2-22-5_anchor
890bff23 423
499a96d0
JR
424 publishers:
425 - email-ext:
426 recipients: '{obj:email_to}'
427 reply-to: ci-notification@lists.lttng.org
428 always: false
429 unstable: false
430 first-failure: true
431 first-unstable: true
432 not-built: false
433 aborted: false
434 regression: false
435 failure: false
436 second-failure: false
437 improvement: false
438 still-failing: false
439 success: false
440 fixed: false
441 fixed-unhealthy: true
442 still-unstable: false
443 pre-build: false
444 matrix-trigger: only-parent
445 send-to:
446 - recipients
b9c55ae7 447
890bff23
MJ
448## Project
449- project:
450 name: babeltrace
4f827afb
JR
451 github_user: efficios
452 github_name: babeltrace
499a96d0 453 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
890bff23 454 version:
9eb09611 455 - stable-1.5
a0b535b2 456 - stable-2.0
ecf9997a 457 - master
890bff23 458 jobs:
57ae8ff4
MJ
459 - 'babeltrace_{version}_{buildtype}':
460 buildtype: build
16844a6d 461 arch: !!python/tuple [amd64]
9d0846f3 462 build: !!python/tuple [std, oot, dist]
87e41bca 463 conf: !!python/tuple [std, static, python-bindings]
0628a9d8
MJ
464 - 'babeltrace_{version}_{buildtype}':
465 buildtype: clangbuild
16844a6d 466 arch: !!python/tuple [amd64]
0628a9d8
MJ
467 build: !!python/tuple [clang]
468 conf: !!python/tuple [std, static]
57ae8ff4
MJ
469 - 'babeltrace_{version}_{buildtype}':
470 buildtype: portbuild
16844a6d 471 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
9d0846f3 472 build: !!python/tuple [std]
87e41bca 473 conf: !!python/tuple [std, static, python-bindings]
81bf613d
MJ
474 - 'babeltrace_{version}_{buildtype}':
475 buildtype: slesbuild
476 arch: !!python/tuple [sles12sp2]
477 build: !!python/tuple [std]
478 conf: !!python/tuple [std]
15c21bc0
MJ
479 version: # // support 1.3 on SLES12
480 - stable-1.3
481 - stable-1.5
482 - stable-2.0
483 - master
87e41bca
MJ
484 - 'babeltrace_{version}_{buildtype}':
485 buildtype: solarisbuild
a0b535b2 486 arch: !!python/tuple [sol10-i386, sol11-i386]
87e41bca
MJ
487 build: !!python/tuple [std]
488 conf: !!python/tuple [std, static]
221450b6
MJ
489 - 'babeltrace_{version}_{buildtype}':
490 buildtype: macosxbuild
491 arch: !!python/tuple [macosx]
492 build: !!python/tuple [std]
cd12b140 493 conf: !!python/tuple [std]
a0b535b2 494 version: # macOS support was introduced in 1.4
9eb09611 495 - stable-1.5
a0b535b2 496 - stable-2.0
221450b6 497 - master
8f541678
MJ
498 - 'babeltrace_{version}_winbuild':
499 arch: !!python/tuple [cygwin, cygwin64, msys2-mingw32, msys2-mingw64]
500 build: !!python/tuple [std]
501 conf: !!python/tuple [std]
a0b535b2
MJ
502 version: # Mingw support was introduced in 2.0
503 - stable-2.0
8f541678 504 - master
b9c55ae7
MJ
505 - 'babeltrace_{version}_winbuild':
506 arch: !!python/tuple [cygwin, cygwin64]
507 build: !!python/tuple [std]
508 conf: !!python/tuple [std]
a0b535b2 509 version: # Cygwin support was introduced in 1.5
b9c55ae7 510 - stable-1.5
890bff23
MJ
511 - 'babeltrace_{version}_cppcheck'
512 - 'babeltrace_{version}_scan-build'
513 - 'babeltrace_{version}_pylint'
6cf22a3a
MJ
514 - 'babeltrace_{version}_coverity':
515 version: master
556e87cc
JR
516 - 'babeltrace_{version}_glib-2.22.5':
517 version: master
a0b535b2
MJ
518
519
520- project:
521 name: babeltrace-jgalar-staging
522 user: jgalar
523 github_user: jgalar
524 github_name: babeltrace
499a96d0 525 email_to: "jgalar@efficios.com"
a0b535b2
MJ
526 version:
527 - stable-1.3-staging
a0b535b2
MJ
528 - stable-1.5-staging
529 - stable-2.0-staging
530 - master-staging
531 jobs:
556e87cc 532 - 'dev_{user}_babeltrace_{version}_glib-2.22.5':
556e87cc
JR
533 version:
534 - master-staging
4f827afb 535 - 'dev_{user}_babeltrace_{version}_{buildtype}':
4f827afb 536 buildtype: build
16844a6d 537 arch: !!python/tuple [amd64]
4f827afb
JR
538 build: !!python/tuple [std, oot, dist]
539 conf: !!python/tuple [std, static, python-bindings]
4b9bec35 540 - 'dev_{user}_babeltrace_{version}_{buildtype}':
4b9bec35 541 buildtype: macosxbuild
a0b535b2 542 version: # macOS support was introduced in 1.4
4b9bec35 543 - stable-1.5-staging
a0b535b2
MJ
544 - stable-2.0-staging
545 - master-staging
4b9bec35
MJ
546 arch: !!python/tuple [macosx]
547 build: !!python/tuple [std]
548 conf: !!python/tuple [std]
890bff23 549
This page took 0.049465 seconds and 4 git commands to generate.