Skip to content
Snippets Groups Projects
Commit 6ee2f986 authored by derrabauke's avatar derrabauke
Browse files

Add stage description and cache dicrectories

parent c2d33f69
No related branches found
No related tags found
No related merge requests found
image: node:12.16.3
stages:
- test
- build
- deploy
variables:
MONGODB_VERSION: '4.2.6'
MONGODB_URL: 'mongodb://mongodb:27017/test'
......@@ -9,15 +14,18 @@ variables:
# http://docs.gitlab.com/ee/ci/yaml/README.html#cache
cache:
paths:
- node_modules/
- app/client/node_modules/
- app/server/node_modules/
test_client:
stage: test
script:
- cd app/client
- npm install
- npm run test
test_server:
stage: test
# Info: http://docs.gitlab.com/ee/ci/docker/using_docker_images.html#what-is-a-service
services:
- name: mongo:$MONGODB_VERSION
......
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