From 8d929c4bdba8e86080339e41df5a49640f8faaa4 Mon Sep 17 00:00:00 2001 From: ralfulrich <ralf.ulrich@kit.edu> Date: Fri, 28 Dec 2018 03:05:23 +0100 Subject: [PATCH] added full test logfile as compressed artefact, cascade_example -> 0deg shower --- .gitlab-ci.yml | 6 +++++- CMakeLists.txt | 6 +++++- Documentation/Examples/cascade_example.cc | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ad274600..b5229450 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,7 +16,11 @@ build: - cd build - cmake .. - cmake --build . - - ctest + - ctest -V >& test.log + - gzip -9 test.log + artifacts: + paths: + - test.log.gz # code_quality: # image: docker:stable diff --git a/CMakeLists.txt b/CMakeLists.txt index d2d4df9b..f2670f9a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,10 +37,14 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) endif() # enable warnings and disallow non-standard language -set(CMAKE_CXX_FLAGS "-Wall -pedantic -Wextra -Wno-ignored-qualifiers -Wno-nonportable-include-path") +set(CMAKE_CXX_FLAGS "-Wall -pedantic -Wextra -Wno-ignored-qualifiers") set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS} -O0 -g") set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} -O3") +# clang produces a lot of unecessary warnings without this: +add_compile_options("$<$<CXX_COMPILER_ID:Clang>:-Wno-nonportable-include-path>") + + # unit testing coverage, does not work yet #include (CodeCoverage) ##set(COVERAGE_LCOV_EXCLUDES 'Documentation/*') diff --git a/Documentation/Examples/cascade_example.cc b/Documentation/Examples/cascade_example.cc index 451a3800..a76ce24b 100644 --- a/Documentation/Examples/cascade_example.cc +++ b/Documentation/Examples/cascade_example.cc @@ -238,7 +238,7 @@ int main() { setup::Stack stack; stack.Clear(); const hep::EnergyType E0 = 100_TeV; - double theta = 45.; + double theta = 0.; double phi = 0.; { auto particle = stack.NewParticle(); -- GitLab