Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 24794036 authored by Lucas Nussbaum's avatar Lucas Nussbaum
Browse files

[ci] reorganize jobs

We deploy first to make changes available fast. It makes no sense to
wait until the checks succeeded before deploying, because the deployment
process synchronizes all branches: another pipeline (for another branch)
could trigger the deployment of the current branch if it is broken.
parent 4f92ca34
No related branches found
No related tags found
1 merge request!907[valid+CI] check for required and unwanted files in input/
Pipeline #1094076 passed
--- ---
stages: stages:
- deploy-to-api-servers
- lint - lint
- validate - check
- generate - generate-access-history
- deploy
- checks
include: include:
- project: 'grid5000/grid5000-gitlab-templates' - project: 'grid5000/grid5000-gitlab-templates'
...@@ -31,9 +30,9 @@ include: ...@@ -31,9 +30,9 @@ include:
- wget --no-check-certificate -q https://www.grid5000.fr/certs/ca2019.grid5000.fr.crt -O /usr/local/share/ca-certificates/ca2019.grid5000.fr.crt - wget --no-check-certificate -q https://www.grid5000.fr/certs/ca2019.grid5000.fr.crt -O /usr/local/share/ca-certificates/ca2019.grid5000.fr.crt
- /usr/sbin/update-ca-certificates - /usr/sbin/update-ca-certificates
validate-data: validate-input-data:
extends: .template-refrepo extends: .template-refrepo
stage: validate stage: check
script: script:
- bundle exec rake valid:schema - bundle exec rake valid:schema
- bundle exec rake valid:duplicates - bundle exec rake valid:duplicates
...@@ -41,7 +40,7 @@ validate-data: ...@@ -41,7 +40,7 @@ validate-data:
wikigen: wikigen:
extends: .template-refrepo extends: .template-refrepo
stage: checks stage: check
allow_failure: true allow_failure: true
parallel: parallel:
matrix: matrix:
...@@ -58,9 +57,9 @@ wikigen: ...@@ -58,9 +57,9 @@ wikigen:
refs: refs:
- master - master
generate-reference-api: check-no-changes-in-data:
extends: .template-refrepo extends: .template-refrepo
stage: generate stage: check
script: script:
- export TZ=Europe/Paris - export TZ=Europe/Paris
- bundle exec rake reference-api - bundle exec rake reference-api
...@@ -71,7 +70,7 @@ generate-reference-api: ...@@ -71,7 +70,7 @@ generate-reference-api:
generate-access-history: generate-access-history:
extends: .template-refrepo extends: .template-refrepo
stage: generate stage: generate-access-history
script: script:
- export TZ=Europe/Paris - export TZ=Europe/Paris
- bundle exec rake gen:accesses-history - bundle exec rake gen:accesses-history
...@@ -80,22 +79,22 @@ generate-access-history: ...@@ -80,22 +79,22 @@ generate-access-history:
- data/grid5000/accesses/accesses_mode_history.yaml - data/grid5000/accesses/accesses_mode_history.yaml
expire_in: 1 week expire_in: 1 week
deploy: deploy-to-api-servers:
stage: deploy stage: deploy-to-api-servers
tags: tags:
- grid5000-shell - grid5000-shell
script: script:
- /srv/ci-runner-scripts/bin/update-api-servers - /srv/ci-runner-scripts/bin/update-api-servers
rspec: rspec:
stage: checks # we use 'checks' here to avoid blocking on this when updating the ref-repo stage: check # we use 'checks' here to avoid blocking on this when updating the ref-repo
extends: .template-refrepo extends: .template-refrepo
script: script:
- export TZ=Europe/Paris - export TZ=Europe/Paris
- bundle exec rspec - bundle exec rspec
valid-homogeneity: valid-homogeneity:
stage: checks stage: check
extends: .template-refrepo extends: .template-refrepo
script: script:
- bundle exec rake valid:homogeneity - bundle exec rake valid:homogeneity
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment