diff options
| author | Kumar Damani <me@kumardamani.net> | 2022-06-07 19:53:26 +0000 |
|---|---|---|
| committer | Kumar Damani <me@kumardamani.net> | 2022-06-07 19:53:26 +0000 |
| commit | 4ec6622f7bb891fa68f8bf45f5b8d84dcc46dae7 (patch) | |
| tree | d2eec632bf0712fe6730f85bc9f29dcb5294a066 /.gitlab-ci.yml | |
| parent | 1e59fb1623ccefc60631d964634640a776eaaec0 (diff) | |
added unit tests.
Diffstat (limited to '.gitlab-ci.yml')
| -rw-r--r-- | .gitlab-ci.yml | 7 |
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: |
