Commit 0e269c8b authored by Mathieu Giraud's avatar Mathieu Giraud

.gitlab-ci.yml: deploy to review right after unit tests

Sometimes the functional tests are failing, and we still want to access the review environments.
See #2712.
parent a5c3634c
Pipeline #8794 failed
...@@ -9,11 +9,12 @@ before_script: ...@@ -9,11 +9,12 @@ before_script:
stages: stages:
- test_quality - test_quality
- test_unit - test_unit
- deploy_review
- test_functional - test_functional
- test_shouldvdj - test_shouldvdj
- valgrind_unit - valgrind_unit
- valgrind_functional - valgrind_functional
- deploy - deploy_prod
# Algorithm # Algorithm
...@@ -93,8 +94,8 @@ code_quality: ...@@ -93,8 +94,8 @@ code_quality:
- /^hotfix-[cw]\/.*$/ - /^hotfix-[cw]\/.*$/
- prod-client - prod-client
deploy: deploy_review:
stage: deploy stage: deploy_review
script: script:
- rsync -av --delete browser $DEPLOY_SERVER:$DEPLOY_SERVER_PATH$CI_BUILD_REF_SLUG - rsync -av --delete browser $DEPLOY_SERVER:$DEPLOY_SERVER_PATH$CI_BUILD_REF_SLUG
environment: environment:
...@@ -106,7 +107,7 @@ deploy: ...@@ -106,7 +107,7 @@ deploy:
- /^hotfix-[cw]\/.*$/ - /^hotfix-[cw]\/.*$/
deploy_prod: deploy_prod:
stage: deploy stage: deploy_prod
script: script:
- rsync -av --delete browser $PROD_CLIENT_SERVER:$PROD_CLIENT_PATH - rsync -av --delete browser $PROD_CLIENT_SERVER:$PROD_CLIENT_PATH
- ssh $PROD_CLIENT_SERVER "cp -pr $PROD_CLIENT_PATH_TEMPLATE/browser $PROD_CLIENT_PATH" - ssh $PROD_CLIENT_SERVER "cp -pr $PROD_CLIENT_PATH_TEMPLATE/browser $PROD_CLIENT_PATH"
...@@ -116,8 +117,8 @@ deploy_prod: ...@@ -116,8 +117,8 @@ deploy_prod:
only: only:
- prod-client - prod-client
stop_deploy: stop_deploy_review:
stage: deploy stage: deploy_review
variables: variables:
GIT_STRATEGY: none GIT_STRATEGY: none
script: script:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment