diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9f8a436..83460c2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,7 +23,15 @@ synchro-et-tests: - rsync -avzlh * /home/webmaster/site-chalec.org/articles/ - files=(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA) - cd /home/webmaster/site-chalec.org/articles - - for file in $files; do stl check $file | tee | grep Err && false; done # return false if error is read in standard output + - |+ + for file in $files + do + echo "Test de $file" + std=$(stl check $file) + echo $std + echo $std | grep Err && false# return false if error is read in standard output + done + - echo "Fin des tests." deploiement: # This job runs in the deploy stage. @@ -35,7 +43,9 @@ deploiement: # This job runs in the deploy stage. for file in $files do echo "Construction de $file" - stl wip $file | tee /dev/stderr | grep Err && false + std=$(stl wip $file) + echo $std + echo $std | grep Err && false done - stl sync - echo "Déploiement terminé." \ No newline at end of file