Changement de moteur : GSL => STL
This commit is contained in:
parent
5c416dee12
commit
4398c08106
|
@ -20,25 +20,22 @@ stages: # List of stages for jobs, and their order of execution
|
|||
synchro-et-tests:
|
||||
stage: build
|
||||
script:
|
||||
- rsync -avzlh * /home/webmaster/articles/
|
||||
- rsync -avzlh fichiers/ /var/lib/gsl/domains/chalec.org/files/
|
||||
- rsync -avzlh images/ /var/lib/gsl/domains/chalec.org/images/
|
||||
- rsync -avzlh * /home/webmaster/site-chalec.org/articles/
|
||||
- files=(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA)
|
||||
- cd /home/webmaster/articles
|
||||
- gsl check
|
||||
- test -z "$(gsl check | grep Err)"
|
||||
- gsl sync wip
|
||||
- cd /home/webmaster/site-chalec.org/articles
|
||||
- for file in $files; do stl check $file | grep Err && false; done # return false if error is read in standard output
|
||||
|
||||
|
||||
deploiement: # This job runs in the deploy stage.
|
||||
stage: deploy # It only runs when *both* jobs in the test stage complete successfully.
|
||||
script:
|
||||
- cd /home/webmaster/articles
|
||||
- cd /home/webmaster/site-chalec.org/articles
|
||||
- files=(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA)
|
||||
- |+
|
||||
for postfile in $(ls *.gsl)
|
||||
for file in $files
|
||||
do
|
||||
echo "Construction de $postfile"
|
||||
gsl make $postfile
|
||||
test -z "$(gsl make $postfile | grep Err)"
|
||||
echo "Construction de $file"
|
||||
stl wip $file | grep Err && false
|
||||
done
|
||||
- stl sync
|
||||
- echo "Déploiement terminé."
|
Loading…
Reference in New Issue