| 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 | wrappers: |
| 18 | - workspace-cleanup |
| 19 | - timestamps |
| 20 | - ansicolor: |
| 21 | colormap: xterm |
| 22 | |
| 23 | scm: |
| 24 | - git: |
| 25 | url: git://github.com/{github_user}/{github_name}.git |
| 26 | browser: githubweb |
| 27 | browser-url: https://github.com/{github_user}/{github_name} |
| 28 | branches: |
| 29 | - origin/{version} |
| 30 | basedir: src/babeltrace |
| 31 | skip-tag: true |
| 32 | |
| 33 | triggers: |
| 34 | - pollscm: |
| 35 | cron: "@hourly" |
| 36 | |
| 37 | properties: |
| 38 | - inject: |
| 39 | properties-content: | |
| 40 | PROJECT_NAME=babeltrace |
| 41 | - build-discarder: |
| 42 | num-to-keep: 2 |
| 43 | - github: |
| 44 | url: https://github.com/{github_user}/{github_name} |
| 45 | |
| 46 | |
| 47 | ## Templates |
| 48 | |
| 49 | - babeltrace_version_buildtype_anchor: &babeltrace_version_buildtype_anchor |
| 50 | name: 'babeltrace_version_buildtype_anchor' |
| 51 | defaults: babeltrace |
| 52 | |
| 53 | project-type: matrix |
| 54 | node: 'master' # Applies only to matrix flyweight task |
| 55 | axes: |
| 56 | - axis: |
| 57 | type: slave |
| 58 | name: arch |
| 59 | values: '{obj:arch}' |
| 60 | - axis: |
| 61 | type: user-defined |
| 62 | name: conf |
| 63 | values: '{obj:conf}' |
| 64 | - axis: |
| 65 | type: user-defined |
| 66 | name: build |
| 67 | values: '{obj:build}' |
| 68 | |
| 69 | builders: |
| 70 | - shell: |
| 71 | !include-raw-escape: scripts/babeltrace/build.sh |
| 72 | |
| 73 | - job-template: |
| 74 | name: babeltrace_{version}_{buildtype} |
| 75 | <<: *babeltrace_version_buildtype_anchor |
| 76 | # TODO: Scan for open tasks |
| 77 | publishers: |
| 78 | - tap: |
| 79 | results: 'tap/**/*.log' |
| 80 | failed-tests-mark-build-as-failure: true |
| 81 | todo-is-failure: false |
| 82 | - warnings: |
| 83 | console-log-parsers: |
| 84 | - 'GNU Make + GNU C Compiler (gcc)' |
| 85 | total-thresholds: |
| 86 | unstable: |
| 87 | total-all: 0 |
| 88 | total-high: 0 |
| 89 | total-normal: 0 |
| 90 | total-low: 0 |
| 91 | - archive: |
| 92 | artifacts: 'build/**' |
| 93 | allow-empty: false |
| 94 | - ircbot: |
| 95 | strategy: new-failure-and-fixed |
| 96 | matrix-notifier: only-parent |
| 97 | channels: |
| 98 | - name: '#lttng' |
| 99 | |
| 100 | - job-template: |
| 101 | name: dev_{user}_babeltrace_{version}_{buildtype} |
| 102 | <<: *babeltrace_version_buildtype_anchor |
| 103 | publishers: |
| 104 | - tap: |
| 105 | results: 'tap/**/*.log' |
| 106 | failed-tests-mark-build-as-failure: true |
| 107 | todo-is-failure: false |
| 108 | - warnings: |
| 109 | console-log-parsers: |
| 110 | - 'GNU Make + GNU C Compiler (gcc)' |
| 111 | total-thresholds: |
| 112 | unstable: |
| 113 | total-all: 0 |
| 114 | total-high: 0 |
| 115 | total-normal: 0 |
| 116 | total-low: 0 |
| 117 | |
| 118 | - job-template: |
| 119 | name: babeltrace_{version}_cppcheck |
| 120 | defaults: babeltrace |
| 121 | |
| 122 | triggers: |
| 123 | - pollscm: |
| 124 | cron: "@daily" |
| 125 | |
| 126 | builders: |
| 127 | - shell: | |
| 128 | rm -f babeltrace-cppcheck.xml |
| 129 | cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/babeltrace 2> babeltrace-cppcheck.xml |
| 130 | |
| 131 | publishers: |
| 132 | - archive: |
| 133 | artifacts: 'babeltrace-cppcheck.xml' |
| 134 | allow-empty: false |
| 135 | - cppcheck: |
| 136 | pattern: 'babeltrace-cppcheck.xml' |
| 137 | - email: |
| 138 | recipients: 'ci-notification@lists.lttng.org' |
| 139 | notify-every-unstable-build: true |
| 140 | send-to-individuals: false |
| 141 | |
| 142 | - job-template: |
| 143 | name: babeltrace_{version}_scan-build |
| 144 | defaults: babeltrace |
| 145 | node: 'x86-64' |
| 146 | |
| 147 | triggers: |
| 148 | - pollscm: |
| 149 | cron: "@daily" |
| 150 | |
| 151 | builders: |
| 152 | - shell: |
| 153 | !include-raw-escape: scripts/common/scan-build.sh |
| 154 | |
| 155 | publishers: |
| 156 | - html-publisher: |
| 157 | name: 'HTML Report' |
| 158 | dir: 'scan-build-archive/' |
| 159 | files: 'index.html' |
| 160 | |
| 161 | - job-template: |
| 162 | name: babeltrace_{version}_coverity |
| 163 | defaults: babeltrace |
| 164 | node: 'x86-64' |
| 165 | |
| 166 | triggers: |
| 167 | - pollscm: |
| 168 | cron: "@daily" |
| 169 | |
| 170 | wrappers: |
| 171 | - workspace-cleanup |
| 172 | - timestamps |
| 173 | - ansicolor: |
| 174 | colormap: xterm |
| 175 | - credentials-binding: |
| 176 | - username-password-separated: |
| 177 | credential-id: babeltrace_coverity_token |
| 178 | username: COVERITY_SCAN_PROJECT_NAME |
| 179 | password: COVERITY_SCAN_TOKEN |
| 180 | builders: |
| 181 | - shell: |
| 182 | !include-raw-escape: scripts/common/coverity.sh |
| 183 | |
| 184 | publishers: |
| 185 | - workspace-cleanup |
| 186 | - archive: |
| 187 | artifacts: 'analysis-results.tgz,cov-int/**' |
| 188 | allow-empty: false |
| 189 | |
| 190 | - job-template: |
| 191 | name: babeltrace_{version}_pylint |
| 192 | defaults: babeltrace |
| 193 | node: 'x86-64' |
| 194 | |
| 195 | scm: [] |
| 196 | |
| 197 | triggers: |
| 198 | - pollscm: |
| 199 | cron: "@daily" |
| 200 | |
| 201 | builders: |
| 202 | - copyartifact: |
| 203 | project: babeltrace_{version}_build/arch=x86-64,build=std,conf=python-bindings |
| 204 | which-build: last-successful |
| 205 | stable: false |
| 206 | filter: 'build/**' |
| 207 | target: 'deps/babeltrace' |
| 208 | - shell: |
| 209 | !include-raw-escape: scripts/babeltrace/pylint.sh |
| 210 | |
| 211 | publishers: |
| 212 | - archive: |
| 213 | artifacts: 'pep8.out,pylint.out' |
| 214 | - violations: |
| 215 | pep8: |
| 216 | pattern: pep8.out |
| 217 | min: 10 |
| 218 | max: 999 |
| 219 | unstable: 999 |
| 220 | pylint: |
| 221 | pattern: pylint.out |
| 222 | min: 10 |
| 223 | max: 999 |
| 224 | unstable: 999 |
| 225 | - email: |
| 226 | recipients: 'ci-notification@lists.lttng.org' |
| 227 | notify-every-unstable-build: true |
| 228 | send-to-individuals: false |
| 229 | |
| 230 | # Use - in version number since yaml anchor do not support dot |
| 231 | - babeltrace_version_glib-2-22-5_anchor: &babeltrace_version_glib-2-22-5_anchor |
| 232 | name: 'babeltrace_version_glib_anchor' |
| 233 | defaults: babeltrace |
| 234 | node: 'x86-64' |
| 235 | |
| 236 | builders: |
| 237 | - inject: |
| 238 | properties-content: | |
| 239 | LD_LIBRARY_PATH=$WORKSPACE/glib-2.22.5/BUILD_RESULT/lib |
| 240 | PKG_CONFIG_PATH=$WORKSPACE/glib-2.22.5/BUILD_RESULT/lib/pkgconfig |
| 241 | arch=x86-64 |
| 242 | conf=std |
| 243 | build=std |
| 244 | - shell: | |
| 245 | wget http://ftp.gnome.org/pub/gnome/sources/glib/2.22/glib-2.22.5.tar.gz |
| 246 | tar xvf glib-2.22.5.tar.gz |
| 247 | cd glib-2.22.5 |
| 248 | mkdir BUILD_RESULT |
| 249 | ./configure --prefix=$WORKSPACE/glib-2.22.5/BUILD_RESULT |
| 250 | make -j `nproc` |
| 251 | make install |
| 252 | |
| 253 | - shell: |
| 254 | !include-raw-escape: scripts/babeltrace/build.sh |
| 255 | |
| 256 | - job-template: |
| 257 | name: babeltrace_{version}_glib-2.22.5 |
| 258 | triggers: |
| 259 | - pollscm: |
| 260 | cron: "@daily" |
| 261 | <<: *babeltrace_version_glib-2-22-5_anchor |
| 262 | |
| 263 | - job-template: |
| 264 | name: dev_{user}_babeltrace_{version}_glib-2.22.5 |
| 265 | <<: *babeltrace_version_glib-2-22-5_anchor |
| 266 | |
| 267 | ## Project |
| 268 | - project: |
| 269 | name: babeltrace |
| 270 | github_user: efficios |
| 271 | github_name: babeltrace |
| 272 | version: |
| 273 | - stable-1.3 |
| 274 | - stable-1.4 |
| 275 | - stable-1.5 |
| 276 | - master |
| 277 | jobs: |
| 278 | - 'babeltrace_{version}_{buildtype}': |
| 279 | buildtype: build |
| 280 | arch: !!python/tuple [x86-32, x86-64] |
| 281 | build: !!python/tuple [std, oot, dist] |
| 282 | conf: !!python/tuple [std, static, python-bindings] |
| 283 | - 'babeltrace_{version}_{buildtype}': |
| 284 | buildtype: clangbuild |
| 285 | arch: !!python/tuple [x86-32, x86-64] |
| 286 | build: !!python/tuple [clang] |
| 287 | conf: !!python/tuple [std, static] |
| 288 | - 'babeltrace_{version}_{buildtype}': |
| 289 | buildtype: portbuild |
| 290 | arch: !!python/tuple [armhf, arm64, powerpc, ppc64el] |
| 291 | build: !!python/tuple [std] |
| 292 | conf: !!python/tuple [std, static, python-bindings] |
| 293 | - 'babeltrace_{version}_{buildtype}': |
| 294 | buildtype: solarisbuild |
| 295 | arch: !!python/tuple [solaris10, solaris11] |
| 296 | build: !!python/tuple [std] |
| 297 | conf: !!python/tuple [std, static] |
| 298 | - 'babeltrace_{version}_{buildtype}': |
| 299 | buildtype: macosxbuild |
| 300 | arch: !!python/tuple [macosx] |
| 301 | build: !!python/tuple [std] |
| 302 | conf: !!python/tuple [std] |
| 303 | version: |
| 304 | - stable-1.4 |
| 305 | - stable-1.5 |
| 306 | - master |
| 307 | - 'babeltrace_{version}_cppcheck' |
| 308 | - 'babeltrace_{version}_scan-build' |
| 309 | - 'babeltrace_{version}_pylint' |
| 310 | - 'babeltrace_{version}_coverity': |
| 311 | version: master |
| 312 | - 'babeltrace_{version}_glib-2.22.5': |
| 313 | version: master |
| 314 | - 'dev_{user}_babeltrace_{version}_glib-2.22.5': |
| 315 | user: jgalar |
| 316 | github_user: jgalar |
| 317 | github_name: babeltrace |
| 318 | version: |
| 319 | - master-staging |
| 320 | - 'dev_{user}_babeltrace_{version}_{buildtype}': |
| 321 | user: jgalar |
| 322 | github_user: jgalar |
| 323 | github_name: babeltrace |
| 324 | buildtype: build |
| 325 | version: |
| 326 | - master-staging |
| 327 | - stable-1.3-staging |
| 328 | - stable-1.4-staging |
| 329 | - stable-1.5-staging |
| 330 | arch: !!python/tuple [x86-32, x86-64] |
| 331 | build: !!python/tuple [std, oot, dist] |
| 332 | conf: !!python/tuple [std, static, python-bindings] |
| 333 | - 'dev_{user}_babeltrace_{version}_{buildtype}': |
| 334 | user: jgalar |
| 335 | github_user: jgalar |
| 336 | github_name: babeltrace |
| 337 | buildtype: macosxbuild |
| 338 | version: |
| 339 | - master-staging |
| 340 | - stable-1.4-staging |
| 341 | - stable-1.5-staging |
| 342 | arch: !!python/tuple [macosx] |
| 343 | build: !!python/tuple [std] |
| 344 | conf: !!python/tuple [std] |
| 345 | |