Update .gitlab-ci.yml file

This commit is contained in:
Adrien Bourmault 2022-10-10 16:39:05 +00:00
parent 9fbc51db55
commit d7e957f9e4
1 changed files with 3 additions and 0 deletions

View File

@ -26,9 +26,12 @@ test-job: # This job runs in the test stage.
- |+
if [ -z "$CI_COMMIT_SHA" ]; then
files=$(find . -name "*.zone" -printf %P)
echo "Pipeline régulier"
else
files=$(echo $(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA) | grep zone)
echo "Pipeline exceptionnel"
fi
- |+
if [ -z "$files" ]; then
echo "Pas de fichier de zone à tester"