Update .gitlab-ci.yml file
This commit is contained in:
parent
ae004efc82
commit
1a444ebded
|
@ -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.
|
stage: test # It only starts when the job in the build stage completes successfully.
|
||||||
script:
|
script:
|
||||||
- |+
|
- |+
|
||||||
|
files=
|
||||||
if [ -z "$CI_COMMIT_SHA" ]
|
if [ -z "$CI_COMMIT_SHA" ]
|
||||||
then
|
then
|
||||||
files=$(find . -name "*.zone" -printf %P)
|
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)
|
files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA)
|
||||||
echo "Pipeline exceptionnel"
|
echo "Pipeline exceptionnel"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- |+
|
|
||||||
if [ ! "$files" =~ .*"zone".* ]; then
|
if [ ! "$files" =~ .*"zone".* ]; then
|
||||||
echo "Pas de fichier de zone à tester"
|
echo "Pas de fichier de zone à tester"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue