Commit 3f42469b authored by Lorenz Huedepohl's avatar Lorenz Huedepohl
Browse files

Publish coverage data to gitlab pages

parent 530c08f0
stages:
- test
- coverage
- deploy
before_script: before_script:
- module purge - module purge
- export LANG=C - export LANG=C
...@@ -3725,17 +3730,6 @@ test_project_2stage: ...@@ -3725,17 +3730,6 @@ test_project_2stage:
- popd - popd
# print coverage results
total_coverage:
stage: deploy
tags:
- coverage
script:
- ./ci_coverage_summary
artifacts:
paths:
- coverage_summary
test_project_intel: test_project_intel:
tags: tags:
- buildtest - buildtest
...@@ -3816,3 +3810,28 @@ test_project_2stage_intel: ...@@ -3816,3 +3810,28 @@ test_project_2stage_intel:
# - /home/elpa/bin/reserve_timeslot_2 make check TEST_FLAGS='150 50 32' || { cat test-suite.log; exit 1; } # - /home/elpa/bin/reserve_timeslot_2 make check TEST_FLAGS='150 50 32' || { cat test-suite.log; exit 1; }
# - cat test-suite.log # - cat test-suite.log
# - grep -i "Expected %stop" test-suite.log && exit 1 || true ; # - grep -i "Expected %stop" test-suite.log && exit 1 || true ;
# print coverage results
total_coverage:
stage: coverage
tags:
- coverage
script:
- echo "Generating coverage report"
- ./ci_coverage_summary
artifacts:
paths:
- public
pages:
stage: deploy
tags:
- coverage
script:
- echo "Publishing pages"
artifacts:
paths:
- public
only:
- master
...@@ -20,5 +20,5 @@ lcov --summary coverage_data/coverage_${CI_BUILD_REF}.info 2>&1 | \ ...@@ -20,5 +20,5 @@ lcov --summary coverage_data/coverage_${CI_BUILD_REF}.info 2>&1 | \
}' | \ }' | \
sed 's/^/__COVERAGE__:/; s/, $//;' sed 's/^/__COVERAGE__:/; s/, $//;'
mkdir coverage_summary mkdir -p public/coverage_summary
genhtml coverage_data/coverage_${CI_BUILD_REF}.info -o coverage_summary genhtml coverage_data/coverage_${CI_BUILD_REF}.info -o public/coverage_summary
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment