X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=jobs%2Fliburcu.yaml;h=98e40b4478093025567eca59d86cca42ced23852;hb=51c9c62db1805a4cdd96be18df4082f1ac5d81c5;hp=c1efef56f40c9e5a3d505575bd15b0d3bb01276e;hpb=3584913586db6f034625623d98a31cc767e338d9;p=lttng-ci.git diff --git a/jobs/liburcu.yaml b/jobs/liburcu.yaml index c1efef5..98e40b4 100644 --- a/jobs/liburcu.yaml +++ b/jobs/liburcu.yaml @@ -28,14 +28,19 @@ project-type: freestyle wrappers: - - workspace-cleanup + - ansicolor + - timeout: + timeout: 90 + fail: true + type: absolute - timestamps - - ansicolor: - colormap: xterm + - workspace-cleanup: + clean-if: + - failure: false scm: - git: - url: git://github.com/{github_user}/{github_name}.git + url: https://github.com/{github_user}/{github_name}.git browser: githubweb browser-url: https://github.com/{github_user}/{github_name} branches: @@ -57,11 +62,9 @@ url: https://github.com/{github_user}/{github_name} -## Templates -- job-template: - name: liburcu_{version}_{buildtype} - defaults: liburcu - +## Anchors +- liburcu_build_axes_defaults: &liburcu_build_axes_defaults + name: 'liburcu_build_axes_defaults' project-type: matrix node: 'master' # Applies only to matrix flyweight task axes: @@ -72,22 +75,44 @@ - axis: type: user-defined name: conf - values: - - std - - static - - tls_fallback - - debug-rcu + values: '{obj:conf}' - axis: type: user-defined name: build values: '{obj:build}' +- liburcu_build_builders_defaults: &liburcu_build_builders_defaults + name: 'liburcu_build_builders_defaults' builders: - shell: - !include-raw-escape: scripts/liburcu/build.sh + !include-raw-escape: + - scripts/common/print.sh + - scripts/liburcu/build.sh + +- liburcu_build_builders_win: &liburcu_build_builders_win + name: 'liburcu_build_builders_win' + builders: + - conditional-step: + condition-kind: strings-match + on-evaluation-failure: run + condition-string1: '${{arch}}' + condition-string2: 'cygwin64' + steps: + - shell: + !include-raw-escape: + - scripts/common/cygwin64-shebang + - scripts/common/cygpath-prefix + - scripts/common/print.sh + - scripts/liburcu/build.sh - # TODO: Scan for open tasks +- liburcu_build_publishers_defaults: &liburcu_build_publishers_defaults + name: 'liburcu_build_publishers_defaults' publishers: + - tap: + results: 'tap/**/*.log' + fail-if-no-results: true + failed-tests-mark-build-as-failure: true + todo-is-failure: false - warnings: console-log-parsers: - 'GNU Make + GNU C Compiler (gcc)' @@ -98,13 +123,52 @@ total-normal: 0 total-low: 0 - archive: - artifacts: 'build/**' + artifacts: 'build/**,tap/**' allow-empty: false - ircbot: strategy: new-failure-and-fixed matrix-notifier: only-parent channels: - name: '#lttng' + - email-ext: + recipients: '{obj:email_to}' + reply-to: ci-notification@lists.lttng.org + always: false + unstable: false + first-failure: true + first-unstable: true + not-built: false + aborted: false + regression: false + failure: false + second-failure: false + improvement: false + still-failing: false + success: false + fixed: false + fixed-unhealthy: true + still-unstable: false + pre-build: false + matrix-trigger: only-parent + send-to: + - recipients + +## Templates +- job-template: + name: liburcu_{version}_{buildtype} + defaults: liburcu + + <<: *liburcu_build_axes_defaults + <<: *liburcu_build_builders_defaults + <<: *liburcu_build_publishers_defaults + +- job-template: + name: liburcu_{version}_winbuild + defaults: liburcu + + <<: *liburcu_build_axes_defaults + <<: *liburcu_build_builders_win + <<: *liburcu_build_publishers_defaults - job-template: name: liburcu_{version}_cppcheck @@ -116,24 +180,42 @@ builders: - shell: | - rm -f liburcu-cppcheck.xml - cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/liburcu 2> liburcu-cppcheck.xml + rm -f cppcheck-result.xml + cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/liburcu 2> cppcheck-result.xml publishers: - archive: - artifacts: 'liburcu-cppcheck.xml' + artifacts: 'cppcheck-result.xml' allow-empty: false - cppcheck: - pattern: 'liburcu-cppcheck.xml' - - email: - recipients: 'ci-notification@lists.lttng.org' - notify-every-unstable-build: true - send-to-individuals: false + pattern: 'cppcheck-result.xml' + - email-ext: + recipients: '{obj:email_to}' + reply-to: ci-notification@lists.lttng.org + always: false + unstable: false + first-failure: true + first-unstable: false + not-built: false + aborted: false + regression: false + failure: false + second-failure: false + improvement: false + still-failing: false + success: false + fixed: false + fixed-unhealthy: true + still-unstable: true + pre-build: false + matrix-trigger: only-parent + send-to: + - recipients - job-template: name: liburcu_{version}_scan-build defaults: liburcu - node: 'x86-64' + node: 'amd64' triggers: - pollscm: @@ -152,17 +234,22 @@ - job-template: name: liburcu_{version}_coverity defaults: liburcu - node: 'x86-64' + node: 'amd64' triggers: - pollscm: cron: "@daily" wrappers: - - workspace-cleanup + - ansicolor + - timeout: + timeout: 60 + fail: true + type: absolute - timestamps - - ansicolor: - colormap: xterm + - workspace-cleanup: + clean-if: + - failure: false - credentials-binding: - username-password-separated: credential-id: liburcu_coverity_token @@ -180,38 +267,66 @@ allow-empty: false -## Project +## Views +- view-template: + name: 'Liburcu' + view-type: list + regex: 'liburcu[-_].*' + + +## Projects - project: name: liburcu github_user: urcu github_name: userspace-rcu + email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com' version: - !include: jobs/inc/liburcu-versions.yaml.inc + - stable-0.9 + - stable-0.10 + - stable-0.11 + - stable-0.12 + - master jobs: - 'liburcu_{version}_{buildtype}': buildtype: build - arch: !!python/tuple [x86-32, x86-64] + arch: !!python/tuple [amd64] build: !!python/tuple [std, oot, dist] + conf: !!python/tuple [std, static, tls_fallback, debug-rcu] - 'liburcu_{version}_{buildtype}': buildtype: portbuild - arch: !!python/tuple [armhf, arm64, powerpc, ppc64el] + arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386] build: !!python/tuple [std] + conf: !!python/tuple [std, static, tls_fallback, debug-rcu] + - 'liburcu_{version}_{buildtype}': + buildtype: slesbuild + arch: !!python/tuple [sles12sp2] + build: !!python/tuple [std] + conf: !!python/tuple [std] + - 'liburcu_{version}_{buildtype}': + buildtype: elbuild + arch: !!python/tuple [el8] + build: !!python/tuple [std] + conf: !!python/tuple [std] - 'liburcu_{version}_{buildtype}': buildtype: solarisbuild - arch: !!python/tuple [solaris10, solaris11] + arch: !!python/tuple [sol10-i386, sol11-i386] build: !!python/tuple [std] - version: # Solaris support was introduced in 0.9 - - master - - stable-0.9 + conf: !!python/tuple [std, static, tls_fallback, debug-rcu] - 'liburcu_{version}_{buildtype}': buildtype: macosxbuild arch: !!python/tuple [macosx] build: !!python/tuple [std] - version: - - master - - stable-0.9 + conf: !!python/tuple [std, static, tls_fallback, debug-rcu] + - 'liburcu_{version}_winbuild': + arch: !!python/tuple [cygwin64] + build: !!python/tuple [std] + conf: !!python/tuple [std] - 'liburcu_{version}_cppcheck' - 'liburcu_{version}_scan-build' - 'liburcu_{version}_coverity': version: master +- project: + name: liburcu-views + views: + - Liburcu