From 0a3b24aa7cfb6a4fbac595930464497fc93b088e Mon Sep 17 00:00:00 2001 From: Julian Matschinske <julian.matschinske@wzw.tum.de> Date: Fri, 27 Mar 2020 16:12:50 +0100 Subject: [PATCH] Add CICD pipeline --- .gitlab-ci.yml | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..6f1805e4 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,52 @@ +image: trion/ng-cli-karma + +stages: + - setup + - check + - build + +cache: + paths: + - node_modules/ + +setup: + stage: setup + script: + - npm install + +check:audit: + stage: check + script: + - npm install + - npm audit --production + dependencies: + - setup + +check:lint: + stage: check + script: + - npm install + - npm run lint + dependencies: + - setup + +check:test: + stage: check + script: + - npm install + - ng test + dependencies: + - setup + +build: + stage: build + artifacts: + paths: + - dist + script: + - npm install + - npm run build + dependencies: + - check:audit + - check:lint + - check:test -- GitLab