ci: add ci config

This commit is contained in:
Karl-Philipp Wulfert
2018-12-04 14:11:46 +01:00
parent ffe2bda937
commit f53e2aa3b8

38
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,38 @@
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
except:
- schedules
tslint:
stage: test
script:
- npm run tslint
pages:
stage: deploy
script:
- npm run documentation
- mv docs public
only:
- /^v[0-9]+\.[0-9]+\.[0-9]+$/
artifacts:
paths:
- public