Update .gitlab-ci.yml file

This commit is contained in:
Adrien Bourmault 2022-10-10 16:57:34 +00:00
parent ca1b4c0889
commit cfd35cafb3
1 changed files with 1 additions and 9 deletions

View File

@ -24,15 +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)
echo "Pipeline régulier"
else
files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA)
echo "Pipeline exceptionnel"
fi
files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA)
if [ "$files" =~ .*"zone".* ]
then
echo "Test des zones $files."