summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2020-07-27 11:54:58 +0100
committerPhilip Withnall <withnall@endlessm.com>2020-07-27 12:10:41 +0100
commitfeab973662d6370ddd6e3df143c0033d54a228d1 (patch)
treeea118843bb63d3c4af15a61aeff20d255dd41af2
parent87bc87ae6926bb4467ab65155ddbc55dd04f4da1 (diff)
downloadglib-feab973662d6370ddd6e3df143c0033d54a228d1.tar.gz
ci: Move some CI jobs from branches to schedules
These jobs (`scan-build` and `valgrind`) take ages to run and rarely indicate failures, so move them to a weekly schedule, rather than running them on each branch/MR. The current schedule is once weekly: https://gitlab.gnome.org/GNOME/glib/-/pipeline_schedules. Signed-off-by: Philip Withnall <withnall@endlessm.com>
-rw-r--r--.gitlab-ci.yml16
1 files changed, 12 insertions, 4 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e25d57bd9..4231eceaa 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -31,6 +31,14 @@ variables:
- bash .gitlab-ci/show-execution-environment.sh
- 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:
extends: .only-default
image: $DEBIAN_IMAGE
@@ -123,7 +131,7 @@ debian-stable-x86_64:
- "_build/${CI_JOB_NAME}-report.xml"
installed-tests:
- extends: .build
+ extends: .build-only-schedules
image: $FEDORA_IMAGE
stage: build
script:
@@ -177,7 +185,7 @@ installed-tests:
- "_build/installed-tests-report/"
G_DISABLE_ASSERT:
- extends: .build
+ extends: .build-only-schedules
image: $FEDORA_IMAGE
stage: build
script:
@@ -203,7 +211,7 @@ G_DISABLE_ASSERT:
- "_build/${CI_JOB_NAME}-report.xml"
valgrind:
- extends: .build
+ extends: .build-only-schedules
image: $FEDORA_IMAGE
stage: analysis
variables:
@@ -429,7 +437,7 @@ coverage:
coverage: '/^\s+lines\.+:\s+([\d.]+\%)\s+/'
scan-build:
- extends: .build
+ extends: .build-only-schedules
image: $FEDORA_IMAGE
stage: analysis
script: