IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 6efc6903 authored by Hans Dembinski's avatar Hans Dembinski
Browse files

generating report and publish as artefact

parent 3663f5e3
No related branches found
No related tags found
No related merge requests found
......@@ -10,22 +10,27 @@ build:
script:
- mkdir build
- cd build
- cmake ..
- cmake .. -DCOVERAGE=ON
- cmake --build . -- -j 4
- ctest -j4 -V >& test.log
- ../Tools/coverage.sh
after_script:
- cd build
- ls
- gzip -v -9 -S .gz test.log
- tar cjf coverage-report.tar.bz2 coverage-report
- pwd
artifacts:
expire_in: 1 week
paths:
- build/test.log.gz
when: on_failure
reports:
junit:
- build/test_outputs/junit*.xml
reports:
junit:
- build/test_outputs/junit*.xml
when: on_success
paths:
- build/coverage-report.tar.bz2
pages:
stage: build
......
......@@ -22,11 +22,12 @@ $LCOV --base-directory `pwd` \
# remove uninteresting entries
$LCOV --extract coverage.info "*/corsika/*" --output-file coverage.info
if [ $CI ]; then
echo "Coverage report on CI currently disabled"
# upload if on CI
# curl -s https://codecov.io/bash | bash -s - -f coverage.info -X gcov -x $GCOV
else
# otherwise just print
$LCOV_DIR/bin/genhtml coverage.info -o coverage-report
fi
# if [ $CI ]; then
# # upload if on CI
# curl -s https://codecov.io/bash | bash -s - -f coverage.info -X gcov -x $GCOV
# else
# # otherwise just print
# $LCOV_DIR/bin/genhtml coverage.info -o coverage-report
# fi
$LCOV_DIR/bin/genhtml coverage.info -o coverage-report
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment