Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CTA-LAPP
PHOENIX_LIBS
PhoenixGraph
Commits
715b700b
Commit
715b700b
authored
Dec 16, 2020
by
Pierre Aubert
Browse files
Add test coverage
parent
7e4521a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
1 deletion
+37
-1
.gitlab-ci.yml
.gitlab-ci.yml
+27
-0
cmake/phoenix_base_project.cmake
cmake/phoenix_base_project.cmake
+10
-1
No files found.
.gitlab-ci.yml
View file @
715b700b
...
...
@@ -34,6 +34,33 @@ dailyBuildMasterAll:
-
tags
tags
:
dailyCoverageMasterAll
:
#cache:
#untracked: true
#paths:
#- build/
stage
:
BuildTestinstall
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
...
...
cmake/phoenix_base_project.cmake
View file @
715b700b
...
...
@@ -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
)
add_subdirectory
(
doc
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment