mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 17:42:57 +00:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user