Update .gitlab-ci.yml file

This commit is contained in:
Adrien Bourmault 2022-08-13 22:34:52 +00:00
parent cb9536f5db
commit c26ec99a2d
1 changed files with 4 additions and 7 deletions

View File

@ -31,16 +31,15 @@ synchro-et-tests:
do do
echo "Test de $file" echo "Test de $file"
stl log clean stl log clean
stl check $file | grep Err && errors=$((errors+1)) # error if err is read in standard output stl check $file | grep -e "Err" -e "erreur de" -e "Aucun fichier" && errors=$((errors+1)) # error if err is read in standard output
stl check $file | grep "erreur de" && errors=$((errors+1)) # error if err is read in standard output
done done
[ $errors -gt 0 ] && false [ $errors -gt 0 ] && false
for file in $files for file in $files
do do
echo "Test supplémentaire de $file" echo "Test supplémentaire de $file"
stl log clean stl log clean
stl check $file -F &> /dev/null stl check -F $file &> /dev/null
stl check $file -F &> /dev/null stl check -F $file &> /dev/null
done done
- echo "Fin des tests." - echo "Fin des tests."
@ -58,9 +57,7 @@ deploiement: # This job runs in the deploy stage.
do do
echo "Construction de $file" echo "Construction de $file"
stl log clean stl log clean
stl wip $file | grep Err && errors=$((errors+1)) # error if err is read in standard output stl wip -F $file | grep -e "Err" -e "erreur de" -e "Aucun fichier" && errors=$((errors+1)) # error if err is read in standard output
stl wip $file | grep "erreur de" && errors=$((errors+1)) # error if err is read in standard output
stl wip $file | grep "Aucun fichier" && errors=$((errors+1)) # error if err is read in standard output
done done
[ $errors -gt 0 ] && false [ $errors -gt 0 ] && false
- echo "Déploiement terminé." - echo "Déploiement terminé."