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.