Commit | Line | Data |
---|---|---|
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 | ||
17 | logrotate: | |
18 | daysToKeep: -1 | |
19 | numToKeep: 2 | |
20 | artifactDaysToKeep: -1 | |
21 | artifactNumToKeep: -1 | |
22 | ||
23 | wrappers: | |
24 | - workspace-cleanup | |
25 | - timestamps | |
26 | - ansicolor | |
27 | ||
28 | scm: | |
29 | - git: | |
9a00aa82 | 30 | url: git://github.com/efficios/babeltrace.git |
890bff23 | 31 | browser: githubweb |
9a00aa82 | 32 | browser-url: https://github.com/efficios/babeltrace |
890bff23 MJ |
33 | branches: |
34 | - origin/{version} | |
35 | ||
36 | triggers: | |
37 | - pollscm: "@hourly" | |
38 | ||
39 | properties: | |
40 | - github: | |
9a00aa82 | 41 | url: https://github.com/efficios/babeltrace |
890bff23 MJ |
42 | |
43 | ||
44 | ## Templates | |
45 | - job-template: | |
46 | name: babeltrace_{version}_{buildtype} | |
47 | defaults: babeltrace | |
48 | ||
49 | project-type: matrix | |
0dc6aca0 | 50 | node: 'x86-32 || x86-64' # Applies only to matrix flyweight task |
890bff23 MJ |
51 | axes: |
52 | - axis: | |
53 | type: slave | |
54 | name: arch | |
55 | values: '{obj:arch}' | |
56 | - axis: | |
57 | type: user-defined | |
58 | name: conf | |
59 | values: | |
60 | - std | |
61 | - static | |
62 | - python_bindings | |
63 | - axis: | |
64 | type: user-defined | |
65 | name: build | |
9d0846f3 | 66 | values: '{obj:build}' |
890bff23 MJ |
67 | |
68 | builders: | |
69 | - shell: | |
70 | !include-raw-escape scripts/babeltrace/build.sh | |
71 | ||
72 | # TODO: Scan for open tasks | |
73 | publishers: | |
74 | - tap: | |
75 | results: 'tap/**/*.tap' | |
76 | failed-tests-mark-build-as-failure: true | |
77 | - warnings: | |
78 | console-log-parsers: | |
79 | - 'GNU Make + GNU C Compiler (gcc)' | |
80 | total-thresholds: | |
81 | failed: | |
82 | total-all: 0 | |
83 | total-high: 0 | |
84 | total-normal: 0 | |
85 | total-low: 0 | |
86 | - archive: | |
87 | artifacts: 'build/**' | |
88 | allow-empty: false | |
890bff23 MJ |
89 | |
90 | - job-template: | |
91 | name: babeltrace_{version}_cppcheck | |
92 | defaults: babeltrace | |
93 | ||
94 | triggers: | |
95 | - pollscm: "@daily" | |
96 | ||
97 | builders: | |
98 | - shell: | | |
99 | rm -f babeltrace-cppcheck.xml | |
100 | cppcheck --enable=all --xml --xml-version=2 $WORKSPACE 2> babeltrace-cppcheck.xml | |
101 | ||
102 | publishers: | |
103 | - archive: | |
104 | artifacts: 'babeltrace-cppcheck.xml' | |
105 | allow-empty: false | |
890bff23 MJ |
106 | - cppcheck: |
107 | pattern: 'babeltrace-cppcheck.xml' | |
108 | - email: | |
109 | recipients: 'ci-notification@lists.lttng.org' | |
110 | notify-every-unstable-build: true | |
111 | send-to-individuals: false | |
112 | ||
113 | - job-template: | |
114 | name: babeltrace_{version}_scan-build | |
115 | defaults: babeltrace | |
116 | node: 'x86-64' | |
117 | ||
118 | triggers: | |
119 | - pollscm: "@daily" | |
120 | ||
121 | builders: | |
122 | - shell: | |
123 | !include-raw-escape scripts/babeltrace/scan-build.sh | |
124 | ||
125 | publishers: | |
126 | - html-publisher: | |
127 | name: 'HTML Report' | |
128 | dir: 'scan-build-archive/' | |
129 | files: 'index.html' | |
130 | ||
131 | # TODO: babeltrace_{version}_coverity | |
132 | #- job-template: | |
133 | # name: babeltrace_{version}_coverity | |
134 | # defaults: babeltrace | |
135 | # node: 'x86-64' | |
136 | # | |
137 | # triggers: | |
138 | # - pollscm: "@daily" | |
139 | # | |
140 | # builders: | |
141 | # - shell: | |
142 | # !include-raw-escape scripts/babeltrace/coverity.sh | |
143 | # | |
144 | # publishers: | |
145 | # - html-publisher: | |
146 | # name: 'HTML Report' | |
147 | # dir: 'scan-build-archive/' | |
148 | # files: 'index.html' | |
149 | ||
150 | - job-template: | |
151 | name: babeltrace_{version}_pylint | |
152 | defaults: babeltrace | |
153 | node: 'x86-64' | |
154 | ||
155 | scm: [] | |
156 | ||
157 | triggers: | |
158 | - pollscm: "@daily" | |
159 | ||
160 | builders: | |
161 | - copyartifact: | |
162 | project: babeltrace-{version}/arch=x86-64,build=std,conf=python_bindings | |
163 | which-build: last-successful | |
164 | stable: true | |
165 | filter: 'build/**' | |
166 | target: 'dependencies/babeltrace' | |
167 | - shell: | |
168 | !include-raw-escape scripts/babeltrace/pylint.sh | |
169 | ||
170 | publishers: | |
171 | - archive: | |
172 | artifacts: 'pep8.out,pylint.out' | |
890bff23 MJ |
173 | - violations: |
174 | pep8: | |
175 | pattern: pep8.out | |
176 | min: 10 | |
177 | max: 999 | |
178 | unstable: 999 | |
179 | pylint: | |
180 | pattern: pylint.out | |
181 | min: 10 | |
182 | max: 999 | |
183 | unstable: 999 | |
184 | - email: | |
185 | recipients: 'ci-notification@lists.lttng.org' | |
186 | notify-every-unstable-build: true | |
187 | send-to-individuals: false | |
188 | ||
189 | ||
890bff23 MJ |
190 | ## Project |
191 | - project: | |
192 | name: babeltrace | |
193 | version: | |
6ea8351e | 194 | !include jobs/inc/babeltrace-versions.yaml.inc |
890bff23 | 195 | jobs: |
57ae8ff4 MJ |
196 | - 'babeltrace_{version}_{buildtype}': |
197 | buildtype: build | |
890bff23 | 198 | arch: !!python/tuple [x86-32, x86-64] |
9d0846f3 | 199 | build: !!python/tuple [std, oot, dist] |
57ae8ff4 MJ |
200 | - 'babeltrace_{version}_{buildtype}': |
201 | buildtype: portbuild | |
890bff23 | 202 | arch: !!python/tuple [armhf, powerpc] |
9d0846f3 | 203 | build: !!python/tuple [std] |
890bff23 MJ |
204 | - 'babeltrace_{version}_cppcheck' |
205 | - 'babeltrace_{version}_scan-build' | |
206 | - 'babeltrace_{version}_pylint' | |
207 |