Commit | Line | Data |
---|---|---|
ae855ba1 MJ |
1 | # {project}_{version}_{jobtype} |
2 | # librseq_stable-0.8_build | |
3 | # | |
4 | # jobtypes: | |
5 | # - build | |
6 | # - portbuild | |
7 | # - cppcheck | |
8 | # - coverity | |
9 | # - scan-build | |
10 | # - pylint | |
11 | ||
12 | - defaults: | |
13 | name: librseq | |
14 | description: | | |
15 | ||
16 | <p>Job is managed by Jenkins Job Builder.</p> | |
17 | ||
18 | project-type: freestyle | |
19 | ||
20 | wrappers: | |
21 | - ansicolor | |
22 | - timeout: | |
23 | timeout: 10 | |
24 | fail: true | |
733146f2 | 25 | type: no-activity |
ae855ba1 MJ |
26 | - timestamps |
27 | - workspace-cleanup: | |
28 | clean-if: | |
29 | - failure: false | |
30 | ||
31 | scm: | |
32 | - git: | |
4d27af8f | 33 | url: https://github.com/{github_user}/{github_name}.git |
ae855ba1 MJ |
34 | browser: githubweb |
35 | browser-url: https://github.com/{github_user}/{github_name} | |
36 | branches: | |
37 | - origin/{version} | |
38 | basedir: src/librseq | |
39 | skip-tag: true | |
40 | ||
41 | triggers: | |
42 | - pollscm: | |
43 | cron: "@hourly" | |
44 | ||
45 | properties: | |
46 | - inject: | |
47 | properties-content: | | |
48 | PROJECT_NAME=librseq | |
49 | - build-discarder: | |
50 | num-to-keep: 2 | |
51 | - github: | |
52 | url: https://github.com/{github_user}/{github_name} | |
53 | ||
54 | ||
55 | ## Anchors | |
56 | - librseq_build_axes_defaults: &librseq_build_axes_defaults | |
57 | name: 'librseq_build_axes_defaults' | |
58 | project-type: matrix | |
59 | node: 'master' # Applies only to matrix flyweight task | |
60 | axes: | |
61 | - axis: | |
62 | type: slave | |
63 | name: arch | |
64 | values: '{obj:arch}' | |
65 | - axis: | |
66 | type: user-defined | |
67 | name: conf | |
68 | values: '{obj:conf}' | |
69 | - axis: | |
70 | type: user-defined | |
71 | name: build | |
72 | values: '{obj:build}' | |
73 | ||
74 | - librseq_build_axes_cc: &librseq_build_axes_cc | |
75 | name: 'librseq_build_axes_cc' | |
76 | project-type: matrix | |
77 | node: 'master' # Applies only to matrix flyweight task | |
78 | axes: | |
79 | - axis: | |
80 | type: slave | |
81 | name: arch | |
82 | values: '{obj:arch}' | |
83 | - axis: | |
84 | type: user-defined | |
85 | name: conf | |
86 | values: '{obj:conf}' | |
87 | - axis: | |
88 | type: user-defined | |
89 | name: build | |
90 | values: '{obj:build}' | |
91 | - axis: | |
92 | type: user-defined | |
93 | name: cc | |
94 | values: '{obj:cc}' | |
95 | ||
96 | - librseq_build_builders_defaults: &librseq_build_builders_defaults | |
97 | name: 'librseq_build_builders_defaults' | |
98 | builders: | |
99 | - shell: | |
51c9c62d MJ |
100 | !include-raw-escape: |
101 | - scripts/common/print.sh | |
102 | - scripts/librseq/build.sh | |
ae855ba1 MJ |
103 | |
104 | - librseq_build_publishers_defaults: &librseq_build_publishers_defaults | |
105 | name: 'librseq_build_publishers_defaults' | |
106 | publishers: | |
10c9bf80 MJ |
107 | - tap: |
108 | results: 'tap/**/*.log' | |
109 | fail-if-no-results: true | |
110 | failed-tests-mark-build-as-failure: true | |
111 | todo-is-failure: false | |
ae855ba1 MJ |
112 | - warnings: |
113 | console-log-parsers: | |
114 | - 'GNU Make + GNU C Compiler (gcc)' | |
115 | total-thresholds: | |
116 | unstable: | |
117 | total-all: 0 | |
118 | total-high: 0 | |
119 | total-normal: 0 | |
120 | total-low: 0 | |
121 | - archive: | |
10c9bf80 | 122 | artifacts: 'build/**,tap/**' |
ae855ba1 | 123 | allow-empty: false |
ae855ba1 MJ |
124 | - email-ext: |
125 | recipients: '{obj:email_to}' | |
126 | reply-to: ci-notification@lists.lttng.org | |
127 | always: false | |
128 | unstable: false | |
129 | first-failure: true | |
130 | first-unstable: true | |
131 | not-built: false | |
132 | aborted: false | |
133 | regression: false | |
134 | failure: false | |
135 | second-failure: false | |
136 | improvement: false | |
137 | still-failing: false | |
138 | success: false | |
139 | fixed: false | |
140 | fixed-unhealthy: true | |
141 | still-unstable: false | |
142 | pre-build: false | |
143 | matrix-trigger: only-parent | |
144 | send-to: | |
145 | - recipients | |
146 | ||
10c9bf80 MJ |
147 | - librseq_build_publishers_gerrit: &librseq_build_publishers_gerrit |
148 | name: 'librseq_build_publishers_gerrit' | |
149 | publishers: | |
150 | - tap: | |
151 | results: 'tap/**/*.log' | |
152 | fail-if-no-results: true | |
153 | failed-tests-mark-build-as-failure: true | |
154 | todo-is-failure: false | |
155 | - warnings: | |
156 | console-log-parsers: | |
157 | - 'GNU Make + GNU C Compiler (gcc)' | |
158 | total-thresholds: | |
159 | failed: | |
160 | total-all: 0 | |
161 | total-high: 0 | |
162 | total-normal: 0 | |
163 | total-low: 0 | |
164 | - archive: | |
165 | artifacts: 'build/**,tap/**' | |
166 | allow-empty: false | |
167 | ||
168 | ||
ae855ba1 MJ |
169 | ## Templates |
170 | - job-template: | |
171 | name: librseq_{version}_{buildtype} | |
172 | defaults: librseq | |
173 | ||
174 | <<: *librseq_build_axes_defaults | |
175 | <<: *librseq_build_builders_defaults | |
176 | <<: *librseq_build_publishers_defaults | |
177 | ||
178 | - job-template: | |
179 | name: librseq_{version}_{cctype} | |
180 | defaults: librseq | |
181 | ||
182 | <<: *librseq_build_axes_cc | |
183 | <<: *librseq_build_builders_defaults | |
184 | <<: *librseq_build_publishers_defaults | |
185 | ||
186 | - job-template: | |
187 | name: librseq_{version}_cppcheck | |
188 | defaults: librseq | |
189 | ||
190 | triggers: | |
191 | - pollscm: | |
192 | cron: "@daily" | |
193 | ||
194 | builders: | |
195 | - shell: | | |
196 | rm -f cppcheck-result.xml | |
197 | cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/librseq 2> cppcheck-result.xml | |
198 | ||
199 | publishers: | |
200 | - archive: | |
201 | artifacts: 'cppcheck-result.xml' | |
202 | allow-empty: false | |
203 | - cppcheck: | |
204 | pattern: 'cppcheck-result.xml' | |
205 | - email-ext: | |
206 | recipients: '{obj:email_to}' | |
207 | reply-to: ci-notification@lists.lttng.org | |
208 | always: false | |
209 | unstable: false | |
210 | first-failure: true | |
211 | first-unstable: false | |
212 | not-built: false | |
213 | aborted: false | |
214 | regression: false | |
215 | failure: false | |
216 | second-failure: false | |
217 | improvement: false | |
218 | still-failing: false | |
219 | success: false | |
220 | fixed: false | |
221 | fixed-unhealthy: true | |
222 | still-unstable: true | |
223 | pre-build: false | |
224 | matrix-trigger: only-parent | |
225 | send-to: | |
226 | - recipients | |
227 | ||
10c9bf80 MJ |
228 | - job-template: |
229 | name: dev_gerrit_librseq_{buildtype} | |
230 | defaults: librseq | |
231 | concurrent: true | |
232 | ||
233 | scm: | |
234 | - git: | |
235 | url: https://review.lttng.org/librseq | |
236 | refspec: 'refs/changes/*:refs/changes/*' | |
237 | branches: | |
238 | - '$GERRIT_REFSPEC' | |
239 | basedir: src/librseq | |
240 | skip-tag: true | |
241 | ||
242 | triggers: | |
243 | - gerrit: | |
244 | trigger-on: | |
245 | - comment-added-event: | |
246 | approval-category: 'CI-Build' | |
247 | approval-value: 1 | |
248 | projects: | |
249 | - project-compare-type: 'PLAIN' | |
250 | project-pattern: 'librseq' | |
251 | branches: | |
252 | - branch-compare-type: 'ANT' | |
253 | branch-pattern: '**' | |
254 | ||
255 | <<: *librseq_build_axes_defaults | |
256 | <<: *librseq_build_builders_defaults | |
257 | <<: *librseq_build_publishers_gerrit | |
258 | ||
259 | properties: | |
260 | - inject: | |
261 | properties-content: | | |
262 | PROJECT_NAME=librseq | |
263 | - build-discarder: | |
264 | days-to-keep: 1 | |
265 | - throttle: | |
266 | option: 'category' | |
267 | categories: | |
268 | - 'gerrit-{buildtype}' | |
269 | ||
ae855ba1 MJ |
270 | - job-template: |
271 | name: librseq_{version}_scan-build | |
272 | defaults: librseq | |
273 | node: 'amd64' | |
274 | ||
275 | triggers: | |
276 | - pollscm: | |
277 | cron: "@daily" | |
278 | ||
279 | builders: | |
280 | - shell: | |
281 | !include-raw-escape: scripts/common/scan-build.sh | |
282 | ||
283 | publishers: | |
284 | - html-publisher: | |
285 | name: 'HTML Report' | |
286 | dir: 'scan-build-archive/' | |
287 | files: 'index.html' | |
288 | ||
289 | - job-template: | |
290 | name: librseq_{version}_coverity | |
291 | defaults: librseq | |
292 | node: 'amd64' | |
293 | ||
294 | triggers: | |
295 | - pollscm: | |
296 | cron: "@daily" | |
297 | ||
298 | wrappers: | |
299 | - ansicolor | |
300 | - timeout: | |
733146f2 | 301 | timeout: 10 |
ae855ba1 | 302 | fail: true |
733146f2 | 303 | type: no-activity |
ae855ba1 MJ |
304 | - timestamps |
305 | - workspace-cleanup: | |
306 | clean-if: | |
307 | - failure: false | |
308 | - credentials-binding: | |
309 | - username-password-separated: | |
310 | credential-id: librseq_coverity_token | |
311 | username: COVERITY_SCAN_PROJECT_NAME | |
312 | password: COVERITY_SCAN_TOKEN | |
313 | ||
314 | builders: | |
315 | - shell: | |
316 | !include-raw-escape: scripts/common/coverity.sh | |
317 | ||
318 | publishers: | |
319 | - workspace-cleanup | |
320 | - archive: | |
321 | artifacts: 'analysis-results.tgz,cov-int/**' | |
322 | allow-empty: false | |
323 | ||
324 | - view-template: | |
72600ad8 | 325 | name: 'Librseq' |
ae855ba1 MJ |
326 | description: 'Restartable sequences' |
327 | view-type: list | |
b4c748a8 | 328 | regex: 'librseq_.*' |
ae855ba1 MJ |
329 | |
330 | ||
331 | ## Project | |
332 | - project: | |
333 | name: librseq | |
334 | github_user: compudj | |
335 | github_name: librseq | |
336 | email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com' | |
337 | version: | |
338 | - master | |
339 | jobs: | |
340 | - 'librseq_{version}_{buildtype}': | |
341 | buildtype: build | |
342 | arch: !!python/tuple [amd64] | |
cbabc427 | 343 | build: !!python/tuple [std, oot, dist, oot-dist] |
ae855ba1 MJ |
344 | conf: !!python/tuple [std, static] |
345 | - 'librseq_{version}_{cctype}': | |
346 | cctype: gccbuild | |
347 | arch: !!python/tuple [amd64] | |
348 | build: !!python/tuple [std] | |
349 | conf: !!python/tuple [std, static] | |
350 | cc: !!python/tuple [gcc-4.8, gcc-5, gcc-6, gcc-7, gcc-8] | |
351 | - 'librseq_{version}_{cctype}': | |
352 | cctype: clangbuild | |
353 | arch: !!python/tuple [amd64] | |
354 | build: !!python/tuple [std] | |
355 | conf: !!python/tuple [std, static] | |
356 | cc: !!python/tuple [clang-3.9, clang-4.0, clang-6.0, clang-7] | |
357 | - 'librseq_{version}_{buildtype}': | |
358 | buildtype: portbuild | |
359 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386] | |
360 | build: !!python/tuple [std] | |
361 | conf: !!python/tuple [std, static] | |
362 | # - 'librseq_{version}_cppcheck' | |
363 | # - 'librseq_{version}_scan-build' | |
364 | # - 'librseq_{version}_coverity': | |
365 | # version: master | |
366 | ||
10c9bf80 MJ |
367 | - project: |
368 | name: gerrit-librseq | |
369 | github_user: compudj | |
370 | github_name: librseq | |
371 | jobs: | |
372 | - 'dev_gerrit_librseq_{buildtype}': | |
373 | buildtype: build | |
374 | arch: !!python/tuple [amd64] | |
375 | build: !!python/tuple [std, oot, dist, oot-dist] | |
376 | conf: !!python/tuple [std, static] | |
377 | ||
ae855ba1 MJ |
378 | - project: |
379 | name: librseq-views | |
380 | views: | |
72600ad8 | 381 | - Librseq |