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