Skip to content
Snippets Groups Projects
Commit d3477112 authored by Hugo NOUTS's avatar Hugo NOUTS
Browse files

test ci

parent f3b4a457
No related branches found
No related tags found
1 merge request!788Resolve "[?] Comprendre que le connecteur est en maintenance même lorsque je suis déconnecté"
...@@ -11,6 +11,7 @@ stages: ...@@ -11,6 +11,7 @@ stages:
- quality - quality
- test - test
- build - build
- push-build
- deploy - deploy
- publish - publish
...@@ -42,7 +43,7 @@ build_stack: ...@@ -42,7 +43,7 @@ build_stack:
- master - master
- dev - dev
when: manual when: manual
sonarqube-mr: sonarqube-mr:
stage: quality stage: quality
only: only:
...@@ -123,16 +124,15 @@ build-mr: ...@@ -123,16 +124,15 @@ build-mr:
- merge_requests - merge_requests
artifacts: artifacts:
paths: paths:
- build - build/
build-for-testing: push_to_test:
stage: build stage: push-build
before_script: before_script:
- apk add git - apk add git
- apk add bash - apk add bash
script: script:
- yarn - ls build
- yarn build-dev
- git config --global user.name build-pipeline - git config --global user.name build-pipeline
- git config --global user.email "$GIT_USER" - git config --global user.email "$GIT_USER"
- git config --global user.password "$GIT_PWD" - git config --global user.password "$GIT_PWD"
...@@ -142,17 +142,16 @@ build-for-testing: ...@@ -142,17 +142,16 @@ build-for-testing:
- yarn deploy-test - yarn deploy-test
only: only:
- merge_requests - merge_requests
needs:
- build-mr
when: manual when: manual
push_to_dev:
build-dev-branch: stage: push-build
stage: build
before_script: before_script:
- apk add git - apk add git
- apk add bash - apk add bash
script: script:
- yarn
- yarn build-dev
- git config --global user.name build-pipeline - git config --global user.name build-pipeline
- git config --global user.email "$GIT_USER" - git config --global user.email "$GIT_USER"
- git config --global user.password "$GIT_PWD" - git config --global user.password "$GIT_PWD"
...@@ -162,15 +161,15 @@ build-dev-branch: ...@@ -162,15 +161,15 @@ build-dev-branch:
- yarn deploy-dev - yarn deploy-dev
only: only:
- dev - dev
needs:
- build-mr
build: push_to_master:
stage: build stage: push-build
before_script: before_script:
- apk add git - apk add git
- apk add bash - apk add bash
script: script:
- yarn
- yarn build
- git config --global user.name build-pipeline - git config --global user.name build-pipeline
- git config --global user.email "$GIT_USER" - git config --global user.email "$GIT_USER"
- git config --global user.password "$GIT_PWD" - git config --global user.password "$GIT_PWD"
...@@ -181,15 +180,13 @@ build: ...@@ -181,15 +180,13 @@ build:
only: only:
- master - master
deploy-to-dev: deploy_dev:
stage: deploy stage: deploy
tags: tags:
- deploy-alpha - deploy-alpha
script: script:
- cd /root/ecolyo-infra-scripts/cicid_scripts - cd /root/ecolyo-infra-scripts/cicid_scripts
- './update_ecolyo_dev.sh' - './update_ecolyo_dev.sh'
dependencies:
- build-for-testing
only: only:
- merge_requests - merge_requests
environment: environment:
...@@ -197,7 +194,7 @@ deploy-to-dev: ...@@ -197,7 +194,7 @@ deploy-to-dev:
url: https://ecolyo.dev.cozy.self-data.alpha.grandlyon.com/ url: https://ecolyo.dev.cozy.self-data.alpha.grandlyon.com/
when: manual when: manual
deploy-to-ecolyodemo: deploy_demo:
stage: deploy stage: deploy
tags: tags:
- deploy-alpha - deploy-alpha
...@@ -210,7 +207,7 @@ deploy-to-ecolyodemo: ...@@ -210,7 +207,7 @@ deploy-to-ecolyodemo:
name: ecolyodemo name: ecolyodemo
url: https://ecolyo.ecolyodemo.cozy.self-data.alpha.grandlyon.com/ url: https://ecolyo.ecolyodemo.cozy.self-data.alpha.grandlyon.com/
deploy-to-all-instances: deploy_all:
stage: deploy stage: deploy
tags: tags:
- deploy-alpha - deploy-alpha
...@@ -228,4 +225,4 @@ publish: ...@@ -228,4 +225,4 @@ publish:
- yarn cozyPublish - yarn cozyPublish
only: only:
- tags - tags
when: manual when: manual
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment