From a2d9802612f3cde62b6089f2d06967530b2cb242 Mon Sep 17 00:00:00 2001 From: Josh Morgenstern <josh@morgenstern.dev> Date: Fri, 28 May 2021 18:32:41 +0200 Subject: [PATCH] [#47] add "RUN" variable --- .gitlab-ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f504d34a..5d33ac9a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,8 +1,16 @@ +variables: + RUN: + value: "all" + description: "The tests that should run. Possible values: ubuntu, win10, all." + stages: - build - deploy build_ubuntu_gcc: + only: + variables: + - $RUN =~ /\bubuntu.*/i || $TARGET =~ /\ball.*/i stage: build tags: - ubuntu-gcc @@ -23,6 +31,9 @@ build_ubuntu_gcc: expire_in: never build_win10_msvc: + only: + variables: + - $RUN =~ /\bwin10.*/i || $TARGET =~ /\ball.*/i stage: build tags: - win10-msvc -- GitLab