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