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: paths:
- node_modules - node_modules
before_script:
- npm install
stages: stages:
- build - build
- test - test
- deploy - deploy
- publish
build:build: build:build:
stage: build stage: build
@@ -27,20 +23,32 @@ build:build:
test:audit: test:audit:
stage: test stage: test
script: script:
- npm install
- npm audit - npm audit
test:mocha: test:mocha:
stage: test stage: test
script: script:
- npm install
- npm test - npm test
publish:image: deploy:pages:
image: docker:stable 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: dependencies:
- build:build - build:build
- test:mocha stage: deploy
- test:audit
stage: publish
variables: variables:
DOCKER_DRIVER: overlay2 DOCKER_DRIVER: overlay2
services: services:
@@ -56,13 +64,3 @@ publish:image:
only: only:
- /^v[0-9]+\.[0-9]+\.[0-9]+$/ - /^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