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 | |
0dc6aca0 | 52 | node: 'x86-32 || x86-64' # 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 | |
61 | values: | |
62 | - std | |
63 | - static | |
64 | - python_bindings | |
65 | - axis: | |
66 | type: user-defined | |
67 | name: build | |
9d0846f3 | 68 | values: '{obj:build}' |
890bff23 MJ |
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 | |
1f6ad2ae MJ |
91 | - ircbot: |
92 | matrix-notifier: only-parent | |
93 | channels: | |
94 | - name: '#lttng' | |
890bff23 MJ |
95 | |
96 | - job-template: | |
97 | name: babeltrace_{version}_cppcheck | |
98 | defaults: babeltrace | |
99 | ||
100 | triggers: | |
6cf22a3a MJ |
101 | - pollscm: |
102 | cron: "@daily" | |
890bff23 MJ |
103 | |
104 | builders: | |
105 | - shell: | | |
106 | rm -f babeltrace-cppcheck.xml | |
107 | cppcheck --enable=all --xml --xml-version=2 $WORKSPACE 2> babeltrace-cppcheck.xml | |
108 | ||
109 | publishers: | |
110 | - archive: | |
111 | artifacts: 'babeltrace-cppcheck.xml' | |
112 | allow-empty: false | |
890bff23 MJ |
113 | - cppcheck: |
114 | pattern: 'babeltrace-cppcheck.xml' | |
115 | - email: | |
116 | recipients: 'ci-notification@lists.lttng.org' | |
117 | notify-every-unstable-build: true | |
118 | send-to-individuals: false | |
119 | ||
120 | - job-template: | |
121 | name: babeltrace_{version}_scan-build | |
122 | defaults: babeltrace | |
123 | node: 'x86-64' | |
124 | ||
125 | triggers: | |
6cf22a3a MJ |
126 | - pollscm: |
127 | cron: "@daily" | |
890bff23 MJ |
128 | |
129 | builders: | |
130 | - shell: | |
131 | !include-raw-escape scripts/babeltrace/scan-build.sh | |
132 | ||
133 | publishers: | |
134 | - html-publisher: | |
135 | name: 'HTML Report' | |
136 | dir: 'scan-build-archive/' | |
137 | files: 'index.html' | |
138 | ||
6cf22a3a MJ |
139 | - job-template: |
140 | name: babeltrace_{version}_coverity | |
141 | defaults: babeltrace | |
142 | node: 'x86-64' | |
143 | ||
144 | triggers: | |
145 | - pollscm: | |
146 | cron: "@daily" | |
147 | ||
148 | wrappers: | |
149 | - workspace-cleanup | |
150 | - timestamps | |
151 | - ansicolor: | |
152 | colormap: xterm | |
153 | - credentials-binding: | |
154 | - username-password-separated: | |
155 | credential-id: babeltrace_coverity_token | |
156 | username: COVERITY_SCAN_PROJECT_NAME | |
157 | password: COVERITY_SCAN_TOKEN | |
158 | builders: | |
159 | - shell: | |
160 | !include-raw-escape scripts/common/coverity.sh | |
161 | ||
162 | publishers: | |
163 | - workspace-cleanup | |
890bff23 MJ |
164 | |
165 | - job-template: | |
166 | name: babeltrace_{version}_pylint | |
167 | defaults: babeltrace | |
168 | node: 'x86-64' | |
169 | ||
170 | scm: [] | |
171 | ||
172 | triggers: | |
6cf22a3a MJ |
173 | - pollscm: |
174 | cron: "@daily" | |
890bff23 MJ |
175 | |
176 | builders: | |
177 | - copyartifact: | |
178 | project: babeltrace-{version}/arch=x86-64,build=std,conf=python_bindings | |
179 | which-build: last-successful | |
180 | stable: true | |
181 | filter: 'build/**' | |
b0afcb47 | 182 | target: 'deps/babeltrace' |
890bff23 MJ |
183 | - shell: |
184 | !include-raw-escape scripts/babeltrace/pylint.sh | |
185 | ||
186 | publishers: | |
187 | - archive: | |
188 | artifacts: 'pep8.out,pylint.out' | |
890bff23 MJ |
189 | - violations: |
190 | pep8: | |
191 | pattern: pep8.out | |
192 | min: 10 | |
193 | max: 999 | |
194 | unstable: 999 | |
195 | pylint: | |
196 | pattern: pylint.out | |
197 | min: 10 | |
198 | max: 999 | |
199 | unstable: 999 | |
200 | - email: | |
201 | recipients: 'ci-notification@lists.lttng.org' | |
202 | notify-every-unstable-build: true | |
203 | send-to-individuals: false | |
204 | ||
205 | ||
890bff23 MJ |
206 | ## Project |
207 | - project: | |
208 | name: babeltrace | |
209 | version: | |
6ea8351e | 210 | !include jobs/inc/babeltrace-versions.yaml.inc |
890bff23 | 211 | jobs: |
57ae8ff4 MJ |
212 | - 'babeltrace_{version}_{buildtype}': |
213 | buildtype: build | |
890bff23 | 214 | arch: !!python/tuple [x86-32, x86-64] |
9d0846f3 | 215 | build: !!python/tuple [std, oot, dist] |
57ae8ff4 MJ |
216 | - 'babeltrace_{version}_{buildtype}': |
217 | buildtype: portbuild | |
890bff23 | 218 | arch: !!python/tuple [armhf, powerpc] |
9d0846f3 | 219 | build: !!python/tuple [std] |
890bff23 MJ |
220 | - 'babeltrace_{version}_cppcheck' |
221 | - 'babeltrace_{version}_scan-build' | |
222 | - 'babeltrace_{version}_pylint' | |
6cf22a3a MJ |
223 | - 'babeltrace_{version}_coverity': |
224 | version: master | |
890bff23 | 225 |