From 7a4f1ed052cb80206a76cd598608b5b72eee52fc Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Fri, 12 Aug 2022 15:43:21 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 606f957..eb4949d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -28,22 +28,24 @@ synchro-et-tests: do echo "Test de $file" stl check $file - stl check $file | grep Err && false# return false if error is read in standard output + errors=$errors"\n"$(stl check $file | grep Err) # return false if error is read in standard output done + echo -e $errors | grep Err && false - echo "Fin des tests." deploiement: # This job runs in the deploy stage. stage: deploy # It only runs when *both* jobs in the test stage complete successfully. script: - - files=($(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA|grep stl || exit 0)) + - files=($(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA|grep stl || ls *.stl)) - cd /home/webmaster/site-chalec.org - |+ for file in $files do echo "Construction de $file" stl wip $file - stl wip $file | grep Err && false + errors=$errors"\n"$(stl wip $file | grep Err) # return false if error is read in standard output done + echo -e $errors | grep Err && false - stl sync - echo "Déploiement terminé." \ No newline at end of file