jjb: babeltrace: pylint job 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 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 failed:
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_pylint
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/pylint.sh
400
401 properties:
402 - inject:
403 properties-content: |
404 PROJECT_NAME=babeltrace
405 - build-discarder:
406 days-to-keep: 1
407
408 - job-template:
409 name: babeltrace_{version}_cppcheck
410 defaults: babeltrace
411
412 triggers:
413 - pollscm:
414 cron: "@daily"
415
416 builders:
417 - shell: |
418 rm -f cppcheck-result.xml
419 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/babeltrace 2> cppcheck-result.xml
420
421 publishers:
422 - archive:
423 artifacts: 'cppcheck-result.xml'
424 allow-empty: false
425 - cppcheck:
426 pattern: 'cppcheck-result.xml'
427
428 - job-template:
429 name: babeltrace_{version}_scan-build
430 defaults: babeltrace
431 node: 'amd64'
432
433 triggers:
434 - pollscm:
435 cron: "@daily"
436
437 builders:
438 - shell:
439 !include-raw-escape: scripts/common/scan-build.sh
440
441 publishers:
442 - html-publisher:
443 name: 'HTML Report'
444 dir: 'scan-build-archive/'
445 files: 'index.html'
446
447 - job-template:
448 name: babeltrace_{version}_coverity
449 defaults: babeltrace
450 node: 'amd64'
451
452 triggers:
453 - pollscm:
454 cron: "@daily"
455
456 wrappers:
457 - workspace-cleanup
458 - timestamps
459 - ansicolor:
460 colormap: xterm
461 - credentials-binding:
462 - username-password-separated:
463 credential-id: babeltrace_coverity_token
464 username: COVERITY_SCAN_PROJECT_NAME
465 password: COVERITY_SCAN_TOKEN
466 builders:
467 - shell:
468 !include-raw-escape: scripts/common/coverity.sh
469
470 publishers:
471 - workspace-cleanup
472 - archive:
473 artifacts: 'analysis-results.tgz,cov-int/**'
474 allow-empty: false
475
476 - job-template:
477 name: babeltrace_{version}_pylint
478 defaults: babeltrace
479 node: 'amd64'
480
481 triggers:
482 - pollscm:
483 cron: "@daily"
484
485 builders:
486 - shell:
487 !include-raw-escape: scripts/babeltrace/pylint.sh
488
489 publishers:
490 - archive:
491 artifacts: 'black.out,flake8.out'
492 - email-ext:
493 recipients: '{obj:email_to}'
494 reply-to: ci-notification@lists.lttng.org
495 always: false
496 unstable: false
497 first-failure: true
498 first-unstable: true
499 not-built: false
500 aborted: false
501 regression: false
502 failure: false
503 second-failure: false
504 improvement: false
505 still-failing: false
506 success: false
507 fixed: false
508 fixed-unhealthy: true
509 still-unstable: false
510 pre-build: false
511 matrix-trigger: only-parent
512 send-to:
513 - recipients
514
515 # Use - in version number since yaml anchor do not support dot
516 - babeltrace_version_glib-2-22-5_anchor: &babeltrace_version_glib-2-22-5_anchor
517 name: 'babeltrace_version_glib_anchor'
518 defaults: babeltrace
519 node: 'amd64'
520
521 builders:
522 - inject:
523 properties-content: |
524 LD_LIBRARY_PATH=$WORKSPACE/glib-2.22.5/BUILD_RESULT/lib
525 PKG_CONFIG_PATH=$WORKSPACE/glib-2.22.5/BUILD_RESULT/lib/pkgconfig
526 arch=amd64
527 conf=std
528 build=std
529 - shell: |
530 wget http://ftp.gnome.org/pub/gnome/sources/glib/2.22/glib-2.22.5.tar.gz
531 tar xvf glib-2.22.5.tar.gz
532 cd glib-2.22.5
533 mkdir BUILD_RESULT
534 ./configure --prefix=$WORKSPACE/glib-2.22.5/BUILD_RESULT
535 make -j `nproc`
536 make install
537
538 - shell:
539 !include-raw-escape: scripts/babeltrace/build.sh
540
541 - job-template:
542 name: babeltrace_{version}_glib-2.22.5
543 triggers:
544 - pollscm:
545 cron: "@daily"
546 <<: *babeltrace_version_glib-2-22-5_anchor
547 publishers:
548 - archive:
549 artifacts: 'tap/**'
550 allow-empty: false
551 - email-ext:
552 recipients: '{obj:email_to}'
553 reply-to: ci-notification@lists.lttng.org
554 always: false
555 unstable: false
556 first-failure: true
557 first-unstable: true
558 not-built: false
559 aborted: false
560 regression: false
561 failure: false
562 second-failure: false
563 improvement: false
564 still-failing: false
565 success: false
566 fixed: false
567 fixed-unhealthy: true
568 still-unstable: false
569 pre-build: false
570 matrix-trigger: only-parent
571 send-to:
572 - recipients
573
574 - job-template:
575 name: dev_{user}_babeltrace_{version}_glib-2.22.5
576 <<: *babeltrace_version_glib-2-22-5_anchor
577
578 publishers:
579 - email-ext:
580 recipients: '{obj:email_to}'
581 reply-to: ci-notification@lists.lttng.org
582 always: false
583 unstable: false
584 first-failure: true
585 first-unstable: true
586 not-built: false
587 aborted: false
588 regression: false
589 failure: false
590 second-failure: false
591 improvement: false
592 still-failing: false
593 success: false
594 fixed: false
595 fixed-unhealthy: true
596 still-unstable: false
597 pre-build: false
598 matrix-trigger: only-parent
599 send-to:
600 - recipients
601
602
603 ## Views
604 - view-template:
605 name: 'Babeltrace'
606 view-type: list
607 regex: 'babeltrace[-_].*'
608
609
610 ## Projects
611 - project:
612 name: babeltrace1
613 github_user: efficios
614 github_name: babeltrace
615 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
616 version:
617 - stable-1.5
618 jobs:
619 - 'babeltrace_{version}_{buildtype}':
620 buildtype: build
621 arch: !!python/tuple [amd64]
622 build: !!python/tuple [std, oot, dist, oot-dist]
623 conf: !!python/tuple [std, static, python-bindings]
624 - 'babeltrace_{version}_{buildtype}':
625 buildtype: portbuild
626 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
627 build: !!python/tuple [std]
628 conf: !!python/tuple [std, python-bindings]
629 - 'babeltrace_{version}_{buildtype}':
630 buildtype: slesbuild
631 arch: !!python/tuple [sles12sp2]
632 build: !!python/tuple [std]
633 conf: !!python/tuple [std]
634 version: # // support 1.3 on SLES12
635 - stable-1.3
636 - stable-1.5
637 - 'babeltrace_{version}_{buildtype}':
638 buildtype: elbuild
639 arch: !!python/tuple [el8]
640 build: !!python/tuple [std]
641 conf: !!python/tuple [std]
642 - 'babeltrace_{version}_{buildtype}':
643 buildtype: solarisbuild
644 arch: !!python/tuple [sol10-i386, sol11-i386]
645 build: !!python/tuple [std]
646 conf: !!python/tuple [std, static]
647 - 'babeltrace_{version}_{buildtype}':
648 buildtype: macosxbuild
649 arch: !!python/tuple [macosx]
650 build: !!python/tuple [std]
651 conf: !!python/tuple [std]
652 - 'babeltrace_{version}_{cctype}':
653 cctype: clangbuild
654 arch: !!python/tuple [amd64]
655 build: !!python/tuple [std]
656 conf: !!python/tuple [std, static]
657 cc: !!python/tuple [clang-3.9, clang-4.0, clang-6.0, clang-7]
658 - 'babeltrace_{version}_winbuild':
659 arch: !!python/tuple [cygwin, cygwin64]
660 build: !!python/tuple [std]
661 conf: !!python/tuple [std]
662 - 'babeltrace_{version}_cppcheck'
663 - 'babeltrace_{version}_scan-build'
664
665 - project:
666 name: babeltrace2
667 github_user: efficios
668 github_name: babeltrace
669 email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com'
670 version:
671 - stable-2.0
672 - master
673 jobs:
674 - 'babeltrace_{version}_{buildtype}':
675 buildtype: build
676 arch: !!python/tuple [amd64]
677 build: !!python/tuple [std, oot, dist, oot-dist]
678 conf: !!python/tuple [std, static, prod, min]
679 - 'babeltrace_{version}_{buildtype}':
680 buildtype: portbuild
681 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
682 build: !!python/tuple [std]
683 conf: !!python/tuple [std, prod]
684 - 'babeltrace_{version}_{buildtype}':
685 buildtype: slesbuild
686 arch: !!python/tuple [sles12sp2]
687 build: !!python/tuple [std]
688 conf: !!python/tuple [std, prod]
689 - 'babeltrace_{version}_{buildtype}':
690 buildtype: elbuild
691 arch: !!python/tuple [el8]
692 build: !!python/tuple [std]
693 conf: !!python/tuple [std, prod]
694 - 'babeltrace_{version}_{buildtype}':
695 buildtype: macosxbuild
696 arch: !!python/tuple [macosx]
697 build: !!python/tuple [std]
698 conf: !!python/tuple [std, prod]
699 - 'babeltrace_{version}_{cctype}':
700 cctype: clangbuild
701 arch: !!python/tuple [amd64]
702 build: !!python/tuple [std]
703 conf: !!python/tuple [std, static, prod]
704 cc: !!python/tuple [clang-3.9, clang-4.0, clang-6.0, clang-7]
705 - 'babeltrace_{version}_winbuild':
706 arch: !!python/tuple [cygwin, cygwin64, msys2-mingw32, msys2-mingw64]
707 build: !!python/tuple [std]
708 conf: !!python/tuple [std]
709 - 'babeltrace_{version}_cppcheck'
710 - 'babeltrace_{version}_scan-build'
711 - 'babeltrace_{version}_pylint'
712 - 'babeltrace_{version}_coverity':
713 version: master
714 - 'babeltrace_{version}_glib-2.22.5':
715 version: master
716
717 - project:
718 name: gerrit-babeltrace
719 github_user: efficios
720 github_name: babeltrace
721 jobs:
722 - 'dev_gerrit_babeltrace_{buildtype}':
723 buildtype: build
724 arch: !!python/tuple [amd64, armhf, arm64, powerpc, ppc64el, i386]
725 build: !!python/tuple [std, oot, dist, oot-dist]
726 conf: !!python/tuple [std, static, prod, min]
727 filter: '(build=="std" && conf=="std") || (arch=="amd64")'
728 - 'dev_gerrit_babeltrace_{buildtype}':
729 buildtype: macosxbuild
730 arch: !!python/tuple [macosx]
731 build: !!python/tuple [std]
732 conf: !!python/tuple [std, prod]
733 filter: ''
734 - 'dev_gerrit_babeltrace_pylint'
735
736
737 - project:
738 name: babeltrace-jgalar-staging
739 user: jgalar
740 github_user: jgalar
741 github_name: babeltrace
742 email_to: "jgalar@efficios.com"
743 version:
744 - stable-1.3-staging
745 - stable-1.5-staging
746 jobs:
747 - 'dev_{user}_babeltrace_{version}_{buildtype}':
748 buildtype: build
749 arch: !!python/tuple [amd64]
750 build: !!python/tuple [std, oot, dist, oot-dist]
751 conf: !!python/tuple [std, static, python-bindings]
752 - 'dev_{user}_babeltrace_{version}_{buildtype}':
753 buildtype: macosxbuild
754 version: # macOS support was introduced in 1.4
755 - stable-1.5-staging
756 arch: !!python/tuple [macosx]
757 build: !!python/tuple [std]
758 conf: !!python/tuple [std]
759
760
761 - project:
762 name: babeltrace2-jgalar-staging
763 user: jgalar
764 github_user: jgalar
765 github_name: babeltrace
766 email_to: "jgalar@efficios.com"
767 version:
768 - stable-2.0-staging
769 - master-staging
770 jobs:
771 - 'dev_{user}_babeltrace_{version}_glib-2.22.5':
772 version:
773 - master-staging
774 - 'dev_{user}_babeltrace_{version}_{buildtype}':
775 buildtype: build
776 arch: !!python/tuple [amd64]
777 build: !!python/tuple [std, oot, dist, oot-dist]
778 conf: !!python/tuple [std, static, prod, min]
779 - 'dev_{user}_babeltrace_{version}_{buildtype}':
780 buildtype: macosxbuild
781 arch: !!python/tuple [macosx]
782 build: !!python/tuple [std]
783 conf: !!python/tuple [std, prod]
784
785 - project:
786 name: babeltrace-views
787 views:
788 - Babeltrace
This page took 0.044323 seconds and 5 git commands to generate.