mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 06:55:30 +00:00
Tweak pipeline triggering settings
In an attempt to ensure that: - all important changes to repository contents are tested, - pipelines are not automatically created for every single push, - some flexibility is allowed for corner cases, change pipeline triggering settings so that: - full build & test pipelines are only automatically created for merge requests and tags (both for creation and updates), - pipelines for other repository changes (e.g. pushes to arbitrary branches) can only be created manually, using GitLab's web interface, - merging a merge request only causes jobs pushing the updated ARM to GitLab Pages to be run (as semi-linear Git history is enforced and thus testing a MR is identical to testing the target branch post-merge in terms of code), - repository synchronization does not trigger duplicate pipelines in projects which are set as mirroring targets.
This commit is contained in:
@@ -69,11 +69,19 @@ stages:
|
|||||||
image: "$CI_REGISTRY_IMAGE:ubuntu-bionic-i386"
|
image: "$CI_REGISTRY_IMAGE:ubuntu-bionic-i386"
|
||||||
<<: *linux_i386
|
<<: *linux_i386
|
||||||
|
|
||||||
|
.default-triggering-rules: &default_triggering_rules
|
||||||
|
only:
|
||||||
|
- merge_requests
|
||||||
|
- tags
|
||||||
|
- web
|
||||||
|
|
||||||
.precheck: &precheck_job
|
.precheck: &precheck_job
|
||||||
|
<<: *default_triggering_rules
|
||||||
<<: *debian_sid_amd64_image
|
<<: *debian_sid_amd64_image
|
||||||
stage: precheck
|
stage: precheck
|
||||||
|
|
||||||
.build: &build_job
|
.build: &build_job
|
||||||
|
<<: *default_triggering_rules
|
||||||
stage: build
|
stage: build
|
||||||
before_script:
|
before_script:
|
||||||
- test -w "${CCACHE_DIR}" && export PATH="/usr/lib/ccache:${PATH}"
|
- test -w "${CCACHE_DIR}" && export PATH="/usr/lib/ccache:${PATH}"
|
||||||
@@ -83,10 +91,9 @@ stages:
|
|||||||
artifacts:
|
artifacts:
|
||||||
untracked: true
|
untracked: true
|
||||||
expire_in: '1 hour'
|
expire_in: '1 hour'
|
||||||
only:
|
|
||||||
- merge_requests
|
|
||||||
|
|
||||||
.system_test: &system_test_job
|
.system_test: &system_test_job
|
||||||
|
<<: *default_triggering_rules
|
||||||
stage: test
|
stage: test
|
||||||
retry: 2
|
retry: 2
|
||||||
before_script:
|
before_script:
|
||||||
@@ -99,10 +106,9 @@ stages:
|
|||||||
untracked: true
|
untracked: true
|
||||||
expire_in: '1 week'
|
expire_in: '1 week'
|
||||||
when: on_failure
|
when: on_failure
|
||||||
only:
|
|
||||||
- merge_requests
|
|
||||||
|
|
||||||
.unit_test: &unit_test_job
|
.unit_test: &unit_test_job
|
||||||
|
<<: *default_triggering_rules
|
||||||
stage: test
|
stage: test
|
||||||
before_script:
|
before_script:
|
||||||
- export KYUA_RESULT="$CI_PROJECT_DIR/kyua.results"
|
- export KYUA_RESULT="$CI_PROJECT_DIR/kyua.results"
|
||||||
@@ -118,8 +124,6 @@ stages:
|
|||||||
- kyua_html/
|
- kyua_html/
|
||||||
expire_in: '1 week'
|
expire_in: '1 week'
|
||||||
when: on_failure
|
when: on_failure
|
||||||
only:
|
|
||||||
- merge_requests
|
|
||||||
|
|
||||||
misc:sid:amd64:
|
misc:sid:amd64:
|
||||||
<<: *precheck_job
|
<<: *precheck_job
|
||||||
@@ -142,14 +146,10 @@ misc:sid:amd64:
|
|||||||
- checklibs.out
|
- checklibs.out
|
||||||
expire_in: '1 week'
|
expire_in: '1 week'
|
||||||
when: on_failure
|
when: on_failure
|
||||||
only:
|
|
||||||
- merge_requests
|
|
||||||
|
|
||||||
🐞:sid:amd64:
|
🐞:sid:amd64:
|
||||||
<<: *precheck_job
|
<<: *precheck_job
|
||||||
script: util/check-cocci
|
script: util/check-cocci
|
||||||
only:
|
|
||||||
- merge_requests
|
|
||||||
|
|
||||||
docs:sid:amd64:
|
docs:sid:amd64:
|
||||||
<<: *debian_sid_amd64_image
|
<<: *debian_sid_amd64_image
|
||||||
@@ -164,8 +164,10 @@ docs:sid:amd64:
|
|||||||
expire_in: '1 month'
|
expire_in: '1 month'
|
||||||
only:
|
only:
|
||||||
- merge_requests
|
- merge_requests
|
||||||
|
- tags
|
||||||
|
- web
|
||||||
- master@isc-projects/bind9
|
- master@isc-projects/bind9
|
||||||
- /^v9_.*$/@isc-projects/bind9
|
- /^v9_[1-9][0-9]$/@isc-projects/bind9
|
||||||
|
|
||||||
push:docs:sid:amd64:
|
push:docs:sid:amd64:
|
||||||
<<: *debian_sid_amd64_image
|
<<: *debian_sid_amd64_image
|
||||||
@@ -175,7 +177,7 @@ push:docs:sid:amd64:
|
|||||||
- curl -X POST -F token=$GITLAB_PAGES_DOCS_TRIGGER_TOKEN -F ref=master $GITLAB_PAGES_DOCS_TRIGGER_URL
|
- curl -X POST -F token=$GITLAB_PAGES_DOCS_TRIGGER_TOKEN -F ref=master $GITLAB_PAGES_DOCS_TRIGGER_URL
|
||||||
only:
|
only:
|
||||||
- master@isc-projects/bind9
|
- master@isc-projects/bind9
|
||||||
- /^v9_.*$/@isc-projects/bind9
|
- /^v9_[1-9][0-9]$/@isc-projects/bind9
|
||||||
|
|
||||||
gcc:centos6:amd64:
|
gcc:centos6:amd64:
|
||||||
variables:
|
variables:
|
||||||
@@ -263,42 +265,27 @@ gcc:sid:amd64:
|
|||||||
EXTRA_CONFIGURE: "--with-libidn2"
|
EXTRA_CONFIGURE: "--with-libidn2"
|
||||||
<<: *debian_sid_amd64_image
|
<<: *debian_sid_amd64_image
|
||||||
<<: *build_job
|
<<: *build_job
|
||||||
only:
|
|
||||||
- merge_requests
|
|
||||||
- master@isc-projects/bind9
|
|
||||||
- /^v9_.*$/@isc-projects/bind9
|
|
||||||
|
|
||||||
install:gcc:sid:amd64:
|
install:gcc:sid:amd64:
|
||||||
|
<<: *default_triggering_rules
|
||||||
<<: *debian_sid_amd64_image
|
<<: *debian_sid_amd64_image
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- make install
|
- make install
|
||||||
dependencies:
|
dependencies:
|
||||||
- gcc:sid:amd64
|
- gcc:sid:amd64
|
||||||
only:
|
|
||||||
- merge_requests
|
|
||||||
- master@isc-projects/bind9
|
|
||||||
- /^v9_.*$/@isc-projects/bind9
|
|
||||||
|
|
||||||
system:gcc:sid:amd64:
|
system:gcc:sid:amd64:
|
||||||
<<: *debian_sid_amd64_image
|
<<: *debian_sid_amd64_image
|
||||||
<<: *system_test_job
|
<<: *system_test_job
|
||||||
dependencies:
|
dependencies:
|
||||||
- gcc:sid:amd64
|
- gcc:sid:amd64
|
||||||
only:
|
|
||||||
- merge_requests
|
|
||||||
- master@isc-projects/bind9
|
|
||||||
- /^v9_.*$/@isc-projects/bind9
|
|
||||||
|
|
||||||
unit:gcc:sid:amd64:
|
unit:gcc:sid:amd64:
|
||||||
<<: *debian_sid_amd64_image
|
<<: *debian_sid_amd64_image
|
||||||
<<: *unit_test_job
|
<<: *unit_test_job
|
||||||
dependencies:
|
dependencies:
|
||||||
- gcc:sid:amd64
|
- gcc:sid:amd64
|
||||||
only:
|
|
||||||
- merge_requests
|
|
||||||
- master@isc-projects/bind9
|
|
||||||
- /^v9_.*$/@isc-projects/bind9
|
|
||||||
|
|
||||||
gcc:sid:i386:
|
gcc:sid:i386:
|
||||||
variables:
|
variables:
|
||||||
|
Reference in New Issue
Block a user