Update .gitlab-ci.yml file

This commit is contained in:
Adrien Bourmault 2022-08-12 15:19:04 +00:00
parent a01595338c
commit b97e4c2612
1 changed files with 12 additions and 2 deletions

View File

@ -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é."