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: | |
18 | daysToKeep: -1 | |
19 | numToKeep: 2 | |
20 | artifactDaysToKeep: -1 | |
21 | artifactNumToKeep: -1 | |
22 | ||
23 | wrappers: | |
24 | - workspace-cleanup | |
25 | - timestamps | |
6cf22a3a MJ |
26 | - ansicolor: |
27 | colormap: xterm | |
890bff23 MJ |
28 | |
29 | scm: | |
30 | - git: | |
4f827afb | 31 | url: git://github.com/{github_user}/{github_name}.git |
890bff23 | 32 | browser: githubweb |
4f827afb | 33 | browser-url: https://github.com/{github_user}/{github_name} |
890bff23 MJ |
34 | branches: |
35 | - origin/{version} | |
36 | ||
37 | triggers: | |
6cf22a3a MJ |
38 | - pollscm: |
39 | cron: "@hourly" | |
890bff23 MJ |
40 | |
41 | properties: | |
42 | - github: | |
4f827afb | 43 | url: https://github.com/{github_user}/{github_name} |
890bff23 MJ |
44 | |
45 | ||
46 | ## Templates | |
06264d10 JR |
47 | |
48 | - babeltrace_version_buildtype_anchor: &babeltrace_version_buildtype_anchor | |
49 | name: 'babeltrace_version_buildtype_anchor' | |
890bff23 MJ |
50 | defaults: babeltrace |
51 | ||
52 | project-type: matrix | |
ca8c6144 | 53 | node: 'master' # Applies only to matrix flyweight task |
890bff23 MJ |
54 | axes: |
55 | - axis: | |
56 | type: slave | |
57 | name: arch | |
58 | values: '{obj:arch}' | |
59 | - axis: | |
60 | type: user-defined | |
61 | name: conf | |
87e41bca | 62 | values: '{obj:conf}' |
890bff23 MJ |
63 | - axis: |
64 | type: user-defined | |
65 | name: build | |
9d0846f3 | 66 | values: '{obj:build}' |
890bff23 MJ |
67 | |
68 | builders: | |
69 | - shell: | |
ef63064f | 70 | !include-raw-escape: scripts/babeltrace/build.sh |
890bff23 | 71 | |
06264d10 JR |
72 | - job-template: |
73 | name: babeltrace_{version}_{buildtype} | |
74 | <<: *babeltrace_version_buildtype_anchor | |
890bff23 MJ |
75 | # TODO: Scan for open tasks |
76 | publishers: | |
77 | - tap: | |
78 | results: 'tap/**/*.tap' | |
79 | failed-tests-mark-build-as-failure: true | |
95654431 | 80 | todo-is-failure: false |
890bff23 MJ |
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 | |
1f6ad2ae | 93 | - ircbot: |
95654431 | 94 | strategy: new-failure-and-fixed |
1f6ad2ae MJ |
95 | matrix-notifier: only-parent |
96 | channels: | |
97 | - name: '#lttng' | |
890bff23 | 98 | |
4f827afb JR |
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 | ||
890bff23 MJ |
125 | - job-template: |
126 | name: babeltrace_{version}_cppcheck | |
127 | defaults: babeltrace | |
128 | ||
129 | triggers: | |
6cf22a3a MJ |
130 | - pollscm: |
131 | cron: "@daily" | |
890bff23 MJ |
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 | |
890bff23 MJ |
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: | |
6cf22a3a MJ |
155 | - pollscm: |
156 | cron: "@daily" | |
890bff23 MJ |
157 | |
158 | builders: | |
159 | - shell: | |
ef63064f | 160 | !include-raw-escape: scripts/babeltrace/scan-build.sh |
890bff23 MJ |
161 | |
162 | publishers: | |
163 | - html-publisher: | |
164 | name: 'HTML Report' | |
165 | dir: 'scan-build-archive/' | |
166 | files: 'index.html' | |
167 | ||
6cf22a3a MJ |
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: | |
ef63064f | 189 | !include-raw-escape: scripts/common/coverity.sh |
6cf22a3a MJ |
190 | |
191 | publishers: | |
192 | - workspace-cleanup | |
890bff23 MJ |
193 | |
194 | - job-template: | |
195 | name: babeltrace_{version}_pylint | |
196 | defaults: babeltrace | |
197 | node: 'x86-64' | |
198 | ||
199 | scm: [] | |
200 | ||
201 | triggers: | |
6cf22a3a MJ |
202 | - pollscm: |
203 | cron: "@daily" | |
890bff23 MJ |
204 | |
205 | builders: | |
206 | - copyartifact: | |
ce1e1df3 | 207 | project: babeltrace_{version}_build/arch=x86-64,build=std,conf=python-bindings |
890bff23 MJ |
208 | which-build: last-successful |
209 | stable: true | |
210 | filter: 'build/**' | |
b0afcb47 | 211 | target: 'deps/babeltrace' |
890bff23 | 212 | - shell: |
ef63064f | 213 | !include-raw-escape: scripts/babeltrace/pylint.sh |
890bff23 MJ |
214 | |
215 | publishers: | |
216 | - archive: | |
217 | artifacts: 'pep8.out,pylint.out' | |
890bff23 MJ |
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 | ||
556e87cc JR |
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 | |
890bff23 | 270 | |
890bff23 MJ |
271 | ## Project |
272 | - project: | |
273 | name: babeltrace | |
4f827afb JR |
274 | github_user: efficios |
275 | github_name: babeltrace | |
890bff23 | 276 | version: |
ef63064f | 277 | !include: jobs/inc/babeltrace-versions.yaml.inc |
890bff23 | 278 | jobs: |
57ae8ff4 MJ |
279 | - 'babeltrace_{version}_{buildtype}': |
280 | buildtype: build | |
890bff23 | 281 | arch: !!python/tuple [x86-32, x86-64] |
9d0846f3 | 282 | build: !!python/tuple [std, oot, dist] |
87e41bca | 283 | conf: !!python/tuple [std, static, python-bindings] |
57ae8ff4 MJ |
284 | - 'babeltrace_{version}_{buildtype}': |
285 | buildtype: portbuild | |
c56b9301 | 286 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el] |
9d0846f3 | 287 | build: !!python/tuple [std] |
87e41bca MJ |
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 | |
890bff23 MJ |
297 | - 'babeltrace_{version}_cppcheck' |
298 | - 'babeltrace_{version}_scan-build' | |
299 | - 'babeltrace_{version}_pylint' | |
6cf22a3a MJ |
300 | - 'babeltrace_{version}_coverity': |
301 | version: master | |
556e87cc JR |
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 | |
4f827afb JR |
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] | |
890bff23 | 322 |