X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=jobs%2Fbabeltrace.yaml;h=5e0d6d1a4b738e46f24a8ba66d5d451aa29171d5;hb=07fd33e128b947f9a76910f7b13f7d2a234cc514;hp=b45bd7040c5d611efd3699bdcb7d6a71f0e91cc3;hpb=6a4bf0626a390457d66a53c1220447f5da00bf37;p=lttng-ci.git diff --git a/jobs/babeltrace.yaml b/jobs/babeltrace.yaml index b45bd70..5e0d6d1 100644 --- a/jobs/babeltrace.yaml +++ b/jobs/babeltrace.yaml @@ -335,7 +335,7 @@ node: 'master' # Applies only to matrix flyweight task execution-strategy: combination-filter: | - (build=="std" && conf=="std") || (arch=="amd64") + {filter} axes: - axis: type: slave @@ -358,9 +358,56 @@ properties-content: | PROJECT_NAME=babeltrace - build-discarder: - days-to-keep: 2 - - github: - url: https://github.com/{github_user}/{github_name} + days-to-keep: 1 + - throttle: + option: 'category' + categories: + - 'gerrit' + +- job-template: + name: dev_gerrit_babeltrace_black + defaults: babeltrace + concurrent: true + + scm: + - git: + url: https://review.lttng.org/babeltrace + refspec: 'refs/changes/*:refs/changes/*' + branches: + - '$GERRIT_REFSPEC' + basedir: src/babeltrace + skip-tag: true + + triggers: + - gerrit: + trigger-on: + - comment-added-event: + approval-category: 'CI-Build' + approval-value: 1 + projects: + - project-compare-type: 'PLAIN' + project-pattern: 'babeltrace' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**' + trigger-for-unreviewed-patches: true + + node: 'amd64' + + builders: + - shell: + !include-raw-escape: scripts/babeltrace/black.sh + + properties: + - inject: + properties-content: | + PROJECT_NAME=babeltrace + - build-discarder: + days-to-keep: 1 + - throttle: + option: 'category' + categories: + - 'gerrit' - job-template: name: babeltrace_{version}_cppcheck @@ -691,6 +738,14 @@ arch: !!python/tuple [amd64, armhf, arm64, powerpc, ppc64el, i386] build: !!python/tuple [std, oot, dist, oot-dist] conf: !!python/tuple [std, static, prod, min] + filter: '(build=="std" && conf=="std") || (arch=="amd64")' + - 'dev_gerrit_babeltrace_{buildtype}': + buildtype: macosxbuild + arch: !!python/tuple [macosx] + build: !!python/tuple [std] + conf: !!python/tuple [std, prod] + filter: '' + - 'dev_gerrit_babeltrace_black' - project: