From 4ec6622f7bb891fa68f8bf45f5b8d84dcc46dae7 Mon Sep 17 00:00:00 2001 From: Kumar Damani Date: Tue, 7 Jun 2022 15:53:26 -0400 Subject: added unit tests. --- .gitlab-ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 09211e8..7cc1dd6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,6 +3,7 @@ services: - docker:dind stages: + - test - build variables: @@ -12,6 +13,12 @@ variables: before_script: - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY +unit-test: + stage: test + coverage: '/coverage: \d+.\d+% of statements/' + script: + - docker build --pull --target test -t $IMAGE:temp . + build: stage: build script: -- cgit v1.2.3