Cleanup and warnings
[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 logrotate:
18 numToKeep: 2
19
20 wrappers:
21 - workspace-cleanup
22 - timestamps
23 - ansicolor:
24 colormap: xterm
25
26 scm:
27 - git:
28 url: git://github.com/{github_user}/{github_name}.git
29 browser: githubweb
30 browser-url: https://github.com/{github_user}/{github_name}
31 branches:
32 - origin/{version}
33
34 triggers:
35 - pollscm:
36 cron: "@hourly"
37
38 properties:
39 - github:
40 url: https://github.com/{github_user}/{github_name}
41
42
43 ## Templates
44
45 - babeltrace_version_buildtype_anchor: &babeltrace_version_buildtype_anchor
46 name: 'babeltrace_version_buildtype_anchor'
47 defaults: babeltrace
48
49 project-type: matrix
50 node: 'master' # Applies only to matrix flyweight task
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: '{obj:conf}'
60 - axis:
61 type: user-defined
62 name: build
63 values: '{obj:build}'
64
65 builders:
66 - shell:
67 !include-raw-escape: scripts/babeltrace/build.sh
68
69 - job-template:
70 name: babeltrace_{version}_{buildtype}
71 <<: *babeltrace_version_buildtype_anchor
72 # TODO: Scan for open tasks
73 publishers:
74 - tap:
75 results: 'tap/**/*.tap'
76 failed-tests-mark-build-as-failure: true
77 todo-is-failure: false
78 - warnings:
79 console-log-parsers:
80 - 'GNU Make + GNU C Compiler (gcc)'
81 total-thresholds:
82 unstable:
83 total-all: 1
84 total-high: 1
85 total-normal: 1
86 total-low: 1
87 - archive:
88 artifacts: 'build/**'
89 allow-empty: false
90 - ircbot:
91 strategy: new-failure-and-fixed
92 matrix-notifier: only-parent
93 channels:
94 - name: '#lttng'
95
96 - job-template:
97 name: dev_{user}_babeltrace_{version}_{buildtype}
98 <<: *babeltrace_version_buildtype_anchor
99 publishers:
100 - tap:
101 results: 'tap/**/*.tap'
102 failed-tests-mark-build-as-failure: true
103 todo-is-failure: false
104 - warnings:
105 console-log-parsers:
106 - 'GNU Make + GNU C Compiler (gcc)'
107 total-thresholds:
108 unstable:
109 total-all: 1
110 total-high: 1
111 total-normal: 1
112 total-low: 1
113 - ircbot:
114 strategy: new-failure-and-fixed
115 notify-committers: True
116 notify-fixers: True
117 matrix-notifier: only-configurations
118 channels:
119 - name: '#lttng'
120
121 - job-template:
122 name: babeltrace_{version}_cppcheck
123 defaults: babeltrace
124
125 triggers:
126 - pollscm:
127 cron: "@daily"
128
129 builders:
130 - shell: |
131 rm -f babeltrace-cppcheck.xml
132 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE 2> babeltrace-cppcheck.xml
133
134 publishers:
135 - archive:
136 artifacts: 'babeltrace-cppcheck.xml'
137 allow-empty: false
138 - cppcheck:
139 pattern: 'babeltrace-cppcheck.xml'
140 - email:
141 recipients: 'ci-notification@lists.lttng.org'
142 notify-every-unstable-build: true
143 send-to-individuals: false
144
145 - job-template:
146 name: babeltrace_{version}_scan-build
147 defaults: babeltrace
148 node: 'x86-64'
149
150 triggers:
151 - pollscm:
152 cron: "@daily"
153
154 builders:
155 - shell:
156 !include-raw-escape: scripts/babeltrace/scan-build.sh
157
158 publishers:
159 - html-publisher:
160 name: 'HTML Report'
161 dir: 'scan-build-archive/'
162 files: 'index.html'
163
164 - job-template:
165 name: babeltrace_{version}_coverity
166 defaults: babeltrace
167 node: 'x86-64'
168
169 triggers:
170 - pollscm:
171 cron: "@daily"
172
173 wrappers:
174 - workspace-cleanup
175 - timestamps
176 - ansicolor:
177 colormap: xterm
178 - credentials-binding:
179 - username-password-separated:
180 credential-id: babeltrace_coverity_token
181 username: COVERITY_SCAN_PROJECT_NAME
182 password: COVERITY_SCAN_TOKEN
183 builders:
184 - shell:
185 !include-raw-escape: scripts/common/coverity.sh
186
187 publishers:
188 - workspace-cleanup
189
190 - job-template:
191 name: babeltrace_{version}_pylint
192 defaults: babeltrace
193 node: 'x86-64'
194
195 scm: []
196
197 triggers:
198 - pollscm:
199 cron: "@daily"
200
201 builders:
202 - copyartifact:
203 project: babeltrace_{version}_build/arch=x86-64,build=std,conf=python-bindings
204 which-build: last-successful
205 stable: true
206 filter: 'build/**'
207 target: 'deps/babeltrace'
208 - shell:
209 !include-raw-escape: scripts/babeltrace/pylint.sh
210
211 publishers:
212 - archive:
213 artifacts: 'pep8.out,pylint.out'
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
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
266
267 ## Project
268 - project:
269 name: babeltrace
270 github_user: efficios
271 github_name: babeltrace
272 version:
273 !include: jobs/inc/babeltrace-versions.yaml.inc
274 jobs:
275 - 'babeltrace_{version}_{buildtype}':
276 buildtype: build
277 arch: !!python/tuple [x86-32, x86-64]
278 build: !!python/tuple [std, oot, dist]
279 conf: !!python/tuple [std, static, python-bindings]
280 - 'babeltrace_{version}_{buildtype}':
281 buildtype: portbuild
282 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
283 build: !!python/tuple [std]
284 conf: !!python/tuple [std, static, python-bindings]
285 - 'babeltrace_{version}_{buildtype}':
286 buildtype: solarisbuild
287 arch: !!python/tuple [solaris10, solaris11]
288 build: !!python/tuple [std]
289 conf: !!python/tuple [std, static]
290 version:
291 - stable-1.3
292 - master
293 - 'babeltrace_{version}_cppcheck'
294 - 'babeltrace_{version}_scan-build'
295 - 'babeltrace_{version}_pylint'
296 - 'babeltrace_{version}_coverity':
297 version: master
298 - 'babeltrace_{version}_glib-2.22.5':
299 version: master
300 - 'dev_{user}_babeltrace_{version}_glib-2.22.5':
301 user: jgalar
302 github_user: jgalar
303 github_name: babeltrace
304 version:
305 - master-staging
306 - 'dev_{user}_babeltrace_{version}_{buildtype}':
307 user: jgalar
308 github_user: jgalar
309 github_name: babeltrace
310 buildtype: build
311 version:
312 - master-staging
313 - stable-1.2-staging
314 - stable-1.3-staging
315 arch: !!python/tuple [x86-32, x86-64]
316 build: !!python/tuple [std, oot, dist]
317 conf: !!python/tuple [std, static, python-bindings]
318
This page took 0.091336 seconds and 5 git commands to generate.