Update .gitlab-ci.yml file
This commit is contained in:
parent
4bc7aa60c7
commit
3ce1817ed5
|
@ -29,12 +29,15 @@ test-job: # This job runs in the test stage.
|
||||||
else
|
else
|
||||||
files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA | grep zone)
|
files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA | grep zone)
|
||||||
fi
|
fi
|
||||||
|
- |+
|
||||||
if [ -z "$files" ]; then
|
if [ -z "$files" ]; then
|
||||||
echo "Pas de fichier de zone à tester" && sleep 3 && exit 1
|
echo "Pas de fichier de zone à tester"
|
||||||
else
|
else
|
||||||
echo "Test des zones $files."
|
echo "Test des zones $files."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- [ -z "$files" ] && exit 1
|
||||||
|
|
||||||
deploy-job: # This job runs in the deploy stage.
|
deploy-job: # This job runs in the deploy stage.
|
||||||
stage: deploy # It only runs when *both* jobs in the test stage complete successfully.
|
stage: deploy # It only runs when *both* jobs in the test stage complete successfully.
|
||||||
script:
|
script:
|
||||||
|
|
Loading…
Reference in New Issue