From fff9268fbd9307e7e8f130a9c8460165237359da Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Thu, 7 Nov 2019 22:23:06 -0600 Subject: CI: Break coverage out to its own Job --- .gitlab-ci.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to '.gitlab-ci.yml') 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: -- cgit v1.2.3-60-g2f50