Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit bbcaec06 authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Add code coverage evaluation

parent a4eac27e
Pipeline #96094 passed with stages
in 5 minutes and 46 seconds
......@@ -2,6 +2,7 @@ image: gitlab-registry.in2p3.fr/cta-lapp/phoenix_libs/phoenixhdf5/hdf5:0.2
stages:
- BuildTestinstall
- CoverageTestinstall
- deploy
#- build
......@@ -9,8 +10,6 @@ stages:
#- deploy
dailyBuildMasterAll:
variables:
CONDA_ENV_DIR: /opt/conda/envs/ctadev
#cache:
#untracked: true
#paths:
......@@ -35,9 +34,34 @@ dailyBuildMasterAll:
- tags
tags:
dailyBuildMasterAll:
#cache:
#untracked: true
#paths:
#- build/
stage: CoverageTestinstall
script:
- export LD_LIBRARY_PATH=/usr/lib
- env
- mkdir -p build
- 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
only:
- branches
- tags
tags:
pages:
variables:
CONDA_ENV_DIR: /opt/conda/envs/ctadev
stage: deploy
script:
- export LD_LIBRARY_PATH=/usr/lib
......
......@@ -28,7 +28,16 @@ function(phoenix_base_project programName programVersion programDescritpion prog
set(CMAKE_MODULE_PATH ${CMAKE_INSTALL_PREFIX}/share/cmake CACHE STRING "cmake module path")
set(PHOENIX_FORCE_PULL_MODULE no CACHE BOOL "Say if the submodule have to be pulled every time or not")
add_definitions(--std=c++11 -Wall -Werror -g -O2 -D__PROGRAM_VERSION__="${PROGRAM_VERSION}")
if(CMAKE_BUILD_TYPE STREQUAL "Coverage")
message(STATUS "Build for tests COVERAGE")
set(CTEST_COVERAGE_COMMAND "gcov")
set(SELF_TESTS_MODE yes)
set(CMAKE_CXX_FLAGS "--std=c++11 -Wall -Werror -g -O0 -fprofile-arcs -ftest-coverage" PARENT_SCOPE)
else()
set(CMAKE_CXX_FLAGS "--std=c++11 -Wall -Werror -g -O2" PARENT_SCOPE)
endif()
add_definitions(-D__PROGRAM_VERSION__="${PROGRAM_VERSION}")
if(DOC_MODE)
pull_extra_module("PhoenixTex2Html" "https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/PhoenixTex2Html.git")
......
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