Files
openstapps/.gitlab-ci.yml
2019-02-26 16:55:53 +01:00

63 lines
842 B
YAML

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