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