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:
|
synchro-et-tests:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- rsync -avzlh * /home/webmaster/articles/
|
- rsync -avzlh * /home/webmaster/site-chalec.org/articles/
|
||||||
- rsync -avzlh fichiers/ /var/lib/gsl/domains/chalec.org/files/
|
|
||||||
- rsync -avzlh images/ /var/lib/gsl/domains/chalec.org/images/
|
|
||||||
- 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/articles
|
- cd /home/webmaster/site-chalec.org/articles
|
||||||
- gsl check
|
- for file in $files; do stl check $file | grep Err && false; done # return false if error is read in standard output
|
||||||
- test -z "$(gsl check | grep Err)"
|
|
||||||
- gsl sync wip
|
|
||||||
|
|
||||||
|
|
||||||
deploiement: # This job runs in the deploy stage.
|
deploiement: # This job runs in the deploy stage.
|
||||||
stage: deploy # It only runs when *both* jobs in the test stage complete successfully.
|
stage: deploy # It only runs when *both* jobs in the test stage complete successfully.
|
||||||
script:
|
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
|
do
|
||||||
echo "Construction de $postfile"
|
echo "Construction de $file"
|
||||||
gsl make $postfile
|
stl wip $file | grep Err && false
|
||||||
test -z "$(gsl make $postfile | grep Err)"
|
|
||||||
done
|
done
|
||||||
|
- stl sync
|
||||||
- echo "Déploiement terminé."
|
- echo "Déploiement terminé."
|
Loading…
Reference in New Issue