ci: adjust jobs to match configuration

This commit is contained in:
Karl-Philipp Wulfert
2019-05-14 16:25:32 +02:00
parent d8cdce680d
commit 0f056cb650

View File

@@ -5,6 +5,9 @@ cache:
paths: paths:
- node_modules - node_modules
before_script:
- npm install
stages: stages:
- build - build
- test - test
@@ -13,7 +16,6 @@ stages:
build: build:
stage: build stage: build
script: script:
- npm install
- npm run build - npm run build
artifacts: artifacts:
paths: paths:
@@ -38,23 +40,22 @@ scheduled-audit:
mocha: mocha:
stage: test stage: test
script: script:
- npm install
- npm test - npm test
pages: pages:
stage: deploy stage: deploy
script: script:
- npm install
- npm run documentation - npm run documentation
- mv docs public - mv docs public
only:
- master
artifacts: artifacts:
paths: paths:
- public - public
only:
- /^v[0-9]+\.[0-9]+\.[0-9]+$/
docker: docker:
image: registry.gitlab.com/openstapps/projectmanagement/builder:latest image: registry.gitlab.com/openstapps/projectmanagement/builder:latest
before_script: []
dependencies: dependencies:
- build - build
stage: deploy stage: deploy