Changement de moteur : GSL => STL

This commit is contained in:
Adrien Bourmault 2022-08-12 15:12:32 +00:00
parent 5c416dee12
commit 4398c08106
1 changed files with 9 additions and 12 deletions

View File

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