Update .gitlab-ci.yml file
This commit is contained in:
parent
a01595338c
commit
b97e4c2612
|
@ -23,7 +23,15 @@ synchro-et-tests:
|
||||||
- rsync -avzlh * /home/webmaster/site-chalec.org/articles/
|
- rsync -avzlh * /home/webmaster/site-chalec.org/articles/
|
||||||
- files=(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA)
|
- files=(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA)
|
||||||
- cd /home/webmaster/site-chalec.org/articles
|
- 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.
|
deploiement: # This job runs in the deploy stage.
|
||||||
|
@ -35,7 +43,9 @@ deploiement: # This job runs in the deploy stage.
|
||||||
for file in $files
|
for file in $files
|
||||||
do
|
do
|
||||||
echo "Construction de $file"
|
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
|
done
|
||||||
- stl sync
|
- stl sync
|
||||||
- echo "Déploiement terminé."
|
- echo "Déploiement terminé."
|
Loading…
Reference in New Issue