Added babeltrace jobs
[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
26 - ansicolor
27
28 scm:
29 - git:
30 url: https://github.com/efficios/babeltrace.git
31 browser: githubweb
32 browser-url: https://github.com/efficios/babeltrace.git
33 branches:
34 - origin/{version}
35
36 triggers:
37 - pollscm: "@hourly"
38
39 properties:
40 - github:
41 url: https://github.com/efficios/babeltrace/
42
43
44## Templates
45- job-template:
46 name: babeltrace_{version}_{buildtype}
47 defaults: babeltrace
48
49 project-type: matrix
50 axes:
51 - axis:
52 type: slave
53 name: arch
54 values: '{obj:arch}'
55 - axis:
56 type: user-defined
57 name: conf
58 values:
59 - std
60 - static
61 - python_bindings
62 - axis:
63 type: user-defined
64 name: build
65 values:
66 - std
67 - oot
68 - dist
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 fingerprint: true
92
93- job-template:
94 name: babeltrace_{version}_cppcheck
95 defaults: babeltrace
96
97 triggers:
98 - pollscm: "@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 fingerprint: true
110 - cppcheck:
111 pattern: 'babeltrace-cppcheck.xml'
112 - email:
113 recipients: 'ci-notification@lists.lttng.org'
114 notify-every-unstable-build: true
115 send-to-individuals: false
116
117- job-template:
118 name: babeltrace_{version}_scan-build
119 defaults: babeltrace
120 node: 'x86-64'
121
122 triggers:
123 - pollscm: "@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# TODO: babeltrace_{version}_coverity
136#- job-template:
137# name: babeltrace_{version}_coverity
138# defaults: babeltrace
139# node: 'x86-64'
140#
141# triggers:
142# - pollscm: "@daily"
143#
144# builders:
145# - shell:
146# !include-raw-escape scripts/babeltrace/coverity.sh
147#
148# publishers:
149# - html-publisher:
150# name: 'HTML Report'
151# dir: 'scan-build-archive/'
152# files: 'index.html'
153
154- job-template:
155 name: babeltrace_{version}_pylint
156 defaults: babeltrace
157 node: 'x86-64'
158
159 scm: []
160
161 triggers:
162 - pollscm: "@daily"
163
164 builders:
165 - copyartifact:
166 project: babeltrace-{version}/arch=x86-64,build=std,conf=python_bindings
167 which-build: last-successful
168 stable: true
169 filter: 'build/**'
170 target: 'dependencies/babeltrace'
171 - shell:
172 !include-raw-escape scripts/babeltrace/pylint.sh
173
174 publishers:
175 - archive:
176 artifacts: 'pep8.out,pylint.out'
177 fingerprint: true
178 - violations:
179 pep8:
180 pattern: pep8.out
181 min: 10
182 max: 999
183 unstable: 999
184 pylint:
185 pattern: pylint.out
186 min: 10
187 max: 999
188 unstable: 999
189 - email:
190 recipients: 'ci-notification@lists.lttng.org'
191 notify-every-unstable-build: true
192 send-to-individuals: false
193
194
195## Job groups
196- job-group:
197 name: 'babeltrace_{version}_build'
198 buildtype: 'build'
199 jobs:
200 - 'babeltrace_{version}_{buildtype}'
201
202- job-group:
203 name: 'babeltrace_{version}_portbuild'
204 buildtype: 'portbuild'
205 jobs:
206 - 'babeltrace_{version}_{buildtype}'
207
208## Project
209- project:
210 name: babeltrace
211 version:
212 - stable-1.2
213 - master
214 jobs:
215 - 'babeltrace_{version}_build':
216 arch: !!python/tuple [x86-32, x86-64]
217 - 'babeltrace_{version}_portbuild':
218 arch: !!python/tuple [armhf, powerpc]
219 - 'babeltrace_{version}_cppcheck'
220 - 'babeltrace_{version}_scan-build'
221 - 'babeltrace_{version}_pylint'
222
This page took 0.030099 seconds and 4 git commands to generate.