diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eb1eeaf..0a1b54b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,11 +22,11 @@ synchro-et-tests: script: - rsync -avzlh * /home/webmaster/site-chalec.org/articles/ - |+ - files= + files="" files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA | grep stl || ls *.stl) - cd /home/webmaster/site-chalec.org - |+ - errors= + errors="" for file in $files do echo "Test de $file" @@ -42,11 +42,11 @@ deploiement: # This job runs in the deploy stage. stage: deploy # It only runs when *both* jobs in the test stage complete successfully. script: - |+ - files= + files="" files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA | grep stl || ls *.stl) - cd /home/webmaster/site-chalec.org - |+ - errors= + errors="" for file in $files do echo "Construction de $file"