Files
openstapps/.gitlab-ci.yml
Karl-Philipp Wulfert f8f94dc026 ci: add audit stage
2019-04-30 14:40:38 +02:00

45 lines
559 B
YAML

image: registry.gitlab.com/openstapps/projectmanagement/node
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- lib
- node_modules
before_script:
- npm install
stages:
- build
- test
- deploy
build:
stage: build
script:
- npm run build
test:
stage: test
script:
- npm test
artifacts:
paths:
- coverage
audit:
stage: test
script:
- npm audit
pages:
stage: deploy
script:
- npm run documentation
- mv docs public
only:
- /^v[0-9]+\.[0-9]+\.[0-9]+$/
artifacts:
paths:
- public