ci: remove npm install before script

Fixes #5
This commit is contained in:
Karl-Philipp Wulfert
2019-02-27 13:43:44 +01:00
parent 47e9d0f570
commit 04fabac8ea

View File

@@ -5,14 +5,10 @@ cache:
paths:
- node_modules
before_script:
- npm install
stages:
- build
- test
- deploy
- publish
build:build:
stage: build
@@ -27,20 +23,32 @@ build:build:
test:audit:
stage: test
script:
- npm install
- npm audit
test:mocha:
stage: test
script:
- npm install
- npm test
publish:image:
image: docker:stable
deploy:pages:
stage: deploy
script:
- npm install
- npm run documentation
- mv docs public
only:
- master
artifacts:
paths:
- public
deploy:image:
image: registry.gitlab.com/openstapps/projectmanagement/builder:latest
dependencies:
- build:build
- test:mocha
- test:audit
stage: publish
stage: deploy
variables:
DOCKER_DRIVER: overlay2
services:
@@ -56,13 +64,3 @@ publish:image:
only:
- /^v[0-9]+\.[0-9]+\.[0-9]+$/
deploy:pages:
stage: deploy
script:
- npm run documentation
- mv docs public
only:
- /^v[0-9]+\.[0-9]+\.[0-9]+$/
artifacts:
paths:
- public