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