Update .gitlab-ci.yml file
This commit is contained in:
parent
3193e5c59d
commit
52ddc53769
|
@ -27,7 +27,11 @@ test-job: # This job runs in the test stage.
|
|||
if [ -z "$CI_COMMIT_SHA" ]; then
|
||||
files=$(find . -name "*.zone" -printf %P)
|
||||
else
|
||||
files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA)
|
||||
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"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- echo "Test des zones $files."
|
||||
|
@ -39,7 +43,7 @@ deploy-job: # This job runs in the deploy stage.
|
|||
if [ -z "$CI_COMMIT_SHA" ]; then
|
||||
files=$(find . -name "*.zone" -printf %P)
|
||||
else
|
||||
files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA)
|
||||
files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA | grep zone)
|
||||
fi
|
||||
|
||||
- echo "Déploiement des zones $files..."
|
||||
|
|
Loading…
Reference in New Issue