From 4398c08106009d7dc251bc66f869c6f86eac5507 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Fri, 12 Aug 2022 15:12:32 +0000 Subject: [PATCH] Changement de moteur : GSL => STL --- .gitlab-ci.yml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3813ab0..6cec7b7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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é." \ No newline at end of file