Use yaml anchor in preparation of developer jobs
[lttng-ci.git] / jobs / babeltrace.yaml
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
26 - ansicolor:
27 colormap: xterm
28
29 scm:
30 - git:
31 url: git://github.com/efficios/babeltrace.git
32 browser: githubweb
33 browser-url: https://github.com/efficios/babeltrace
34 branches:
35 - origin/{version}
36
37 triggers:
38 - pollscm:
39 cron: "@hourly"
40
41 properties:
42 - github:
43 url: https://github.com/efficios/babeltrace
44
45
46 ## Templates
47
48 - babeltrace_version_buildtype_anchor: &babeltrace_version_buildtype_anchor
49 name: 'babeltrace_version_buildtype_anchor'
50 defaults: babeltrace
51
52 project-type: matrix
53 node: 'master' # Applies only to matrix flyweight task
54 axes:
55 - axis:
56 type: slave
57 name: arch
58 values: '{obj:arch}'
59 - axis:
60 type: user-defined
61 name: conf
62 values: '{obj:conf}'
63 - axis:
64 type: user-defined
65 name: build
66 values: '{obj:build}'
67
68 builders:
69 - shell:
70 !include-raw-escape: scripts/babeltrace/build.sh
71
72 - job-template:
73 name: babeltrace_{version}_{buildtype}
74 <<: *babeltrace_version_buildtype_anchor
75 # TODO: Scan for open tasks
76 publishers:
77 - tap:
78 results: 'tap/**/*.tap'
79 failed-tests-mark-build-as-failure: true
80 todo-is-failure: false
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
93 - ircbot:
94 strategy: new-failure-and-fixed
95 matrix-notifier: only-parent
96 channels:
97 - name: '#lttng'
98
99 - job-template:
100 name: babeltrace_{version}_cppcheck
101 defaults: babeltrace
102
103 triggers:
104 - pollscm:
105 cron: "@daily"
106
107 builders:
108 - shell: |
109 rm -f babeltrace-cppcheck.xml
110 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE 2> babeltrace-cppcheck.xml
111
112 publishers:
113 - archive:
114 artifacts: 'babeltrace-cppcheck.xml'
115 allow-empty: false
116 - cppcheck:
117 pattern: 'babeltrace-cppcheck.xml'
118 - email:
119 recipients: 'ci-notification@lists.lttng.org'
120 notify-every-unstable-build: true
121 send-to-individuals: false
122
123 - job-template:
124 name: babeltrace_{version}_scan-build
125 defaults: babeltrace
126 node: 'x86-64'
127
128 triggers:
129 - pollscm:
130 cron: "@daily"
131
132 builders:
133 - shell:
134 !include-raw-escape: scripts/babeltrace/scan-build.sh
135
136 publishers:
137 - html-publisher:
138 name: 'HTML Report'
139 dir: 'scan-build-archive/'
140 files: 'index.html'
141
142 - job-template:
143 name: babeltrace_{version}_coverity
144 defaults: babeltrace
145 node: 'x86-64'
146
147 triggers:
148 - pollscm:
149 cron: "@daily"
150
151 wrappers:
152 - workspace-cleanup
153 - timestamps
154 - ansicolor:
155 colormap: xterm
156 - credentials-binding:
157 - username-password-separated:
158 credential-id: babeltrace_coverity_token
159 username: COVERITY_SCAN_PROJECT_NAME
160 password: COVERITY_SCAN_TOKEN
161 builders:
162 - shell:
163 !include-raw-escape: scripts/common/coverity.sh
164
165 publishers:
166 - workspace-cleanup
167
168 - job-template:
169 name: babeltrace_{version}_pylint
170 defaults: babeltrace
171 node: 'x86-64'
172
173 scm: []
174
175 triggers:
176 - pollscm:
177 cron: "@daily"
178
179 builders:
180 - copyartifact:
181 project: babeltrace_{version}_build/arch=x86-64,build=std,conf=python-bindings
182 which-build: last-successful
183 stable: true
184 filter: 'build/**'
185 target: 'deps/babeltrace'
186 - shell:
187 !include-raw-escape: scripts/babeltrace/pylint.sh
188
189 publishers:
190 - archive:
191 artifacts: 'pep8.out,pylint.out'
192 - violations:
193 pep8:
194 pattern: pep8.out
195 min: 10
196 max: 999
197 unstable: 999
198 pylint:
199 pattern: pylint.out
200 min: 10
201 max: 999
202 unstable: 999
203 - email:
204 recipients: 'ci-notification@lists.lttng.org'
205 notify-every-unstable-build: true
206 send-to-individuals: false
207
208
209 ## Project
210 - project:
211 name: babeltrace
212 version:
213 !include: jobs/inc/babeltrace-versions.yaml.inc
214 jobs:
215 - 'babeltrace_{version}_{buildtype}':
216 buildtype: build
217 arch: !!python/tuple [x86-32, x86-64]
218 build: !!python/tuple [std, oot, dist]
219 conf: !!python/tuple [std, static, python-bindings]
220 - 'babeltrace_{version}_{buildtype}':
221 buildtype: portbuild
222 arch: !!python/tuple [armhf, arm64, powerpc, ppc64el]
223 build: !!python/tuple [std]
224 conf: !!python/tuple [std, static, python-bindings]
225 - 'babeltrace_{version}_{buildtype}':
226 buildtype: solarisbuild
227 arch: !!python/tuple [solaris10, solaris11]
228 build: !!python/tuple [std]
229 conf: !!python/tuple [std, static]
230 version:
231 - stable-1.3
232 - master
233 - 'babeltrace_{version}_cppcheck'
234 - 'babeltrace_{version}_scan-build'
235 - 'babeltrace_{version}_pylint'
236 - 'babeltrace_{version}_coverity':
237 version: master
238
This page took 0.034195 seconds and 5 git commands to generate.