fix: fix ci job dependencies and caching

This commit is contained in:
Anselm Rochus Stordeur
2019-02-21 16:13:01 +01:00
committed by Rainer Killinger
parent 9637574071
commit f59cc5832c

View File

@@ -1,9 +1,8 @@
image: registry.gitlab.com/openstapps/projectmanagement/node:latest
image: registry.gitlab.com/openstapps/projectmanagement/node
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- lib
- node_modules
stages:
@@ -11,25 +10,21 @@ stages:
- test
- publish
before_script:
- npm install
build:
before_script:
- npm install
stage: build
script:
- npm run build
artifacts:
untracked: true
paths:
- node_modules/
only:
- /(^v[0-9]+\.[0-9]+\.[0-9]+$|^master$|^develop$)/
- lib
tags:
- docker
test:
stage: test
dependencies:
- build
script:
- npm test
tags:
@@ -39,7 +34,6 @@ publish:
image: registry.gitlab.com/openstapps/projectmanagement/builder
stage: publish
dependencies:
- test
- build
variables:
DOCKER_DRIVER: overlay2