diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..6f1805e4b70c724520e43b759d9a6f0dcb0cbacd --- /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