mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 23:58:54 +02:00
ci: Replace .build-only-schedules template with multiple extension
`.build` and `.only-schedules` are orthogonal, and I want to use `.only-schedules` together with `.cross-template` in future, which would require creating more cross-product templates. Avoid that by splitting `extends: .build-only-schedules` into ``` extends: - .build - .only-schedules ``` Multiple extends are supported by GitLab: https://docs.gitlab.com/ee/ci/yaml/#extends This introduces no functional changes. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
@@ -26,20 +26,21 @@ variables:
|
|||||||
except:
|
except:
|
||||||
- tags
|
- tags
|
||||||
|
|
||||||
|
# Some jobs take a long time and are unlikely to find failures (or will find
|
||||||
|
# failures which are not merge-blockers to fix), so they’re executed on a weekly
|
||||||
|
# schedule in order to save CI resources and speed up branch pipelines.
|
||||||
|
.only-schedules:
|
||||||
|
only:
|
||||||
|
- schedules
|
||||||
|
except:
|
||||||
|
- tags
|
||||||
|
|
||||||
.build:
|
.build:
|
||||||
extends: .only-default
|
extends: .only-default
|
||||||
before_script:
|
before_script:
|
||||||
- bash .gitlab-ci/show-execution-environment.sh
|
- bash .gitlab-ci/show-execution-environment.sh
|
||||||
- cp -r $HOME/subprojects/* subprojects/
|
- cp -r $HOME/subprojects/* subprojects/
|
||||||
|
|
||||||
# Some jobs take a long time and are unlikely to find failures (or will find
|
|
||||||
# failures which are not merge-blockers to fix), so they’re executed on a weekly
|
|
||||||
# schedule in order to save CI resources and speed up branch pipelines.
|
|
||||||
.build-only-schedules:
|
|
||||||
extends: .build
|
|
||||||
only:
|
|
||||||
- schedules
|
|
||||||
|
|
||||||
style-check-diff:
|
style-check-diff:
|
||||||
extends: .only-default
|
extends: .only-default
|
||||||
image: $DEBIAN_IMAGE
|
image: $DEBIAN_IMAGE
|
||||||
@@ -139,7 +140,9 @@ debian-stable-x86_64:
|
|||||||
- "_build/${CI_JOB_NAME}-report.xml"
|
- "_build/${CI_JOB_NAME}-report.xml"
|
||||||
|
|
||||||
installed-tests:
|
installed-tests:
|
||||||
extends: .build-only-schedules
|
extends:
|
||||||
|
- .build
|
||||||
|
- .only-schedules
|
||||||
image: $FEDORA_IMAGE
|
image: $FEDORA_IMAGE
|
||||||
stage: build
|
stage: build
|
||||||
needs: []
|
needs: []
|
||||||
@@ -175,7 +178,9 @@ installed-tests:
|
|||||||
- "_build/installed-tests-report/"
|
- "_build/installed-tests-report/"
|
||||||
|
|
||||||
G_DISABLE_ASSERT:
|
G_DISABLE_ASSERT:
|
||||||
extends: .build-only-schedules
|
extends:
|
||||||
|
- .build
|
||||||
|
- .only-schedules
|
||||||
image: $FEDORA_IMAGE
|
image: $FEDORA_IMAGE
|
||||||
stage: build
|
stage: build
|
||||||
needs: []
|
needs: []
|
||||||
@@ -202,7 +207,9 @@ G_DISABLE_ASSERT:
|
|||||||
- "_build/${CI_JOB_NAME}-report.xml"
|
- "_build/${CI_JOB_NAME}-report.xml"
|
||||||
|
|
||||||
valgrind:
|
valgrind:
|
||||||
extends: .build-only-schedules
|
extends:
|
||||||
|
- .build
|
||||||
|
- .only-schedules
|
||||||
image: $FEDORA_IMAGE
|
image: $FEDORA_IMAGE
|
||||||
stage: analysis
|
stage: analysis
|
||||||
needs: []
|
needs: []
|
||||||
@@ -478,7 +485,9 @@ coverage:
|
|||||||
coverage: '/^\s+lines\.+:\s+([\d.]+\%)\s+/'
|
coverage: '/^\s+lines\.+:\s+([\d.]+\%)\s+/'
|
||||||
|
|
||||||
scan-build:
|
scan-build:
|
||||||
extends: .build-only-schedules
|
extends:
|
||||||
|
- .build
|
||||||
|
- .only-schedules
|
||||||
image: $FEDORA_IMAGE
|
image: $FEDORA_IMAGE
|
||||||
stage: analysis
|
stage: analysis
|
||||||
needs: []
|
needs: []
|
||||||
@@ -502,7 +511,9 @@ scan-build:
|
|||||||
- "_scan_build/meson-logs/scanbuild"
|
- "_scan_build/meson-logs/scanbuild"
|
||||||
|
|
||||||
coverity:
|
coverity:
|
||||||
extends: .build-only-schedules
|
extends:
|
||||||
|
- .build
|
||||||
|
- .only-schedules
|
||||||
image: $COVERITY_IMAGE
|
image: $COVERITY_IMAGE
|
||||||
stage: analysis
|
stage: analysis
|
||||||
needs: []
|
needs: []
|
||||||
|
Reference in New Issue
Block a user