ci: only install dependencies for build job

This commit is contained in:
Anselm Stordeur
2019-01-16 20:09:47 +01:00
committed by Rainer Killinger
parent 61c5ba6747
commit 9ded905fbd

View File

@@ -6,15 +6,14 @@ cache:
- lib
- node_modules
before_script:
- npm install
stages:
- build
- test
- publish
build:
before_script:
- npm install
stage: build
script:
- npm run build
@@ -39,6 +38,9 @@ test:
publish:
image: registry.gitlab.com/openstapps/projectmanagement/builder
stage: publish
dependencies:
- test
- build
variables:
DOCKER_DRIVER: overlay2
services: