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