From 1a444ebdeda71c26bb70f4ff67c3bbb31fa8b22f Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Mon, 10 Oct 2022 16:47:01 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d21d395..a6043db 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,6 +24,7 @@ test-job: # This job runs in the test stage. stage: test # It only starts when the job in the build stage completes successfully. script: - |+ + files= if [ -z "$CI_COMMIT_SHA" ] then files=$(find . -name "*.zone" -printf %P) @@ -32,8 +33,6 @@ test-job: # This job runs in the test stage. files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA) echo "Pipeline exceptionnel" fi - - - |+ if [ ! "$files" =~ .*"zone".* ]; then echo "Pas de fichier de zone à tester" else