From 5082a21b0424cceba8aa8e800357b8c89e7f2469 Mon Sep 17 00:00:00 2001 From: Roelf-Jilling Date: Thu, 16 Jan 2020 12:21:01 +0100 Subject: [PATCH] TravisCI: keep googletest directories between CMake generator runs --- .travis.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index ebf4d76..8c8ef71 100644 --- a/.travis.yml +++ b/.travis.yml @@ -449,15 +449,16 @@ install: done function test_CMake_generate { # $1: cmake or full path to cmake + shopt -s extglob if [[ "$1" == "cmake" || -x "$(command -v $1)" && "$1" =~ .*cmake$ ]]; then echo "----------------" $1 --version echo "Configuration = ${BUILD_TYPE:-Debug}" $1 -DCMAKE_BUILD_TYPE=${BUILD_TYPE:-Debug} ${CMAKE_GEN_FLAGS[@]:?} .. - rm ./* -rf + rm -rf !(tests/googletest-*) if [[ ! ${BUILD_TYPE:-} ]]; then echo "Configuration = Release" $1 -DCMAKE_BUILD_TYPE=Release ${CMAKE_GEN_FLAGS[@]:?} .. - rm ./* -rf + rm -rf !(tests/googletest-*) fi else echo "Non existing command: $1" fi