Files
openstapps/.gitlab-ci.yml
Karl-Philipp Wulfert 67bb33b2f5 ci: fix job dependency
2018-11-29 16:31:23 +01:00

44 lines
508 B
YAML

image: node:lts-alpine
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
audit:
stage: test
script:
- npm audit
test:
dependencies:
- build
stage: test
script:
- npm test
pages:
stage: deploy
script:
- npm run documentation
- mv docs public
only:
- /^v[0-9]+\.[0-9]+\.[0-9]+$/
artifacts:
paths:
- public