From 97866c4c44f9044dbff4bb26ad12e9e0a63229c1 Mon Sep 17 00:00:00 2001 From: Timo Koch <timo.koch@iws.uni-stuttgart.de> Date: Wed, 4 Jan 2023 11:48:58 +0100 Subject: [PATCH] [gitlab-ci] Introduce variable to skip test selection (run all test) --- .gitlab-ci/default.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci/default.yml b/.gitlab-ci/default.yml index 6b04a76eb5..195b0c83d2 100644 --- a/.gitlab-ci/default.yml +++ b/.gitlab-ci/default.yml @@ -92,7 +92,12 @@ select tests: stage: select script: - | - if [[ -n "$MR_TARGET_BRANCH_NAME" ]]; then + if [[ -n "$DUMUX_SKIP_TEST_SELECTION" ]]; then + echo "Skipping test selection, build/test stages will consider all tests!" + touch affectedtests.json + touch changedfiles.txt + + elif [[ -n "$MR_TARGET_BRANCH_NAME" ]]; then echo "Detecting changes w.r.t to target branch '$MR_TARGET_BRANCH_NAME'" python3 bin/testing/getchangedfiles.py --outfile changedfiles.txt \ --target-tree origin/$MR_TARGET_BRANCH_NAME -- GitLab