From 6d6fc8108d9dcc729b5693f62f93d4b448b04a65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=20K=C3=A4sler?= <tom.kaesler@mni.thm.de> Date: Thu, 7 Mar 2019 14:50:00 +0100 Subject: [PATCH] add test stage to CI --- .gitlab-ci.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7b683904d..e96d542da 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,13 +2,19 @@ variables: BUILD_DIR: dist stages: + - codestyle - test - build - review - deploy +cache: + key: ${CI_COMMIT_REF_SLUG} + paths: + - node_modules/ + tslint: - stage: test + stage: codestyle tags: - nodejs allow_failure: false @@ -23,6 +29,16 @@ tslint: - npm install rxjs - node_modules/tslint/bin/tslint -p ./tsconfig.json -c ./tslint.json --project +unit_tests: + stage: test + tags: + - nodejs + allow_failure: false + dependencies: [] + script: + - npm install + - npm test + ngbuild: stage: build tags: -- GitLab