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 | |
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 | |
0dc6aca0 | 50 | node: 'x86-32 || x86-64' # Applies only to matrix flyweight task |
890bff23 MJ |
51 | axes: |
52 | - axis: | |
53 | type: slave | |
54 | name: arch | |
55 | values: '{obj:arch}' | |
56 | - axis: | |
57 | type: user-defined | |
58 | name: conf | |
59 | values: | |
60 | - std | |
61 | - static | |
62 | - python_bindings | |
63 | - axis: | |
64 | type: user-defined | |
65 | name: build | |
9d0846f3 | 66 | values: '{obj:build}' |
890bff23 MJ |
67 | |
68 | builders: | |
69 | - shell: | |
70 | !include-raw-escape scripts/babeltrace/build.sh | |
71 | ||
72 | # TODO: Scan for open tasks | |
73 | publishers: | |
74 | - tap: | |
75 | results: 'tap/**/*.tap' | |
76 | failed-tests-mark-build-as-failure: true | |
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 | |
89 | fingerprint: true | |
90 | ||
91 | - job-template: | |
92 | name: babeltrace_{version}_cppcheck | |
93 | defaults: babeltrace | |
94 | ||
95 | triggers: | |
96 | - pollscm: "@daily" | |
97 | ||
98 | builders: | |
99 | - shell: | | |
100 | rm -f babeltrace-cppcheck.xml | |
101 | cppcheck --enable=all --xml --xml-version=2 $WORKSPACE 2> babeltrace-cppcheck.xml | |
102 | ||
103 | publishers: | |
104 | - archive: | |
105 | artifacts: 'babeltrace-cppcheck.xml' | |
106 | allow-empty: false | |
107 | fingerprint: true | |
108 | - cppcheck: | |
109 | pattern: 'babeltrace-cppcheck.xml' | |
110 | - email: | |
111 | recipients: 'ci-notification@lists.lttng.org' | |
112 | notify-every-unstable-build: true | |
113 | send-to-individuals: false | |
114 | ||
115 | - job-template: | |
116 | name: babeltrace_{version}_scan-build | |
117 | defaults: babeltrace | |
118 | node: 'x86-64' | |
119 | ||
120 | triggers: | |
121 | - pollscm: "@daily" | |
122 | ||
123 | builders: | |
124 | - shell: | |
125 | !include-raw-escape scripts/babeltrace/scan-build.sh | |
126 | ||
127 | publishers: | |
128 | - html-publisher: | |
129 | name: 'HTML Report' | |
130 | dir: 'scan-build-archive/' | |
131 | files: 'index.html' | |
132 | ||
133 | # TODO: babeltrace_{version}_coverity | |
134 | #- job-template: | |
135 | # name: babeltrace_{version}_coverity | |
136 | # defaults: babeltrace | |
137 | # node: 'x86-64' | |
138 | # | |
139 | # triggers: | |
140 | # - pollscm: "@daily" | |
141 | # | |
142 | # builders: | |
143 | # - shell: | |
144 | # !include-raw-escape scripts/babeltrace/coverity.sh | |
145 | # | |
146 | # publishers: | |
147 | # - html-publisher: | |
148 | # name: 'HTML Report' | |
149 | # dir: 'scan-build-archive/' | |
150 | # files: 'index.html' | |
151 | ||
152 | - job-template: | |
153 | name: babeltrace_{version}_pylint | |
154 | defaults: babeltrace | |
155 | node: 'x86-64' | |
156 | ||
157 | scm: [] | |
158 | ||
159 | triggers: | |
160 | - pollscm: "@daily" | |
161 | ||
162 | builders: | |
163 | - copyartifact: | |
164 | project: babeltrace-{version}/arch=x86-64,build=std,conf=python_bindings | |
165 | which-build: last-successful | |
166 | stable: true | |
167 | filter: 'build/**' | |
168 | target: 'dependencies/babeltrace' | |
169 | - shell: | |
170 | !include-raw-escape scripts/babeltrace/pylint.sh | |
171 | ||
172 | publishers: | |
173 | - archive: | |
174 | artifacts: 'pep8.out,pylint.out' | |
175 | fingerprint: true | |
176 | - violations: | |
177 | pep8: | |
178 | pattern: pep8.out | |
179 | min: 10 | |
180 | max: 999 | |
181 | unstable: 999 | |
182 | pylint: | |
183 | pattern: pylint.out | |
184 | min: 10 | |
185 | max: 999 | |
186 | unstable: 999 | |
187 | - email: | |
188 | recipients: 'ci-notification@lists.lttng.org' | |
189 | notify-every-unstable-build: true | |
190 | send-to-individuals: false | |
191 | ||
192 | ||
890bff23 MJ |
193 | ## Project |
194 | - project: | |
195 | name: babeltrace | |
196 | version: | |
6ea8351e | 197 | !include jobs/inc/babeltrace-versions.yaml.inc |
890bff23 | 198 | jobs: |
57ae8ff4 MJ |
199 | - 'babeltrace_{version}_{buildtype}': |
200 | buildtype: build | |
890bff23 | 201 | arch: !!python/tuple [x86-32, x86-64] |
9d0846f3 | 202 | build: !!python/tuple [std, oot, dist] |
57ae8ff4 MJ |
203 | - 'babeltrace_{version}_{buildtype}': |
204 | buildtype: portbuild | |
890bff23 | 205 | arch: !!python/tuple [armhf, powerpc] |
9d0846f3 | 206 | build: !!python/tuple [std] |
890bff23 MJ |
207 | - 'babeltrace_{version}_cppcheck' |
208 | - 'babeltrace_{version}_scan-build' | |
209 | - 'babeltrace_{version}_pylint' | |
210 |