From b97e4c261276506b72bc3e6b5f68a619e9ad8020 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Fri, 12 Aug 2022 15:19:04 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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