Files
openstapps/.gitlab-ci.yml
Karl-Philipp Wulfert deafd8ab64 ci: add tag performance to build job
Fixes #24
2019-01-25 09:00:51 +00:00

52 lines
659 B
YAML

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