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: | |
890bff23 | 18 | numToKeep: 2 |
890bff23 MJ |
19 | |
20 | wrappers: | |
21 | - workspace-cleanup | |
22 | - timestamps | |
6cf22a3a MJ |
23 | - ansicolor: |
24 | colormap: xterm | |
890bff23 MJ |
25 | |
26 | scm: | |
27 | - git: | |
4f827afb | 28 | url: git://github.com/{github_user}/{github_name}.git |
890bff23 | 29 | browser: githubweb |
4f827afb | 30 | browser-url: https://github.com/{github_user}/{github_name} |
890bff23 MJ |
31 | branches: |
32 | - origin/{version} | |
e6be9fb0 | 33 | basedir: src/babeltrace |
890bff23 MJ |
34 | |
35 | triggers: | |
6cf22a3a MJ |
36 | - pollscm: |
37 | cron: "@hourly" | |
890bff23 MJ |
38 | |
39 | properties: | |
40 | - github: | |
4f827afb | 41 | url: https://github.com/{github_user}/{github_name} |
890bff23 MJ |
42 | |
43 | ||
44 | ## Templates | |
06264d10 JR |
45 | |
46 | - babeltrace_version_buildtype_anchor: &babeltrace_version_buildtype_anchor | |
47 | name: 'babeltrace_version_buildtype_anchor' | |
890bff23 MJ |
48 | defaults: babeltrace |
49 | ||
50 | project-type: matrix | |
ca8c6144 | 51 | node: 'master' # Applies only to matrix flyweight task |
890bff23 MJ |
52 | axes: |
53 | - axis: | |
54 | type: slave | |
55 | name: arch | |
56 | values: '{obj:arch}' | |
57 | - axis: | |
58 | type: user-defined | |
59 | name: conf | |
87e41bca | 60 | values: '{obj:conf}' |
890bff23 MJ |
61 | - axis: |
62 | type: user-defined | |
63 | name: build | |
9d0846f3 | 64 | values: '{obj:build}' |
890bff23 MJ |
65 | |
66 | builders: | |
67 | - shell: | |
ef63064f | 68 | !include-raw-escape: scripts/babeltrace/build.sh |
890bff23 | 69 | |
06264d10 JR |
70 | - job-template: |
71 | name: babeltrace_{version}_{buildtype} | |
72 | <<: *babeltrace_version_buildtype_anchor | |
890bff23 MJ |
73 | # TODO: Scan for open tasks |
74 | publishers: | |
75 | - tap: | |
e6be9fb0 | 76 | results: 'tap/**/*.log' |
890bff23 | 77 | failed-tests-mark-build-as-failure: true |
95654431 | 78 | todo-is-failure: false |
890bff23 MJ |
79 | - warnings: |
80 | console-log-parsers: | |
81 | - 'GNU Make + GNU C Compiler (gcc)' | |
82 | total-thresholds: | |
51ca880a | 83 | unstable: |
d2c76ee5 MJ |
84 | total-all: 0 |
85 | total-high: 0 | |
86 | total-normal: 0 | |
87 | total-low: 0 | |
890bff23 MJ |
88 | - archive: |
89 | artifacts: 'build/**' | |
90 | allow-empty: false | |
1f6ad2ae | 91 | - ircbot: |
95654431 | 92 | strategy: new-failure-and-fixed |
1f6ad2ae MJ |
93 | matrix-notifier: only-parent |
94 | channels: | |
95 | - name: '#lttng' | |
890bff23 | 96 | |
4f827afb JR |
97 | - job-template: |
98 | name: dev_{user}_babeltrace_{version}_{buildtype} | |
99 | <<: *babeltrace_version_buildtype_anchor | |
100 | publishers: | |
101 | - tap: | |
e6be9fb0 | 102 | results: 'tap/**/*.log' |
4f827afb JR |
103 | failed-tests-mark-build-as-failure: true |
104 | todo-is-failure: false | |
105 | - warnings: | |
106 | console-log-parsers: | |
107 | - 'GNU Make + GNU C Compiler (gcc)' | |
108 | total-thresholds: | |
51ca880a | 109 | unstable: |
d2c76ee5 MJ |
110 | total-all: 0 |
111 | total-high: 0 | |
112 | total-normal: 0 | |
113 | total-low: 0 | |
4f827afb | 114 | |
890bff23 MJ |
115 | - job-template: |
116 | name: babeltrace_{version}_cppcheck | |
117 | defaults: babeltrace | |
118 | ||
119 | triggers: | |
6cf22a3a MJ |
120 | - pollscm: |
121 | cron: "@daily" | |
890bff23 MJ |
122 | |
123 | builders: | |
124 | - shell: | | |
125 | rm -f babeltrace-cppcheck.xml | |
126 | cppcheck --enable=all --xml --xml-version=2 $WORKSPACE 2> babeltrace-cppcheck.xml | |
127 | ||
128 | publishers: | |
129 | - archive: | |
130 | artifacts: 'babeltrace-cppcheck.xml' | |
131 | allow-empty: false | |
890bff23 MJ |
132 | - cppcheck: |
133 | pattern: 'babeltrace-cppcheck.xml' | |
134 | - email: | |
135 | recipients: 'ci-notification@lists.lttng.org' | |
136 | notify-every-unstable-build: true | |
137 | send-to-individuals: false | |
138 | ||
139 | - job-template: | |
140 | name: babeltrace_{version}_scan-build | |
141 | defaults: babeltrace | |
142 | node: 'x86-64' | |
143 | ||
144 | triggers: | |
6cf22a3a MJ |
145 | - pollscm: |
146 | cron: "@daily" | |
890bff23 MJ |
147 | |
148 | builders: | |
149 | - shell: | |
ef63064f | 150 | !include-raw-escape: scripts/babeltrace/scan-build.sh |
890bff23 MJ |
151 | |
152 | publishers: | |
153 | - html-publisher: | |
154 | name: 'HTML Report' | |
155 | dir: 'scan-build-archive/' | |
156 | files: 'index.html' | |
157 | ||
6cf22a3a MJ |
158 | - job-template: |
159 | name: babeltrace_{version}_coverity | |
160 | defaults: babeltrace | |
161 | node: 'x86-64' | |
162 | ||
163 | triggers: | |
164 | - pollscm: | |
165 | cron: "@daily" | |
166 | ||
167 | wrappers: | |
168 | - workspace-cleanup | |
169 | - timestamps | |
170 | - ansicolor: | |
171 | colormap: xterm | |
172 | - credentials-binding: | |
173 | - username-password-separated: | |
174 | credential-id: babeltrace_coverity_token | |
175 | username: COVERITY_SCAN_PROJECT_NAME | |
176 | password: COVERITY_SCAN_TOKEN | |
177 | builders: | |
178 | - shell: | |
ef63064f | 179 | !include-raw-escape: scripts/common/coverity.sh |
6cf22a3a MJ |
180 | |
181 | publishers: | |
182 | - workspace-cleanup | |
890bff23 MJ |
183 | |
184 | - job-template: | |
185 | name: babeltrace_{version}_pylint | |
186 | defaults: babeltrace | |
187 | node: 'x86-64' | |
188 | ||
189 | scm: [] | |
190 | ||
191 | triggers: | |
6cf22a3a MJ |
192 | - pollscm: |
193 | cron: "@daily" | |
890bff23 MJ |
194 | |
195 | builders: | |
196 | - copyartifact: | |
ce1e1df3 | 197 | project: babeltrace_{version}_build/arch=x86-64,build=std,conf=python-bindings |
890bff23 MJ |
198 | which-build: last-successful |
199 | stable: true | |
200 | filter: 'build/**' | |
b0afcb47 | 201 | target: 'deps/babeltrace' |
890bff23 | 202 | - shell: |
ef63064f | 203 | !include-raw-escape: scripts/babeltrace/pylint.sh |
890bff23 MJ |
204 | |
205 | publishers: | |
206 | - archive: | |
207 | artifacts: 'pep8.out,pylint.out' | |
890bff23 MJ |
208 | - violations: |
209 | pep8: | |
210 | pattern: pep8.out | |
211 | min: 10 | |
212 | max: 999 | |
213 | unstable: 999 | |
214 | pylint: | |
215 | pattern: pylint.out | |
216 | min: 10 | |
217 | max: 999 | |
218 | unstable: 999 | |
219 | - email: | |
220 | recipients: 'ci-notification@lists.lttng.org' | |
221 | notify-every-unstable-build: true | |
222 | send-to-individuals: false | |
223 | ||
556e87cc JR |
224 | # Use - in version number since yaml anchor do not support dot |
225 | - babeltrace_version_glib-2-22-5_anchor: &babeltrace_version_glib-2-22-5_anchor | |
226 | name: 'babeltrace_version_glib_anchor' | |
227 | defaults: babeltrace | |
228 | node: 'x86-64' | |
229 | ||
230 | builders: | |
231 | - inject: | |
232 | properties-content: | | |
233 | LD_LIBRARY_PATH=$WORKSPACE/glib-2.22.5/BUILD_RESULT/lib | |
234 | PKG_CONFIG_PATH=$WORKSPACE/glib-2.22.5/BUILD_RESULT/lib/pkgconfig | |
235 | arch=x86-64 | |
236 | conf=std | |
237 | build=std | |
238 | - shell: | | |
239 | wget http://ftp.gnome.org/pub/gnome/sources/glib/2.22/glib-2.22.5.tar.gz | |
240 | tar xvf glib-2.22.5.tar.gz | |
241 | cd glib-2.22.5 | |
242 | mkdir BUILD_RESULT | |
243 | ./configure --prefix=$WORKSPACE/glib-2.22.5/BUILD_RESULT | |
244 | make -j `nproc` | |
245 | make install | |
246 | ||
247 | - shell: | |
248 | !include-raw-escape: scripts/babeltrace/build.sh | |
249 | ||
250 | - job-template: | |
251 | name: babeltrace_{version}_glib-2.22.5 | |
252 | triggers: | |
253 | - pollscm: | |
254 | cron: "@daily" | |
255 | <<: *babeltrace_version_glib-2-22-5_anchor | |
256 | ||
257 | - job-template: | |
258 | name: dev_{user}_babeltrace_{version}_glib-2.22.5 | |
259 | <<: *babeltrace_version_glib-2-22-5_anchor | |
890bff23 | 260 | |
890bff23 MJ |
261 | ## Project |
262 | - project: | |
263 | name: babeltrace | |
4f827afb JR |
264 | github_user: efficios |
265 | github_name: babeltrace | |
890bff23 | 266 | version: |
ecf9997a MJ |
267 | - stable-1.2 |
268 | - stable-1.3 | |
269 | - stable-1.4 | |
270 | - master | |
890bff23 | 271 | jobs: |
57ae8ff4 MJ |
272 | - 'babeltrace_{version}_{buildtype}': |
273 | buildtype: build | |
890bff23 | 274 | arch: !!python/tuple [x86-32, x86-64] |
9d0846f3 | 275 | build: !!python/tuple [std, oot, dist] |
87e41bca | 276 | conf: !!python/tuple [std, static, python-bindings] |
0628a9d8 MJ |
277 | - 'babeltrace_{version}_{buildtype}': |
278 | buildtype: clangbuild | |
279 | arch: !!python/tuple [x86-32, x86-64] | |
280 | build: !!python/tuple [clang] | |
281 | conf: !!python/tuple [std, static] | |
57ae8ff4 MJ |
282 | - 'babeltrace_{version}_{buildtype}': |
283 | buildtype: portbuild | |
c56b9301 | 284 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el] |
9d0846f3 | 285 | build: !!python/tuple [std] |
87e41bca MJ |
286 | conf: !!python/tuple [std, static, python-bindings] |
287 | - 'babeltrace_{version}_{buildtype}': | |
288 | buildtype: solarisbuild | |
289 | arch: !!python/tuple [solaris10, solaris11] | |
290 | build: !!python/tuple [std] | |
291 | conf: !!python/tuple [std, static] | |
292 | version: | |
293 | - stable-1.3 | |
ecf9997a | 294 | - stable-1.4 |
87e41bca | 295 | - master |
221450b6 MJ |
296 | - 'babeltrace_{version}_{buildtype}': |
297 | buildtype: macosxbuild | |
298 | arch: !!python/tuple [macosx] | |
299 | build: !!python/tuple [std] | |
300 | conf: !!python/tuple [std, static] | |
301 | version: | |
ecf9997a | 302 | - stable-1.4 |
221450b6 | 303 | - master |
890bff23 MJ |
304 | - 'babeltrace_{version}_cppcheck' |
305 | - 'babeltrace_{version}_scan-build' | |
306 | - 'babeltrace_{version}_pylint' | |
6cf22a3a MJ |
307 | - 'babeltrace_{version}_coverity': |
308 | version: master | |
556e87cc JR |
309 | - 'babeltrace_{version}_glib-2.22.5': |
310 | version: master | |
311 | - 'dev_{user}_babeltrace_{version}_glib-2.22.5': | |
312 | user: jgalar | |
313 | github_user: jgalar | |
314 | github_name: babeltrace | |
315 | version: | |
316 | - master-staging | |
4f827afb JR |
317 | - 'dev_{user}_babeltrace_{version}_{buildtype}': |
318 | user: jgalar | |
319 | github_user: jgalar | |
320 | github_name: babeltrace | |
321 | buildtype: build | |
322 | version: | |
323 | - master-staging | |
324 | - stable-1.2-staging | |
325 | - stable-1.3-staging | |
ecf9997a | 326 | - stable-1.4-staging |
4f827afb JR |
327 | arch: !!python/tuple [x86-32, x86-64] |
328 | build: !!python/tuple [std, oot, dist] | |
329 | conf: !!python/tuple [std, static, python-bindings] | |
890bff23 | 330 |