Update .gitlab-ci.yml file

This commit is contained in:
Adrien Bourmault 2022-12-18 12:11:45 +00:00
parent c47cf8b220
commit 79dee8de38
1 changed files with 5 additions and 16 deletions

View File

@ -26,11 +26,8 @@ test-job: # This job runs in the test stage.
script:
- |+
echo Recherche de zones à tester
files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA)
if [[ ! -z "$CI_RELOAD" || "$files" =~ .*"gitlab-ci.yml".* ]]
then
files=$(find . -name "*.zone" -printf "%P ")
fi
files=$(find . -name "*.zone" -printf "%P ")
if [[ "$files" =~ .*"zone".* ]]
then
echo "Test des zones $files."
@ -53,11 +50,7 @@ deploy-job: # This job runs in the deploy stage.
script:
- |+
echo Recherche de zones à déployer
files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA)
if [[ ! -z "$CI_RELOAD" || "$files" =~ .*"gitlab-ci.yml".* ]]
then
files=$(find . -name "*.zone" -printf "%P ")
fi
files=$(find . -name "*.zone" -printf "%P ")
- echo "Déploiement des zones $files..."
- |+
@ -77,11 +70,7 @@ check-job: # This job runs in the deploy stage.
script:
- |+
echo Recherche de zones déployées
files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA)
if [[ ! -z "$CI_RELOAD" || "$files" =~ .*"gitlab-ci.yml".* ]]
then
files=$(find . -name "*.zone" -printf "%P ")
fi
files=$(find . -name "*.zone" -printf "%P ")
count=$(echo $files | tr "\n" " " | wc -w)
linecount=$(( count * 5 + 3))