Commit 30b4d99b authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Add coverage report

parent 9a65425c
Pipeline #126257 passed with stages
in 45 seconds
......@@ -2,6 +2,7 @@ image: gitlab-registry.in2p3.fr/cta-lapp/phoenix_libs/phoenix/phoenix_minimal:0.
stages:
- BuildTestinstall
- DocCoverage
- deploy
#- build
......@@ -33,51 +34,49 @@ dailyBuildMasterAll:
- tags
tags:
dailyCoverageMasterAll:
#cache:
#untracked: true
#paths:
#- build/
stage: BuildTestinstall
TestCoverage:
stage: DocCoverage
script:
- export LD_LIBRARY_PATH=/usr/lib
- env
- mkdir -p build
- mkdir -p build coverage
- cd build
- >
cmake ..
-DCMAKE_INSTALL_PREFIX=/usr
-DRELEASE_MODE=yes
-DSELF_TESTS_MODE=yes
-DCMAKE_BUILD_TYPE=Coverage
- make all
- make install
- make test
- make ExperimentalCoverage
- cd ../coverage
- gcovr -r ../ --html cov_report.html --html-details
- gcovr -r ../ --xml Coverage.xml
- gcovr -r ../
artifacts:
paths:
- coverage
expire_in: 1d
only:
- branches
- tags
tags:
pages:
stage: deploy
Doc:
stage: DocCoverage
script:
- export LD_LIBRARY_PATH=/usr/lib
- env
- rm -fr build public
- mkdir -p build
- mkdir -p public
- mkdir -p build public
- cd build
- >
cmake ..
-DCMAKE_INSTALL_PREFIX=/usr
-DRELEASE_MODE=yes
-DDOC_MODE=yes
- make all
- make VERBOSE=1
- make install
- make doc
- scp -r doc/html/* ../public
- scp -r doc/* ../public
artifacts:
paths:
- public
......@@ -88,3 +87,13 @@ pages:
tags:
pages:
stage: deploy
script:
- mv coverage public/
artifacts:
paths:
- public
expire_in: 1d
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