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