Add coverity to babeltrace
[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 - job-template:
48 name: babeltrace_{version}_{buildtype}
49 defaults: babeltrace
50
51 project-type: matrix
52 node: 'x86-32 || x86-64' # Applies only to matrix flyweight task
53 axes:
54 - axis:
55 type: slave
56 name: arch
57 values: '{obj:arch}'
58 - axis:
59 type: user-defined
60 name: conf
61 values:
62 - std
63 - static
64 - python_bindings
65 - axis:
66 type: user-defined
67 name: build
68 values: '{obj:build}'
69
70 builders:
71 - shell:
72 !include-raw-escape scripts/babeltrace/build.sh
73
74 # TODO: Scan for open tasks
75 publishers:
76 - tap:
77 results: 'tap/**/*.tap'
78 failed-tests-mark-build-as-failure: true
79 - warnings:
80 console-log-parsers:
81 - 'GNU Make + GNU C Compiler (gcc)'
82 total-thresholds:
83 failed:
84 total-all: 0
85 total-high: 0
86 total-normal: 0
87 total-low: 0
88 - archive:
89 artifacts: 'build/**'
90 allow-empty: false
91
92 - job-template:
93 name: babeltrace_{version}_cppcheck
94 defaults: babeltrace
95
96 triggers:
97 - pollscm:
98 cron: "@daily"
99
100 builders:
101 - shell: |
102 rm -f babeltrace-cppcheck.xml
103 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE 2> babeltrace-cppcheck.xml
104
105 publishers:
106 - archive:
107 artifacts: 'babeltrace-cppcheck.xml'
108 allow-empty: false
109 - cppcheck:
110 pattern: 'babeltrace-cppcheck.xml'
111 - email:
112 recipients: 'ci-notification@lists.lttng.org'
113 notify-every-unstable-build: true
114 send-to-individuals: false
115
116 - job-template:
117 name: babeltrace_{version}_scan-build
118 defaults: babeltrace
119 node: 'x86-64'
120
121 triggers:
122 - pollscm:
123 cron: "@daily"
124
125 builders:
126 - shell:
127 !include-raw-escape scripts/babeltrace/scan-build.sh
128
129 publishers:
130 - html-publisher:
131 name: 'HTML Report'
132 dir: 'scan-build-archive/'
133 files: 'index.html'
134
135 - job-template:
136 name: babeltrace_{version}_coverity
137 defaults: babeltrace
138 node: 'x86-64'
139
140 triggers:
141 - pollscm:
142 cron: "@daily"
143
144 wrappers:
145 - workspace-cleanup
146 - timestamps
147 - ansicolor:
148 colormap: xterm
149 - credentials-binding:
150 - username-password-separated:
151 credential-id: babeltrace_coverity_token
152 username: COVERITY_SCAN_PROJECT_NAME
153 password: COVERITY_SCAN_TOKEN
154 builders:
155 - shell:
156 !include-raw-escape scripts/common/coverity.sh
157
158 publishers:
159 - workspace-cleanup
160
161 - job-template:
162 name: babeltrace_{version}_pylint
163 defaults: babeltrace
164 node: 'x86-64'
165
166 scm: []
167
168 triggers:
169 - pollscm:
170 cron: "@daily"
171
172 builders:
173 - copyartifact:
174 project: babeltrace-{version}/arch=x86-64,build=std,conf=python_bindings
175 which-build: last-successful
176 stable: true
177 filter: 'build/**'
178 target: 'dependencies/babeltrace'
179 - shell:
180 !include-raw-escape scripts/babeltrace/pylint.sh
181
182 publishers:
183 - archive:
184 artifacts: 'pep8.out,pylint.out'
185 - violations:
186 pep8:
187 pattern: pep8.out
188 min: 10
189 max: 999
190 unstable: 999
191 pylint:
192 pattern: pylint.out
193 min: 10
194 max: 999
195 unstable: 999
196 - email:
197 recipients: 'ci-notification@lists.lttng.org'
198 notify-every-unstable-build: true
199 send-to-individuals: false
200
201
202 ## Project
203 - project:
204 name: babeltrace
205 version:
206 !include jobs/inc/babeltrace-versions.yaml.inc
207 jobs:
208 - 'babeltrace_{version}_{buildtype}':
209 buildtype: build
210 arch: !!python/tuple [x86-32, x86-64]
211 build: !!python/tuple [std, oot, dist]
212 - 'babeltrace_{version}_{buildtype}':
213 buildtype: portbuild
214 arch: !!python/tuple [armhf, powerpc]
215 build: !!python/tuple [std]
216 - 'babeltrace_{version}_cppcheck'
217 - 'babeltrace_{version}_scan-build'
218 - 'babeltrace_{version}_pylint'
219 - 'babeltrace_{version}_coverity':
220 version: master
221
This page took 0.034276 seconds and 4 git commands to generate.