From 6178470dd97dbca6e3e0faa6a7dbcba520d14826 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Mon, 11 Apr 2022 14:25:35 +0000 Subject: [PATCH] =?UTF-8?q?CI=20affin=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5c90587..307d3fe 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,12 +14,29 @@ # For more information, see: https://docs.gitlab.com/ee/ci/yaml/index.html#stages stages: # List of stages for jobs, and their order of execution + - build + - test - deploy +build-job: + stage: build + script: + - echo "Récupération du dernier `git push`..." + - cd /home/webmaster/articles + - git checkout -- . + - git pull + +test-job: + stage: test + script: + - echo "Exécution de `gsl check -F`..." + - cd /home/webmaster/articles + - gsl check -F + deploy-job: # This job runs in the deploy stage. stage: deploy # It only runs when *both* jobs in the test stage complete successfully. script: - - echo "Récupération du dernier `git push`..." - - cd /home/webmaster/articles && git checkout -- . && git pull - - gsl check && gsl make + - echo "Déploiement..." + - cd /home/webmaster/articles + - gsl make -F && gsl make - echo "Déploiement terminé."