From edd7f90b776759ecdb75409463c7f23a43e027ea Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Wed, 10 Jul 2019 17:16:53 +0200 Subject: [PATCH] ci: don't build examples with Make on pushes Still build the examples with make on: - triggered pipelines - master, release branches, tags - scheduled and manual (web) pipelines --- tools/ci/config/build.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/ci/config/build.yml b/tools/ci/config/build.yml index 907492a52..5e6b3cde0 100644 --- a/tools/ci/config/build.yml +++ b/tools/ci/config/build.yml @@ -127,12 +127,21 @@ build_examples_make: variables: LOG_PATH: "$CI_PROJECT_DIR/log_examples_make" only: + # Here both 'variables' and 'refs' conditions are given. They are combined with "AND" logic. variables: - $BOT_TRIGGER_WITH_LABEL == null - $BOT_LABEL_BUILD - $BOT_LABEL_EXAMPLE_TEST - $BOT_LABEL_REGULAR_TEST - $BOT_LABEL_WEEKEND_TEST + refs: + - master + - /^release\/v/ + - /^v\d+\.\d+(\.\d+)?($|-)/ + - triggers + - schedules + - pipelines + - web script: # it's not possible to build 100% out-of-tree and have the "artifacts" # mechanism work, but this is the next best thing