diff options
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: |
