diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-13 07:04:46 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-13 07:04:46 -0500 |
commit | d41c1bd3a26d067f80dec3e30df6b1140f94d23b (patch) | |
tree | 66e6bfdf205b828db209bc76c86d8a8553ee4995 | |
parent | ee7e1bf35f277c44711f2560bb30248f2b3dff3b (diff) | |
download | horizon-d41c1bd3a26d067f80dec3e30df6b1140f94d23b.tar.gz horizon-d41c1bd3a26d067f80dec3e30df6b1140f94d23b.tar.bz2 horizon-d41c1bd3a26d067f80dec3e30df6b1140f94d23b.tar.xz horizon-d41c1bd3a26d067f80dec3e30df6b1140f94d23b.zip |
CI: maybe, just maybe, support coverage and test results
-rw-r--r-- | .gitlab-ci.yml | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3439672..0b6e024 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,7 +5,7 @@ build: script: - mkdir build - cd build - - cmake .. + - cmake .. -DCMAKE_BUILD_TYPE=Debug -DCOVERAGE=ON - make -j4 artifacts: paths: @@ -15,5 +15,15 @@ test: stage: test script: - cd tests - - PATH=../build/tools/hscript-validate:$PATH rspec spec/validator.rb - + - PATH=../build/tools/hscript-validate:$PATH rspec --format RspecJunitFormatter --out rspec-validator.xml spec/validator.rb + - cd .. + - lcov --exclude '/usr/include/c++/*' --exclude '3rdparty/*' --capture --directory build --output-file coverage.info + - genhtml coverage.info --output-directory cov_html + - printf 'coverage %s\n' $(lcov --summary ../coverage.info | grep lines | cut -d ' ' -f4) > metrics.txt + coverage: '/lines.+: \d+.\d+%/' + artifacts: + paths: + - cov_html + reports: + junit: rspec-*.xml + metrics: metrics.txt |