aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorKumar Damani <me@kumardamani.net>2022-06-07 19:53:26 +0000
committerKumar Damani <me@kumardamani.net>2022-06-07 19:53:26 +0000
commit4ec6622f7bb891fa68f8bf45f5b8d84dcc46dae7 (patch)
treed2eec632bf0712fe6730f85bc9f29dcb5294a066 /.gitlab-ci.yml
parent1e59fb1623ccefc60631d964634640a776eaaec0 (diff)
added unit tests.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml7
1 files changed, 7 insertions, 0 deletions
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: