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:
parent
056925ae26
commit
7912eaaef9
1 changed files with 15 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue