Fix pylint job
[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: 'master' # 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 todo-is-failure: false
80 - warnings:
81 console-log-parsers:
82 - 'GNU Make + GNU C Compiler (gcc)'
83 total-thresholds:
84 failed:
85 total-all: 0
86 total-high: 0
87 total-normal: 0
88 total-low: 0
89 - archive:
90 artifacts: 'build/**'
91 allow-empty: false
92 - ircbot:
93 strategy: new-failure-and-fixed
94 matrix-notifier: only-parent
95 channels:
96 - name: '#lttng'
97
98 - job-template:
99 name: babeltrace_{version}_cppcheck
100 defaults: babeltrace
101
102 triggers:
103 - pollscm:
104 cron: "@daily"
105
106 builders:
107 - shell: |
108 rm -f babeltrace-cppcheck.xml
109 cppcheck --enable=all --xml --xml-version=2 $WORKSPACE 2> babeltrace-cppcheck.xml
110
111 publishers:
112 - archive:
113 artifacts: 'babeltrace-cppcheck.xml'
114 allow-empty: false
115 - cppcheck:
116 pattern: 'babeltrace-cppcheck.xml'
117 - email:
118 recipients: 'ci-notification@lists.lttng.org'
119 notify-every-unstable-build: true
120 send-to-individuals: false
121
122 - job-template:
123 name: babeltrace_{version}_scan-build
124 defaults: babeltrace
125 node: 'x86-64'
126
127 triggers:
128 - pollscm:
129 cron: "@daily"
130
131 builders:
132 - shell:
133 !include-raw-escape scripts/babeltrace/scan-build.sh
134
135 publishers:
136 - html-publisher:
137 name: 'HTML Report'
138 dir: 'scan-build-archive/'
139 files: 'index.html'
140
141 - job-template:
142 name: babeltrace_{version}_coverity
143 defaults: babeltrace
144 node: 'x86-64'
145
146 triggers:
147 - pollscm:
148 cron: "@daily"
149
150 wrappers:
151 - workspace-cleanup
152 - timestamps
153 - ansicolor:
154 colormap: xterm
155 - credentials-binding:
156 - username-password-separated:
157 credential-id: babeltrace_coverity_token
158 username: COVERITY_SCAN_PROJECT_NAME
159 password: COVERITY_SCAN_TOKEN
160 builders:
161 - shell:
162 !include-raw-escape scripts/common/coverity.sh
163
164 publishers:
165 - workspace-cleanup
166
167 - job-template:
168 name: babeltrace_{version}_pylint
169 defaults: babeltrace
170 node: 'x86-64'
171
172 scm: []
173
174 triggers:
175 - pollscm:
176 cron: "@daily"
177
178 builders:
179 - copyartifact:
180 project: babeltrace_{version}_build/arch=x86-64,build=std,conf=python-bindings
181 which-build: last-successful
182 stable: true
183 filter: 'build/**'
184 target: 'deps/babeltrace'
185 - shell:
186 !include-raw-escape scripts/babeltrace/pylint.sh
187
188 publishers:
189 - archive:
190 artifacts: 'pep8.out,pylint.out'
191 - violations:
192 pep8:
193 pattern: pep8.out
194 min: 10
195 max: 999
196 unstable: 999
197 pylint:
198 pattern: pylint.out
199 min: 10
200 max: 999
201 unstable: 999
202 - email:
203 recipients: 'ci-notification@lists.lttng.org'
204 notify-every-unstable-build: true
205 send-to-individuals: false
206
207
208 ## Project
209 - project:
210 name: babeltrace
211 version:
212 !include jobs/inc/babeltrace-versions.yaml.inc
213 jobs:
214 - 'babeltrace_{version}_{buildtype}':
215 buildtype: build
216 arch: !!python/tuple [x86-32, x86-64]
217 build: !!python/tuple [std, oot, dist]
218 - 'babeltrace_{version}_{buildtype}':
219 buildtype: portbuild
220 arch: !!python/tuple [armhf, powerpc, ppc64el]
221 build: !!python/tuple [std]
222 - 'babeltrace_{version}_cppcheck'
223 - 'babeltrace_{version}_scan-build'
224 - 'babeltrace_{version}_pylint'
225 - 'babeltrace_{version}_coverity':
226 version: master
227
This page took 0.034341 seconds and 5 git commands to generate.