diff options
-rw-r--r-- | .gitlab-ci.yml | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index db638ff..ba8b6c8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,7 +16,17 @@ test: script: - cd tests - PATH=../build/tools/hscript-validate:../build/tools/hscript-simulate:../build/owner:$PATH rspec --format RspecJunitFormatter --out rspec.xml - - cd ../build + artifacts: + - tests/rspec.xml + reports: + junit: tests/rspec.xml + +coverage: + stage: test + dependencies: + - test + script: + - cd build - make lcov_report - make lcov_html - printf 'coverage %s\n' $(lcov --summary horizon.coverage | grep lines | cut -d ' ' -f4) > metrics.txt @@ -24,9 +34,7 @@ test: artifacts: paths: - build/cov_html - - tests/rspec.xml reports: - junit: tests/rspec.xml metrics: metrics.txt valgrind: |