Add staging branch for jgalar
[lttng-ci.git] / jobs / babeltrace.yaml
CommitLineData
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
234
890bff23
MJ
235## Project
236- project:
237 name: babeltrace
4f827afb
JR
238 github_user: efficios
239 github_name: babeltrace
890bff23 240 version:
ef63064f 241 !include: jobs/inc/babeltrace-versions.yaml.inc
890bff23 242 jobs:
57ae8ff4
MJ
243 - 'babeltrace_{version}_{buildtype}':
244 buildtype: build
890bff23 245 arch: !!python/tuple [x86-32, x86-64]
9d0846f3 246 build: !!python/tuple [std, oot, dist]
87e41bca 247 conf: !!python/tuple [std, static, python-bindings]
57ae8ff4
MJ
248 - 'babeltrace_{version}_{buildtype}':
249 buildtype: portbuild
c56b9301 250 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
9d0846f3 251 build: !!python/tuple [std]
87e41bca
MJ
252 conf: !!python/tuple [std, static, python-bindings]
253 - 'babeltrace_{version}_{buildtype}':
254 buildtype: solarisbuild
255 arch: !!python/tuple [solaris10, solaris11]
256 build: !!python/tuple [std]
257 conf: !!python/tuple [std, static]
258 version:
259 - stable-1.3
260 - master
890bff23
MJ
261 - 'babeltrace_{version}_cppcheck'
262 - 'babeltrace_{version}_scan-build'
263 - 'babeltrace_{version}_pylint'
6cf22a3a
MJ
264 - 'babeltrace_{version}_coverity':
265 version: master
4f827afb
JR
266 - 'dev_{user}_babeltrace_{version}_{buildtype}':
267 user: jgalar
268 github_user: jgalar
269 github_name: babeltrace
270 buildtype: build
271 version:
272 - master-staging
273 - stable-1.2-staging
274 - stable-1.3-staging
275 arch: !!python/tuple [x86-32, x86-64]
276 build: !!python/tuple [std, oot, dist]
277 conf: !!python/tuple [std, static, python-bindings]
890bff23 278
This page took 0.032951 seconds and 4 git commands to generate.