X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=jobs%2Flibrseq.yaml;h=97e45cba877e58b0db44747b05a4427536475e74;hb=780f6285f0c5ee0028893b00b25b6a5778e7c5a2;hp=392b0d2aef2d31984cc863c658a42ffb3e8aec6e;hpb=ae855ba141f3a5e8236c709e40e2b7b4673f4609;p=lttng-ci.git diff --git a/jobs/librseq.yaml b/jobs/librseq.yaml index 392b0d2..97e45cb 100644 --- a/jobs/librseq.yaml +++ b/jobs/librseq.yaml @@ -22,7 +22,7 @@ - timeout: timeout: 10 fail: true - type: absolute + type: no-activity - timestamps - workspace-cleanup: clean-if: @@ -30,7 +30,7 @@ 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: @@ -97,11 +97,18 @@ name: 'librseq_build_builders_defaults' builders: - shell: - !include-raw-escape: scripts/librseq/build.sh + !include-raw-escape: + - scripts/common/print.sh + - scripts/librseq/build.sh - librseq_build_publishers_defaults: &librseq_build_publishers_defaults name: 'librseq_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)' @@ -112,7 +119,7 @@ total-normal: 0 total-low: 0 - archive: - artifacts: 'build/**' + artifacts: 'build/**,tap/**' allow-empty: false - ircbot: strategy: new-failure-and-fixed @@ -142,6 +149,28 @@ send-to: - recipients +- librseq_build_publishers_gerrit: &librseq_build_publishers_gerrit + name: 'librseq_build_publishers_gerrit' + 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)' + total-thresholds: + failed: + total-all: 0 + total-high: 0 + total-normal: 0 + total-low: 0 + - archive: + artifacts: 'build/**,tap/**' + allow-empty: false + + ## Templates - job-template: name: librseq_{version}_{buildtype} @@ -201,6 +230,48 @@ send-to: - recipients +- job-template: + name: dev_gerrit_librseq_{buildtype} + defaults: librseq + concurrent: true + + scm: + - git: + url: https://review.lttng.org/librseq + refspec: 'refs/changes/*:refs/changes/*' + branches: + - '$GERRIT_REFSPEC' + basedir: src/librseq + skip-tag: true + + triggers: + - gerrit: + trigger-on: + - comment-added-event: + approval-category: 'CI-Build' + approval-value: 1 + projects: + - project-compare-type: 'PLAIN' + project-pattern: 'librseq' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**' + + <<: *librseq_build_axes_defaults + <<: *librseq_build_builders_defaults + <<: *librseq_build_publishers_gerrit + + properties: + - inject: + properties-content: | + PROJECT_NAME=librseq + - build-discarder: + days-to-keep: 1 + - throttle: + option: 'category' + categories: + - 'gerrit-{buildtype}' + - job-template: name: librseq_{version}_scan-build defaults: librseq @@ -232,9 +303,9 @@ wrappers: - ansicolor - timeout: - timeout: 60 + timeout: 10 fail: true - type: absolute + type: no-activity - timestamps - workspace-cleanup: clean-if: @@ -259,7 +330,7 @@ name: 'rseq' description: 'Restartable sequences' view-type: list - regex: 'librseq_.*|linux-rseq_.*' + regex: 'librseq_.*' ## Project @@ -274,7 +345,7 @@ - 'librseq_{version}_{buildtype}': buildtype: build arch: !!python/tuple [amd64] - build: !!python/tuple [std, oot, dist] + build: !!python/tuple [std, oot, dist, oot-dist] conf: !!python/tuple [std, static] - 'librseq_{version}_{cctype}': cctype: gccbuild @@ -298,6 +369,17 @@ # - 'librseq_{version}_coverity': # version: master +- project: + name: gerrit-librseq + github_user: compudj + github_name: librseq + jobs: + - 'dev_gerrit_librseq_{buildtype}': + buildtype: build + arch: !!python/tuple [amd64] + build: !!python/tuple [std, oot, dist, oot-dist] + conf: !!python/tuple [std, static] + - project: name: librseq-views views: