Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.com>2020-04-22 09:33:36 +0300
committerGuillaume Desmottes <guillaume.desmottes@collabora.com>2020-04-27 13:19:17 +0300
commitf34673b70463f6b5a0a756aec0ed0b179f5da05f (patch)
treea17e5f3678f9e3a33ca5f7a7bf6e8ac6c754a47c /.gitlab-ci.yml
parent54586c6ecc62ba78ee5b20452ccc5e0fbd1e49ce (diff)
ci: add update jobs
Those jobs are triggered by gstreamer-rs when their images are updated so we can rebuild ours. Also disable normal building jobs and unrelated tests when updating a specific image as they are not needed. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/321>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9a6a96c03..21ceb139d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -49,6 +49,8 @@ stages:
stage: prep
variables:
FDO_DISTRIBUTION_PACKAGES: "libcsound64-dev llvm clang nasm libsodium-dev"
+ rules:
+ - if: '$UPDATE_IMG == null'
build-stable:
extends:
@@ -65,6 +67,28 @@ build-nightly:
- .build-debian-container
- .debian:10-nightly
+# Those jobs are triggered by gstreamer-rs when updating its images
+update-stable:
+ extends: build-stable
+ rules:
+ - if: '$UPDATE_IMG == "stable"'
+ variables:
+ FDO_FORCE_REBUILD: 1
+
+update-1-40:
+ extends: build-1-40
+ rules:
+ - if: '$UPDATE_IMG == "1-40"'
+ variables:
+ FDO_FORCE_REBUILD: 1
+
+update-nightly:
+ extends: build-nightly
+ rules:
+ - if: '$UPDATE_IMG == "nightly"'
+ variables:
+ FDO_FORCE_REBUILD: 1
+
.dist-debian-container:
extends:
- .fdo.distribution-image@debian
@@ -110,17 +134,23 @@ test 1.40:
extends:
- '.cargo test'
- .img-1-40
+ rules:
+ - if: '$UPDATE_IMG == null || $UPDATE_IMG == "1-40"'
test stable:
extends:
- '.cargo test'
- .img-stable
+ rules:
+ - if: '$UPDATE_IMG == null || $UPDATE_IMG == "stable"'
test nightly:
allow_failure: true
extends:
- '.cargo test'
- .img-nightly
+ rules:
+ - if: '$UPDATE_IMG == null || $UPDATE_IMG == "nightly"'
rustfmt:
extends: .img-stable