CI affinée
This commit is contained in:
parent
4e220c164e
commit
6178470dd9
|
@ -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é."
|
||||
|
|
Loading…
Reference in New Issue