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

Leaving out extra definition of mongodb stuff since its already passed by vars

parent 6fb6148d
No related branches found
No related tags found
No related merge requests found
image: node:12.16.3 image: node:12.16.3
# Info: http://docs.gitlab.com/ee/ci/docker/using_docker_images.html#what-is-a-service
services:
- name: mongo:$MONGODB_VERSION
alias: mongodb
variables: variables:
MONGODB_VERSION: '4.2.6' MONGODB_VERSION: '4.2.6'
MONGODB_URL: 'mongodb:27017/test' MONGODB_URL: 'mongodb:27017/test'
...@@ -22,12 +17,13 @@ test_client: ...@@ -22,12 +17,13 @@ test_client:
- npm run test - npm run test
test_server: test_server:
# Info: http://docs.gitlab.com/ee/ci/docker/using_docker_images.html#what-is-a-service
services:
- name: mongo:$MONGODB_VERSION
alias: mongodb
script: script:
- cd app/server - cd app/server
- npm install - npm install
- ps -e | grep
- PORT=3002 \ - PORT=3002 \
MONGODB_URL=$MONGODB_URL \
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