jjb: Add initial gerrit job for babeltrace
[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
6476f917
MJ
72- babeltrace_build_axes_cc: &babeltrace_build_axes_cc
73 name: 'babeltrace_build_axes_cc'
74 project-type: matrix
75 node: 'master' # Applies only to matrix flyweight task
76 axes:
77 - axis:
78 type: slave
79 name: arch
80 values: '{obj:arch}'
81 - axis:
82 type: user-defined
83 name: conf
84 values: '{obj:conf}'
85 - axis:
86 type: user-defined
87 name: build
88 values: '{obj:build}'
89 - axis:
90 type: user-defined
91 name: cc
92 values: '{obj:cc}'
93
b9c55ae7
MJ
94- babeltrace_build_builders_defaults: &babeltrace_build_builders_defaults
95 name: 'babeltrace_build_builders_defaults'
890bff23
MJ
96 builders:
97 - shell:
ef63064f 98 !include-raw-escape: scripts/babeltrace/build.sh
890bff23 99
b9c55ae7
MJ
100- babeltrace_build_builders_win: &babeltrace_build_builders_win
101 name: 'babeltrace_build_builders_win'
102 builders:
103 - conditional-step:
104 condition-kind: strings-match
105 on-evaluation-failure: run
106 condition-string1: '${{arch}}'
107 condition-string2: 'cygwin'
108 steps:
109 - shell:
110 !include-raw-escape:
111 - scripts/common/cygwin-shebang
112 - scripts/common/cygwin-prefix
113 - scripts/babeltrace/build.sh
114 - conditional-step:
115 condition-kind: strings-match
116 on-evaluation-failure: run
117 condition-string1: '${{arch}}'
118 condition-string2: 'cygwin64'
119 steps:
120 - shell:
121 !include-raw-escape:
122 - scripts/common/cygwin64-shebang
123 - scripts/common/cygwin-prefix
124 - scripts/babeltrace/build.sh
125 - conditional-step:
126 condition-kind: strings-match
127 on-evaluation-failure: run
128 condition-string1: '${{arch}}'
8f541678 129 condition-string2: 'msys2-mingw32'
b9c55ae7
MJ
130 steps:
131 - inject:
132 properties-content: 'MSYSTEM=MINGW32'
133 - shell:
134 !include-raw-escape:
8f541678 135 - scripts/common/msys2-shebang
b9c55ae7
MJ
136 - scripts/common/cygwin-prefix
137 - scripts/babeltrace/build.sh
138 - conditional-step:
139 condition-kind: strings-match
140 on-evaluation-failure: run
141 condition-string1: '${{arch}}'
8f541678 142 condition-string2: 'msys2-mingw64'
b9c55ae7
MJ
143 steps:
144 - inject:
145 properties-content: 'MSYSTEM=MINGW64'
146 - shell:
147 !include-raw-escape:
8f541678 148 - scripts/common/msys2-shebang
b9c55ae7
MJ
149 - scripts/common/cygwin-prefix
150 - scripts/babeltrace/build.sh
151
152
499a96d0
JR
153- babeltrace_build_publishers_dev: &babeltrace_build_publishers_dev
154 name: 'babeltrace_build_publishers_dev'
890bff23
MJ
155 publishers:
156 - tap:
e6be9fb0 157 results: 'tap/**/*.log'
890bff23 158 failed-tests-mark-build-as-failure: true
95654431 159 todo-is-failure: false
890bff23
MJ
160 - warnings:
161 console-log-parsers:
162 - 'GNU Make + GNU C Compiler (gcc)'
163 total-thresholds:
51ca880a 164 unstable:
d2c76ee5
MJ
165 total-all: 0
166 total-high: 0
167 total-normal: 0
168 total-low: 0
499a96d0
JR
169 - email-ext:
170 recipients: '{obj:email_to}'
171 always: false
172 unstable: false
173 first-failure: true
174 first-unstable: true
175 not-built: false
176 aborted: false
177 regression: false
178 failure: false
179 second-failure: false
180 improvement: false
181 still-failing: false
182 success: false
183 fixed: false
184 fixed-unhealthy: true
185 still-unstable: false
186 pre-build: false
187 matrix-trigger: only-parent
188 send-to:
189 - recipients
190
b9c55ae7
MJ
191
192- babeltrace_build_publishers_prod: &babeltrace_build_publishers_prod
193 name: 'babeltrace_build_publishers_prod'
194 publishers:
0efb2471
JR
195 - tap:
196 results: 'tap/**/*.log'
197 failed-tests-mark-build-as-failure: true
198 todo-is-failure: false
199 - warnings:
200 console-log-parsers:
201 - 'GNU Make + GNU C Compiler (gcc)'
202 total-thresholds:
203 unstable:
204 total-all: 0
205 total-high: 0
206 total-normal: 0
207 total-low: 0
890bff23
MJ
208 - archive:
209 artifacts: 'build/**'
210 allow-empty: false
499a96d0
JR
211 - email-ext:
212 recipients: '{obj:email_to}'
213 reply-to: ci-notification@lists.lttng.org
214 always: false
215 unstable: false
216 first-failure: true
217 first-unstable: true
218 not-built: false
219 aborted: false
220 regression: false
221 failure: false
222 second-failure: false
223 improvement: false
224 still-failing: false
225 success: false
226 fixed: false
227 fixed-unhealthy: true
228 still-unstable: false
229 pre-build: false
230 matrix-trigger: only-parent
231 send-to:
232 - recipients
890bff23 233
c871b3d3
MJ
234- babeltrace_build_publishers_gerrit: &babeltrace_build_publishers_gerrit
235 name: 'babeltrace_build_publishers_gerrit'
236 publishers:
237 - tap:
238 results: 'tap/**/*.log'
239 failed-tests-mark-build-as-failure: true
240 todo-is-failure: false
241 - warnings:
242 console-log-parsers:
243 - 'GNU Make + GNU C Compiler (gcc)'
244 total-thresholds:
245 unstable:
246 total-all: 0
247 total-high: 0
248 total-normal: 0
249 total-low: 0
250 - archive:
251 artifacts: 'build/**'
252 allow-empty: false
253
254
b9c55ae7
MJ
255## Templates
256
257- job-template:
258 name: babeltrace_{version}_{buildtype}
259 defaults: babeltrace
260
261 <<: *babeltrace_build_axes_defaults
262 <<: *babeltrace_build_builders_defaults
b9c55ae7
MJ
263 <<: *babeltrace_build_publishers_prod
264
6476f917
MJ
265- job-template:
266 name: babeltrace_{version}_{cctype}
267 defaults: babeltrace
268
269 <<: *babeltrace_build_axes_cc
270 <<: *babeltrace_build_builders_defaults
271 <<: *babeltrace_build_publishers_prod
272
b9c55ae7
MJ
273- job-template:
274 name: babeltrace_{version}_winbuild
275 defaults: babeltrace
276
277 <<: *babeltrace_build_axes_defaults
278 <<: *babeltrace_build_builders_win
b9c55ae7
MJ
279 <<: *babeltrace_build_publishers_prod
280
4f827afb
JR
281- job-template:
282 name: dev_{user}_babeltrace_{version}_{buildtype}
b9c55ae7
MJ
283 defaults: babeltrace
284
285 <<: *babeltrace_build_axes_defaults
286 <<: *babeltrace_build_builders_defaults
499a96d0 287 <<: *babeltrace_build_publishers_dev
4f827afb 288
c871b3d3
MJ
289- job-template:
290 name: dev_gerrit_babeltrace_{buildtype}
291 defaults: babeltrace
292 concurrent: true
293
294 scm:
295 - git:
296 url: https://review.lttng.org/babeltrace
297 refspec: 'refs/changes/*:refs/changes/*'
298 branches:
299 - '$GERRIT_REFSPEC'
300 basedir: src/babeltrace
301 skip-tag: true
302
303 triggers:
304 - gerrit:
305 trigger-on:
306 - comment-added-event:
307 approval-category: 'CI-Build'
308 approval-value: 1
309 projects:
310 - project-compare-type: 'PLAIN'
311 project-pattern: 'babeltrace'
312 branches:
313 - branch-compare-type: 'ANT'
314 branch-pattern: '**'
315 trigger-for-unreviewed-patches: true
316
317 <<: *babeltrace_build_axes_defaults
318 <<: *babeltrace_build_builders_defaults
319 <<: *babeltrace_build_publishers_gerrit
320
321 properties:
322 - inject:
323 properties-content: |
324 PROJECT_NAME=babeltrace
325 - build-discarder:
326 days-to-keep: 2
327 - github:
328 url: https://github.com/{github_user}/{github_name}
329
890bff23
MJ
330- job-template:
331 name: babeltrace_{version}_cppcheck
332 defaults: babeltrace
333
334 triggers:
6cf22a3a
MJ
335 - pollscm:
336 cron: "@daily"
890bff23
MJ
337
338 builders:
339 - shell: |
5279b0f2
MJ
340 rm -f cppcheck-result.xml
341 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/babeltrace 2> cppcheck-result.xml
890bff23
MJ
342
343 publishers:
344 - archive:
5279b0f2 345 artifacts: 'cppcheck-result.xml'
890bff23 346 allow-empty: false
890bff23 347 - cppcheck:
5279b0f2 348 pattern: 'cppcheck-result.xml'
890bff23
MJ
349
350- job-template:
351 name: babeltrace_{version}_scan-build
352 defaults: babeltrace
16844a6d 353 node: 'amd64'
890bff23
MJ
354
355 triggers:
6cf22a3a
MJ
356 - pollscm:
357 cron: "@daily"
890bff23
MJ
358
359 builders:
360 - shell:
69f05d59 361 !include-raw-escape: scripts/common/scan-build.sh
890bff23
MJ
362
363 publishers:
364 - html-publisher:
365 name: 'HTML Report'
366 dir: 'scan-build-archive/'
367 files: 'index.html'
368
6cf22a3a
MJ
369- job-template:
370 name: babeltrace_{version}_coverity
371 defaults: babeltrace
16844a6d 372 node: 'amd64'
6cf22a3a
MJ
373
374 triggers:
375 - pollscm:
376 cron: "@daily"
377
378 wrappers:
379 - workspace-cleanup
380 - timestamps
381 - ansicolor:
382 colormap: xterm
383 - credentials-binding:
384 - username-password-separated:
385 credential-id: babeltrace_coverity_token
386 username: COVERITY_SCAN_PROJECT_NAME
387 password: COVERITY_SCAN_TOKEN
388 builders:
389 - shell:
ef63064f 390 !include-raw-escape: scripts/common/coverity.sh
6cf22a3a
MJ
391
392 publishers:
393 - workspace-cleanup
73778992
MJ
394 - archive:
395 artifacts: 'analysis-results.tgz,cov-int/**'
396 allow-empty: false
890bff23
MJ
397
398- job-template:
399 name: babeltrace_{version}_pylint
400 defaults: babeltrace
16844a6d 401 node: 'amd64'
890bff23
MJ
402
403 scm: []
404
405 triggers:
6cf22a3a
MJ
406 - pollscm:
407 cron: "@daily"
890bff23
MJ
408
409 builders:
410 - copyartifact:
16844a6d 411 project: babeltrace_{version}_build/arch=amd64,build=std,conf=python-bindings
890bff23 412 which-build: last-successful
3522265a 413 stable: false
890bff23 414 filter: 'build/**'
b0afcb47 415 target: 'deps/babeltrace'
890bff23 416 - shell:
ef63064f 417 !include-raw-escape: scripts/babeltrace/pylint.sh
890bff23
MJ
418
419 publishers:
420 - archive:
421 artifacts: 'pep8.out,pylint.out'
890bff23
MJ
422 - violations:
423 pep8:
424 pattern: pep8.out
425 min: 10
426 max: 999
427 unstable: 999
428 pylint:
429 pattern: pylint.out
430 min: 10
431 max: 999
432 unstable: 999
499a96d0
JR
433 - email-ext:
434 recipients: '{obj:email_to}'
435 reply-to: ci-notification@lists.lttng.org
436 always: false
437 unstable: false
438 first-failure: true
439 first-unstable: true
440 not-built: false
441 aborted: false
442 regression: false
443 failure: false
444 second-failure: false
445 improvement: false
446 still-failing: false
447 success: false
448 fixed: false
449 fixed-unhealthy: true
450 still-unstable: false
451 pre-build: false
452 matrix-trigger: only-parent
453 send-to:
454 - recipients
890bff23 455
556e87cc
JR
456# Use - in version number since yaml anchor do not support dot
457- babeltrace_version_glib-2-22-5_anchor: &babeltrace_version_glib-2-22-5_anchor
458 name: 'babeltrace_version_glib_anchor'
459 defaults: babeltrace
16844a6d 460 node: 'amd64'
556e87cc
JR
461
462 builders:
463 - inject:
464 properties-content: |
465 LD_LIBRARY_PATH=$WORKSPACE/glib-2.22.5/BUILD_RESULT/lib
466 PKG_CONFIG_PATH=$WORKSPACE/glib-2.22.5/BUILD_RESULT/lib/pkgconfig
16844a6d 467 arch=amd64
556e87cc
JR
468 conf=std
469 build=std
470 - shell: |
471 wget http://ftp.gnome.org/pub/gnome/sources/glib/2.22/glib-2.22.5.tar.gz
472 tar xvf glib-2.22.5.tar.gz
473 cd glib-2.22.5
474 mkdir BUILD_RESULT
475 ./configure --prefix=$WORKSPACE/glib-2.22.5/BUILD_RESULT
476 make -j `nproc`
477 make install
478
479 - shell:
480 !include-raw-escape: scripts/babeltrace/build.sh
481
482- job-template:
483 name: babeltrace_{version}_glib-2.22.5
484 triggers:
485 - pollscm:
486 cron: "@daily"
487 <<: *babeltrace_version_glib-2-22-5_anchor
499a96d0
JR
488 publishers:
489 - email-ext:
490 recipients: '{obj:email_to}'
491 reply-to: ci-notification@lists.lttng.org
492 always: false
493 unstable: false
494 first-failure: true
495 first-unstable: true
496 not-built: false
497 aborted: false
498 regression: false
499 failure: false
500 second-failure: false
501 improvement: false
502 still-failing: false
503 success: false
504 fixed: false
505 fixed-unhealthy: true
506 still-unstable: false
507 pre-build: false
508 matrix-trigger: only-parent
509 send-to:
510 - recipients
556e87cc
JR
511
512- job-template:
513 name: dev_{user}_babeltrace_{version}_glib-2.22.5
514 <<: *babeltrace_version_glib-2-22-5_anchor
890bff23 515
499a96d0
JR
516 publishers:
517 - email-ext:
518 recipients: '{obj:email_to}'
519 reply-to: ci-notification@lists.lttng.org
520 always: false
521 unstable: false
522 first-failure: true
523 first-unstable: true
524 not-built: false
525 aborted: false
526 regression: false
527 failure: false
528 second-failure: false
529 improvement: false
530 still-failing: false
531 success: false
532 fixed: false
533 fixed-unhealthy: true
534 still-unstable: false
535 pre-build: false
536 matrix-trigger: only-parent
537 send-to:
538 - recipients
b9c55ae7 539
890bff23
MJ
540## Project
541- project:
542 name: babeltrace
4f827afb
JR
543 github_user: efficios
544 github_name: babeltrace
499a96d0 545 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
890bff23 546 version:
9eb09611 547 - stable-1.5
a0b535b2 548 - stable-2.0
ecf9997a 549 - master
890bff23 550 jobs:
57ae8ff4
MJ
551 - 'babeltrace_{version}_{buildtype}':
552 buildtype: build
16844a6d 553 arch: !!python/tuple [amd64]
9d0846f3 554 build: !!python/tuple [std, oot, dist]
87e41bca 555 conf: !!python/tuple [std, static, python-bindings]
57ae8ff4
MJ
556 - 'babeltrace_{version}_{buildtype}':
557 buildtype: portbuild
16844a6d 558 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
9d0846f3 559 build: !!python/tuple [std]
87e41bca 560 conf: !!python/tuple [std, static, python-bindings]
81bf613d
MJ
561 - 'babeltrace_{version}_{buildtype}':
562 buildtype: slesbuild
563 arch: !!python/tuple [sles12sp2]
564 build: !!python/tuple [std]
565 conf: !!python/tuple [std]
15c21bc0
MJ
566 version: # // support 1.3 on SLES12
567 - stable-1.3
568 - stable-1.5
569 - stable-2.0
570 - master
87e41bca
MJ
571 - 'babeltrace_{version}_{buildtype}':
572 buildtype: solarisbuild
a0b535b2 573 arch: !!python/tuple [sol10-i386, sol11-i386]
87e41bca
MJ
574 build: !!python/tuple [std]
575 conf: !!python/tuple [std, static]
221450b6
MJ
576 - 'babeltrace_{version}_{buildtype}':
577 buildtype: macosxbuild
578 arch: !!python/tuple [macosx]
579 build: !!python/tuple [std]
cd12b140 580 conf: !!python/tuple [std]
a0b535b2 581 version: # macOS support was introduced in 1.4
9eb09611 582 - stable-1.5
a0b535b2 583 - stable-2.0
221450b6 584 - master
6476f917
MJ
585 - 'babeltrace_{version}_{cctype}':
586 cctype: clangbuild
587 arch: !!python/tuple [amd64]
588 build: !!python/tuple [std]
589 conf: !!python/tuple [std, static]
590 cc: !!python/tuple [clang-3.9, clang-4.0, clang-6.0, clang-7]
8f541678
MJ
591 - 'babeltrace_{version}_winbuild':
592 arch: !!python/tuple [cygwin, cygwin64, msys2-mingw32, msys2-mingw64]
593 build: !!python/tuple [std]
594 conf: !!python/tuple [std]
a0b535b2
MJ
595 version: # Mingw support was introduced in 2.0
596 - stable-2.0
8f541678 597 - master
b9c55ae7
MJ
598 - 'babeltrace_{version}_winbuild':
599 arch: !!python/tuple [cygwin, cygwin64]
600 build: !!python/tuple [std]
601 conf: !!python/tuple [std]
a0b535b2 602 version: # Cygwin support was introduced in 1.5
b9c55ae7 603 - stable-1.5
890bff23
MJ
604 - 'babeltrace_{version}_cppcheck'
605 - 'babeltrace_{version}_scan-build'
606 - 'babeltrace_{version}_pylint'
6cf22a3a
MJ
607 - 'babeltrace_{version}_coverity':
608 version: master
556e87cc
JR
609 - 'babeltrace_{version}_glib-2.22.5':
610 version: master
a0b535b2
MJ
611
612
613- project:
614 name: babeltrace-jgalar-staging
615 user: jgalar
616 github_user: jgalar
617 github_name: babeltrace
499a96d0 618 email_to: "jgalar@efficios.com"
a0b535b2
MJ
619 version:
620 - stable-1.3-staging
a0b535b2
MJ
621 - stable-1.5-staging
622 - stable-2.0-staging
623 - master-staging
624 jobs:
556e87cc 625 - 'dev_{user}_babeltrace_{version}_glib-2.22.5':
556e87cc
JR
626 version:
627 - master-staging
4f827afb 628 - 'dev_{user}_babeltrace_{version}_{buildtype}':
4f827afb 629 buildtype: build
16844a6d 630 arch: !!python/tuple [amd64]
4f827afb
JR
631 build: !!python/tuple [std, oot, dist]
632 conf: !!python/tuple [std, static, python-bindings]
4b9bec35 633 - 'dev_{user}_babeltrace_{version}_{buildtype}':
4b9bec35 634 buildtype: macosxbuild
a0b535b2 635 version: # macOS support was introduced in 1.4
4b9bec35 636 - stable-1.5-staging
a0b535b2
MJ
637 - stable-2.0-staging
638 - master-staging
4b9bec35
MJ
639 arch: !!python/tuple [macosx]
640 build: !!python/tuple [std]
641 conf: !!python/tuple [std]
890bff23 642
c871b3d3
MJ
643
644- project:
645 name: gerrit-babeltrace
646 github_user: efficios
647 github_name: babeltrace
648 jobs:
649 - 'dev_gerrit_babeltrace_{buildtype}':
650 buildtype: build
651 #arch: !!python/tuple [amd64, armhf, arm64, powerpc, ppc64el, i386]
652 arch: !!python/tuple [amd64, i386]
653 build: !!python/tuple [std]
654 conf: !!python/tuple [std, python-bindings]
This page took 0.053122 seconds and 4 git commands to generate.