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} | |
33 | ||
34 | triggers: | |
6cf22a3a MJ |
35 | - pollscm: |
36 | cron: "@hourly" | |
890bff23 MJ |
37 | |
38 | properties: | |
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: | |
75 | results: 'tap/**/*.tap' | |
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 MJ |
82 | unstable: |
83 | total-all: 1 | |
84 | total-high: 1 | |
85 | total-normal: 1 | |
86 | total-low: 1 | |
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: | |
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: | |
51ca880a MJ |
108 | unstable: |
109 | total-all: 1 | |
110 | total-high: 1 | |
111 | total-normal: 1 | |
112 | total-low: 1 | |
4f827afb JR |
113 | - ircbot: |
114 | strategy: new-failure-and-fixed | |
115 | notify-committers: True | |
116 | notify-fixers: True | |
4f827afb JR |
117 | matrix-notifier: only-configurations |
118 | channels: | |
119 | - name: '#lttng' | |
120 | ||
890bff23 MJ |
121 | - job-template: |
122 | name: babeltrace_{version}_cppcheck | |
123 | defaults: babeltrace | |
124 | ||
125 | triggers: | |
6cf22a3a MJ |
126 | - pollscm: |
127 | cron: "@daily" | |
890bff23 MJ |
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 | |
890bff23 MJ |
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: | |
6cf22a3a MJ |
151 | - pollscm: |
152 | cron: "@daily" | |
890bff23 MJ |
153 | |
154 | builders: | |
155 | - shell: | |
ef63064f | 156 | !include-raw-escape: scripts/babeltrace/scan-build.sh |
890bff23 MJ |
157 | |
158 | publishers: | |
159 | - html-publisher: | |
160 | name: 'HTML Report' | |
161 | dir: 'scan-build-archive/' | |
162 | files: 'index.html' | |
163 | ||
6cf22a3a MJ |
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: | |
ef63064f | 185 | !include-raw-escape: scripts/common/coverity.sh |
6cf22a3a MJ |
186 | |
187 | publishers: | |
188 | - workspace-cleanup | |
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 MJ |
204 | which-build: last-successful |
205 | stable: true | |
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: |
ef63064f | 273 | !include: jobs/inc/babeltrace-versions.yaml.inc |
890bff23 | 274 | jobs: |
57ae8ff4 MJ |
275 | - 'babeltrace_{version}_{buildtype}': |
276 | buildtype: build | |
890bff23 | 277 | arch: !!python/tuple [x86-32, x86-64] |
9d0846f3 | 278 | build: !!python/tuple [std, oot, dist] |
87e41bca | 279 | conf: !!python/tuple [std, static, python-bindings] |
57ae8ff4 MJ |
280 | - 'babeltrace_{version}_{buildtype}': |
281 | buildtype: portbuild | |
c56b9301 | 282 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el] |
9d0846f3 | 283 | build: !!python/tuple [std] |
87e41bca MJ |
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 | |
890bff23 MJ |
293 | - 'babeltrace_{version}_cppcheck' |
294 | - 'babeltrace_{version}_scan-build' | |
295 | - 'babeltrace_{version}_pylint' | |
6cf22a3a MJ |
296 | - 'babeltrace_{version}_coverity': |
297 | version: master | |
556e87cc JR |
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 | |
4f827afb JR |
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] | |
890bff23 | 318 |