Skip to content
Snippets Groups Projects
Commit 6fb6148d authored by Falk's avatar Falk :ping_pong:
Browse files

Try to figure out how to configure mongodb service correctly

parent a066a3a7
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ services: ...@@ -7,7 +7,7 @@ services:
variables: variables:
MONGODB_VERSION: '4.2.6' MONGODB_VERSION: '4.2.6'
MONGODB_URL: 'mongodb://localhost:27017/test' MONGODB_URL: 'mongodb:27017/test'
JWT_SECRET: 'test' JWT_SECRET: 'test'
# http://docs.gitlab.com/ee/ci/yaml/README.html#cache # http://docs.gitlab.com/ee/ci/yaml/README.html#cache
...@@ -25,8 +25,9 @@ test_server: ...@@ -25,8 +25,9 @@ test_server:
script: script:
- cd app/server - cd app/server
- npm install - npm install
- ps -e | grep
- PORT=3002 \ - PORT=3002 \
MONGODB_URL='mongodb://mongodb:27017/test' \ MONGODB_URL=$MONGODB_URL \
JWT_SECRET=$JWT_SECRET \ JWT_SECRET=$JWT_SECRET \
npm run test npm run test
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment