From 9c8360ad671742f6fe61f2d1b368d2cb5743666f Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Thu, 5 Dec 2019 13:58:39 +0100 Subject: [PATCH] ci: Do not run usual targets from a scheduled job This is in preparation to building docker images automatically. --- .gitlab-ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cf19872..e7427e9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -31,6 +31,9 @@ image: "$FEDORA_IMAGE" build: stage: build + except: + variables: + - $CI_PIPELINE_SOURCE == "schedule" variables: driver: virtual_image <<: *build_one_driver @@ -39,6 +42,9 @@ build: test: stage: test + except: + variables: + - $CI_PIPELINE_SOURCE == "schedule" script: - meson --werror -Ddrivers=all . _build - ninja -C _build @@ -46,6 +52,9 @@ test: test_valgrind: stage: test + except: + variables: + - $CI_PIPELINE_SOURCE == "schedule" script: - meson -Ddrivers=all . _build - ninja -C _build @@ -53,6 +62,9 @@ test_valgrind: test_indent: stage: check-source + except: + variables: + - $CI_PIPELINE_SOURCE == "schedule" script: - scripts/uncrustify.sh --check @@ -82,6 +94,9 @@ test_indent: .flatpak_master_template: &flatpak_master image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:3.32 stage: flatpack + except: + variables: + - $CI_PIPELINE_SOURCE == "schedule" variables: MANIFEST_PATH: "demo/org.freedesktop.libfprint.Demo.json" # From demo/org.freedesktop.libfprint.Demo.json