1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

separate build and test stages using docker images

This commit is contained in:
Ricardo Hernandez-Montoya 2017-04-27 13:46:38 +02:00
parent 056925ae26
commit 7912eaaef9

View file

@ -1,12 +1,24 @@
image: node:7.9.0
image: docker
before_script:
- npm install
- mkdir build
- mkdir node_modules
cache:
paths:
- build
- node_modules
stages:
- build
- test
build_job:
stage: build
script:
- docker run -v .:/usr/src/app node:7.9.0 npm install /usr/src/app
test_job:
stage: test
script:
- npm test
- docker run -v .:/usr/src/app node:7.9.0 npm test /usr/src/app