From 551fb4b2f3020a49ec9a03d9f89bd8895e1bf859 Mon Sep 17 00:00:00 2001 From: Andre Sailer <andre.philippe.sailer@cern.ch> Date: Thu, 17 Oct 2019 11:15:47 +0200 Subject: [PATCH] Travis: add one test for static libraries --- .dd4hep-ci.d/compile_and_test.sh | 2 +- .travis.yml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.dd4hep-ci.d/compile_and_test.sh b/.dd4hep-ci.d/compile_and_test.sh index acceb63f0..53dd61628 100755 --- a/.dd4hep-ci.d/compile_and_test.sh +++ b/.dd4hep-ci.d/compile_and_test.sh @@ -13,7 +13,7 @@ cmake -GNinja -DDD4HEP_USE_GEANT4=ON \ -DDD4HEP_DEBUG_CMAKE=ON \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_CXX_FLAGS="-fdiagnostics-color=always -Werror" \ - -DCMAKE_CXX_STANDARD=${STANDARD} .. && \ + -DCMAKE_CXX_STANDARD=${STANDARD} ${CMAKE_ARGS} .. && \ ninja && \ ninja install && \ . ../bin/thisdd4hep.sh && \ diff --git a/.travis.yml b/.travis.yml index 4389df0b3..ef9a75c55 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,7 @@ language: cpp env: - COMPILER=gcc; LCG_RELEASE=LCG_96b; STANDARD=17; COMPILER_VERSION=gcc8; PYTHON_CHECK="no" + - COMPILER=gcc; LCG_RELEASE=LCG_96b; STANDARD=17; COMPILER_VERSION=gcc8; PYTHON_CHECK="no"; CMAKE_ARGS="-DBUILD_SHARED_LIBS=OFF" - COMPILER=gcc; LCG_RELEASE=LCG_96python3; STANDARD=17; COMPILER_VERSION=gcc8; PYTHON_CHECK="no" - COMPILER=clang; LCG_RELEASE=LCG_96b; STANDARD=17; COMPILER_VERSION=clang8; PYTHON_CHECK="no" - COMPILER=gcc; LCG_RELEASE=LCG_96b; STANDARD=14; COMPILER_VERSION=gcc62; PYTHON_CHECK="no" @@ -58,7 +59,7 @@ install: # command to run tests script: - - docker run -ti --name CI_container -v $PKGDIR:/DD4hep -e COMPILER_TYPE=$COMPILER -e LCG_RELEASE=${LCG_RELEASE} -e STANDARD=${STANDARD} -e COMPILER_VERSION=${COMPILER_VERSION} ${CVMFS_REPOS} -d clicdp/cc7-lcg /bin/bash + - docker run -ti --name CI_container -v $PKGDIR:/DD4hep -e COMPILER_TYPE=$COMPILER -e LCG_RELEASE=${LCG_RELEASE} -e STANDARD=${STANDARD} -e COMPILER_VERSION=${COMPILER_VERSION} -e CMAKE_ARGS=${CMAKE_ARGS} ${CVMFS_REPOS} -d clicdp/cc7-lcg /bin/bash - if [[ "$PYTHON_CHECK" == "yes" ]]; then docker exec -ti CI_container /bin/bash -c "./DD4hep/.dd4hep-ci.d/runPythonChecks.sh"; else docker exec -ti CI_container /bin/bash -c "./DD4hep/.dd4hep-ci.d/compile_and_test.sh"; -- GitLab