Commit a58f8dd5 authored by Alexander David Hellwig's avatar Alexander David Hellwig
Browse files

Use ccache for integration test if available

parent 80c64083
Pipeline #100866 failed with stages
in 33 seconds
......@@ -13,9 +13,17 @@ function build() {
echo Trying to build "$1"
echo creating dir "$1"/build
mkdir "$1"/build
quitOnError "$1"
echo CMake
cmake -B"$1"/build/ -H"$1"/src/ -DCMAKE_BUILD_TYPE=DEBUG
# quitOnError "$1"
if [[ `command -v ccache` ]]
echo CMake with ccache
export CXX="/usr/bin/g++"
cmake -B"$1"/build/ -H"$1"/src/ -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_CXX_COMPILER_LAUNCHER="ccache"
echo CMake without ccache
cmake -B"$1"/build/ -H"$1"/src/ -DCMAKE_BUILD_TYPE=DEBUG
quitOnError "$1"
echo make
make -s -C "$1"/build/
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