summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-11-07 22:23:06 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-11-07 22:23:06 -0600
commitfff9268fbd9307e7e8f130a9c8460165237359da (patch)
tree18e46bbbd0724d9ea91d9eb4bdf2dae92f06991b /.gitlab-ci.yml
parent2d7893cc3944d4818123d3d98cf5e00c2e1c54a3 (diff)
downloadhorizon-fff9268fbd9307e7e8f130a9c8460165237359da.tar.gz
horizon-fff9268fbd9307e7e8f130a9c8460165237359da.tar.bz2
horizon-fff9268fbd9307e7e8f130a9c8460165237359da.tar.xz
horizon-fff9268fbd9307e7e8f130a9c8460165237359da.zip
CI: Break coverage out to its own Job
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml14
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: