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