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 | |
06264d10 JR |
47 | |
48 | - babeltrace_version_buildtype_anchor: &babeltrace_version_buildtype_anchor | |
49 | name: 'babeltrace_version_buildtype_anchor' | |
890bff23 MJ |
50 | defaults: babeltrace |
51 | ||
52 | project-type: matrix | |
ca8c6144 | 53 | node: 'master' # Applies only to matrix flyweight task |
890bff23 MJ |
54 | axes: |
55 | - axis: | |
56 | type: slave | |
57 | name: arch | |
58 | values: '{obj:arch}' | |
59 | - axis: | |
60 | type: user-defined | |
61 | name: conf | |
87e41bca | 62 | values: '{obj:conf}' |
890bff23 MJ |
63 | - axis: |
64 | type: user-defined | |
65 | name: build | |
9d0846f3 | 66 | values: '{obj:build}' |
890bff23 MJ |
67 | |
68 | builders: | |
69 | - shell: | |
ef63064f | 70 | !include-raw-escape: scripts/babeltrace/build.sh |
890bff23 | 71 | |
06264d10 JR |
72 | - job-template: |
73 | name: babeltrace_{version}_{buildtype} | |
74 | <<: *babeltrace_version_buildtype_anchor | |
890bff23 MJ |
75 | # TODO: Scan for open tasks |
76 | publishers: | |
77 | - tap: | |
78 | results: 'tap/**/*.tap' | |
79 | failed-tests-mark-build-as-failure: true | |
95654431 | 80 | todo-is-failure: false |
890bff23 MJ |
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 | |
1f6ad2ae | 93 | - ircbot: |
95654431 | 94 | strategy: new-failure-and-fixed |
1f6ad2ae MJ |
95 | matrix-notifier: only-parent |
96 | channels: | |
97 | - name: '#lttng' | |
890bff23 MJ |
98 | |
99 | - job-template: | |
100 | name: babeltrace_{version}_cppcheck | |
101 | defaults: babeltrace | |
102 | ||
103 | triggers: | |
6cf22a3a MJ |
104 | - pollscm: |
105 | cron: "@daily" | |
890bff23 MJ |
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 | |
890bff23 MJ |
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: | |
6cf22a3a MJ |
129 | - pollscm: |
130 | cron: "@daily" | |
890bff23 MJ |
131 | |
132 | builders: | |
133 | - shell: | |
ef63064f | 134 | !include-raw-escape: scripts/babeltrace/scan-build.sh |
890bff23 MJ |
135 | |
136 | publishers: | |
137 | - html-publisher: | |
138 | name: 'HTML Report' | |
139 | dir: 'scan-build-archive/' | |
140 | files: 'index.html' | |
141 | ||
6cf22a3a MJ |
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: | |
ef63064f | 163 | !include-raw-escape: scripts/common/coverity.sh |
6cf22a3a MJ |
164 | |
165 | publishers: | |
166 | - workspace-cleanup | |
890bff23 MJ |
167 | |
168 | - job-template: | |
169 | name: babeltrace_{version}_pylint | |
170 | defaults: babeltrace | |
171 | node: 'x86-64' | |
172 | ||
173 | scm: [] | |
174 | ||
175 | triggers: | |
6cf22a3a MJ |
176 | - pollscm: |
177 | cron: "@daily" | |
890bff23 MJ |
178 | |
179 | builders: | |
180 | - copyartifact: | |
ce1e1df3 | 181 | project: babeltrace_{version}_build/arch=x86-64,build=std,conf=python-bindings |
890bff23 MJ |
182 | which-build: last-successful |
183 | stable: true | |
184 | filter: 'build/**' | |
b0afcb47 | 185 | target: 'deps/babeltrace' |
890bff23 | 186 | - shell: |
ef63064f | 187 | !include-raw-escape: scripts/babeltrace/pylint.sh |
890bff23 MJ |
188 | |
189 | publishers: | |
190 | - archive: | |
191 | artifacts: 'pep8.out,pylint.out' | |
890bff23 MJ |
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 | ||
890bff23 MJ |
209 | ## Project |
210 | - project: | |
211 | name: babeltrace | |
212 | version: | |
ef63064f | 213 | !include: jobs/inc/babeltrace-versions.yaml.inc |
890bff23 | 214 | jobs: |
57ae8ff4 MJ |
215 | - 'babeltrace_{version}_{buildtype}': |
216 | buildtype: build | |
890bff23 | 217 | arch: !!python/tuple [x86-32, x86-64] |
9d0846f3 | 218 | build: !!python/tuple [std, oot, dist] |
87e41bca | 219 | conf: !!python/tuple [std, static, python-bindings] |
57ae8ff4 MJ |
220 | - 'babeltrace_{version}_{buildtype}': |
221 | buildtype: portbuild | |
c56b9301 | 222 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el] |
9d0846f3 | 223 | build: !!python/tuple [std] |
87e41bca MJ |
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 | |
890bff23 MJ |
233 | - 'babeltrace_{version}_cppcheck' |
234 | - 'babeltrace_{version}_scan-build' | |
235 | - 'babeltrace_{version}_pylint' | |
6cf22a3a MJ |
236 | - 'babeltrace_{version}_coverity': |
237 | version: master | |
890bff23 | 238 |