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 | |
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 | |
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 | |
76 | - warnings: | |
77 | console-log-parsers: | |
78 | - 'GNU Make + GNU C Compiler (gcc)' | |
79 | total-thresholds: | |
80 | failed: | |
81 | total-all: 0 | |
82 | total-high: 0 | |
83 | total-normal: 0 | |
84 | total-low: 0 | |
85 | - archive: | |
86 | artifacts: 'build/**' | |
87 | allow-empty: false | |
88 | fingerprint: true | |
89 | ||
90 | - job-template: | |
91 | name: babeltrace_{version}_cppcheck | |
92 | defaults: babeltrace | |
93 | ||
94 | triggers: | |
95 | - pollscm: "@daily" | |
96 | ||
97 | builders: | |
98 | - shell: | | |
99 | rm -f babeltrace-cppcheck.xml | |
100 | cppcheck --enable=all --xml --xml-version=2 $WORKSPACE 2> babeltrace-cppcheck.xml | |
101 | ||
102 | publishers: | |
103 | - archive: | |
104 | artifacts: 'babeltrace-cppcheck.xml' | |
105 | allow-empty: false | |
106 | fingerprint: true | |
107 | - cppcheck: | |
108 | pattern: 'babeltrace-cppcheck.xml' | |
109 | - email: | |
110 | recipients: 'ci-notification@lists.lttng.org' | |
111 | notify-every-unstable-build: true | |
112 | send-to-individuals: false | |
113 | ||
114 | - job-template: | |
115 | name: babeltrace_{version}_scan-build | |
116 | defaults: babeltrace | |
117 | node: 'x86-64' | |
118 | ||
119 | triggers: | |
120 | - pollscm: "@daily" | |
121 | ||
122 | builders: | |
123 | - shell: | |
124 | !include-raw-escape scripts/babeltrace/scan-build.sh | |
125 | ||
126 | publishers: | |
127 | - html-publisher: | |
128 | name: 'HTML Report' | |
129 | dir: 'scan-build-archive/' | |
130 | files: 'index.html' | |
131 | ||
132 | # TODO: babeltrace_{version}_coverity | |
133 | #- job-template: | |
134 | # name: babeltrace_{version}_coverity | |
135 | # defaults: babeltrace | |
136 | # node: 'x86-64' | |
137 | # | |
138 | # triggers: | |
139 | # - pollscm: "@daily" | |
140 | # | |
141 | # builders: | |
142 | # - shell: | |
143 | # !include-raw-escape scripts/babeltrace/coverity.sh | |
144 | # | |
145 | # publishers: | |
146 | # - html-publisher: | |
147 | # name: 'HTML Report' | |
148 | # dir: 'scan-build-archive/' | |
149 | # files: 'index.html' | |
150 | ||
151 | - job-template: | |
152 | name: babeltrace_{version}_pylint | |
153 | defaults: babeltrace | |
154 | node: 'x86-64' | |
155 | ||
156 | scm: [] | |
157 | ||
158 | triggers: | |
159 | - pollscm: "@daily" | |
160 | ||
161 | builders: | |
162 | - copyartifact: | |
163 | project: babeltrace-{version}/arch=x86-64,build=std,conf=python_bindings | |
164 | which-build: last-successful | |
165 | stable: true | |
166 | filter: 'build/**' | |
167 | target: 'dependencies/babeltrace' | |
168 | - shell: | |
169 | !include-raw-escape scripts/babeltrace/pylint.sh | |
170 | ||
171 | publishers: | |
172 | - archive: | |
173 | artifacts: 'pep8.out,pylint.out' | |
174 | fingerprint: true | |
175 | - violations: | |
176 | pep8: | |
177 | pattern: pep8.out | |
178 | min: 10 | |
179 | max: 999 | |
180 | unstable: 999 | |
181 | pylint: | |
182 | pattern: pylint.out | |
183 | min: 10 | |
184 | max: 999 | |
185 | unstable: 999 | |
186 | - email: | |
187 | recipients: 'ci-notification@lists.lttng.org' | |
188 | notify-every-unstable-build: true | |
189 | send-to-individuals: false | |
190 | ||
191 | ||
890bff23 MJ |
192 | ## Project |
193 | - project: | |
194 | name: babeltrace | |
195 | version: | |
6ea8351e | 196 | !include jobs/inc/babeltrace-versions.yaml.inc |
890bff23 | 197 | jobs: |
57ae8ff4 MJ |
198 | - 'babeltrace_{version}_{buildtype}': |
199 | buildtype: build | |
890bff23 | 200 | arch: !!python/tuple [x86-32, x86-64] |
9d0846f3 | 201 | build: !!python/tuple [std, oot, dist] |
57ae8ff4 MJ |
202 | - 'babeltrace_{version}_{buildtype}': |
203 | buildtype: portbuild | |
890bff23 | 204 | arch: !!python/tuple [armhf, powerpc] |
9d0846f3 | 205 | build: !!python/tuple [std] |
890bff23 MJ |
206 | - 'babeltrace_{version}_cppcheck' |
207 | - 'babeltrace_{version}_scan-build' | |
208 | - 'babeltrace_{version}_pylint' | |
209 |