From f53e2aa3b8f35814ee1e0de512e296adab6f1f97 Mon Sep 17 00:00:00 2001 From: Karl-Philipp Wulfert Date: Tue, 4 Dec 2018 14:11:46 +0100 Subject: [PATCH] ci: add ci config --- .gitlab-ci.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..2cc2370a --- /dev/null +++ b/.gitlab-ci.yml @@ -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