From 3ce1817ed5d519917faa15b2722845fc7f23aa34 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Mon, 10 Oct 2022 16:34:37 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 494be88..ced4e0c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -29,11 +29,14 @@ test-job: # This job runs in the test stage. else files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA | grep zone) fi + - |+ if [ -z "$files" ]; then - echo "Pas de fichier de zone à tester" && sleep 3 && exit 1 + echo "Pas de fichier de zone à tester" else echo "Test des zones $files." fi + + - [ -z "$files" ] && exit 1 deploy-job: # This job runs in the deploy stage. stage: deploy # It only runs when *both* jobs in the test stage complete successfully.