ci: Do not run usual targets from a scheduled job

This is in preparation to building docker images automatically.
This commit is contained in:
Benjamin Berg 2019-12-05 13:58:39 +01:00
parent 0c7d2d8ecd
commit 9c8360ad67

View file

@ -31,6 +31,9 @@ image: "$FEDORA_IMAGE"
build: build:
stage: build stage: build
except:
variables:
- $CI_PIPELINE_SOURCE == "schedule"
variables: variables:
driver: virtual_image driver: virtual_image
<<: *build_one_driver <<: *build_one_driver
@ -39,6 +42,9 @@ build:
test: test:
stage: test stage: test
except:
variables:
- $CI_PIPELINE_SOURCE == "schedule"
script: script:
- meson --werror -Ddrivers=all . _build - meson --werror -Ddrivers=all . _build
- ninja -C _build - ninja -C _build
@ -46,6 +52,9 @@ test:
test_valgrind: test_valgrind:
stage: test stage: test
except:
variables:
- $CI_PIPELINE_SOURCE == "schedule"
script: script:
- meson -Ddrivers=all . _build - meson -Ddrivers=all . _build
- ninja -C _build - ninja -C _build
@ -53,6 +62,9 @@ test_valgrind:
test_indent: test_indent:
stage: check-source stage: check-source
except:
variables:
- $CI_PIPELINE_SOURCE == "schedule"
script: script:
- scripts/uncrustify.sh --check - scripts/uncrustify.sh --check
@ -82,6 +94,9 @@ test_indent:
.flatpak_master_template: &flatpak_master .flatpak_master_template: &flatpak_master
image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:3.32 image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:3.32
stage: flatpack stage: flatpack
except:
variables:
- $CI_PIPELINE_SOURCE == "schedule"
variables: variables:
MANIFEST_PATH: "demo/org.freedesktop.libfprint.Demo.json" MANIFEST_PATH: "demo/org.freedesktop.libfprint.Demo.json"
# From demo/org.freedesktop.libfprint.Demo.json # From demo/org.freedesktop.libfprint.Demo.json