Commit 2fea0958 authored by Matthias Larisch's avatar Matthias Larisch Committed by Matthias Larisch

Have chatserver wait until code is updated

parent a26f659a
Pipeline #161671026 passed with stages
in 10 minutes and 46 seconds
......@@ -179,6 +179,7 @@ test:
FS_ENV: test
# Note: Gitlab runner will mark a lot of service healthchecks as failed. This is a bug that will partly be addressed with the upcoming release of the gitlab-runner. It is also due to our configuration, e.g. the chat container not exposing ports but listed as a service. Unfortunately, health check cannot be disabled.
- name: redis:5.0.8-alpine
alias: redis
- name:
......@@ -190,7 +191,7 @@ test:
command: ["bin/maildev", "--web", "80", "--smtp", "25", "--hide-extensions", "STARTTLS"]
- name: node:13.10.1-alpine
alias: chat
command: ["/bin/sh", "-c", "cd /builds/foodsharing-dev/foodsharing/chat && yarn ts-node src/index.ts"]
command: ["/bin/sh", "-c", 'rm $CI_PROJECT_DIR/code_updated; while [ ! -e $CI_PROJECT_DIR/code_updated ]; do sleep 1; done; cd /builds/foodsharing-dev/foodsharing/chat && yarn ts-node src/index.ts']
- name:
alias: web
......@@ -206,6 +207,7 @@ test:
- build:backend-chat
- touch $CI_PROJECT_DIR/code_updated
- ./scripts/ci.test
expire_in: 1 month
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