Commit 7fc4253e authored by Jan Möbius's avatar Jan Möbius

Updated linux ci script

parent f8d3b8fe
...@@ -7,30 +7,35 @@ LANGUAGE=$2 ...@@ -7,30 +7,35 @@ LANGUAGE=$2
set -e set -e
OPTIONS="" OPTIONS=""
BUILDPATH=""
if [ "$COMPILER" == "gcc" ]; then if [ "$COMPILER" == "gcc" ]; then
echo "Building with GCC"; echo "Building with GCC";
BUILDPATH="gcc"
elif [ "$COMPILER" == "clang" ]; then elif [ "$COMPILER" == "clang" ]; then
OPTIONS="$OPTIONS -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang" OPTIONS="$OPTIONS -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang"
echo "Building with CLANG"; echo "Building with CLANG";
BUILDPATH="clang"
fi fi
if [ "$LANGUAGE" == "C++98" ]; then if [ "$LANGUAGE" == "C++98" ]; then
echo "Building with C++98"; echo "Building with C++98";
BUILDPATH="$BUILDPATH-cpp98"
elif [ "$LANGUAGE" == "C++11" ]; then elif [ "$LANGUAGE" == "C++11" ]; then
echo "Building with C++11"; echo "Building with C++11";
OPTIONS="$OPTIONS -DCMAKE_CXX_FLAGS='-std=c++11' " OPTIONS="$OPTIONS -DCMAKE_CXX_FLAGS='-std=c++11' "
BUILDPATH="$BUILDPATH-cpp11"
fi fi
######################################### #########################################
# Make release build folder # Make release build folder
if [ ! -d build-release ]; then if [ ! -d build-release-$BUILDPATH ]; then
mkdir build-release mkdir build-release-$BUILDPATH
fi fi
cd build-release cd build-release-$BUILDPATH
cmake -DCMAKE_BUILD_TYPE=Release -DOPENMESH_BUILD_UNIT_TESTS=TRUE -DSTL_VECTOR_CHECKS=ON -DOPENMESH_BUILD_PYTHON_UNIT_TESTS=ON $OPTIONS ../ cmake -DCMAKE_BUILD_TYPE=Release -DOPENMESH_BUILD_UNIT_TESTS=TRUE -DSTL_VECTOR_CHECKS=ON -DOPENMESH_BUILD_PYTHON_UNIT_TESTS=ON $OPTIONS ../
...@@ -63,11 +68,11 @@ cd .. ...@@ -63,11 +68,11 @@ cd ..
# Build Debug version and Unittests # Build Debug version and Unittests
######################################### #########################################
if [ ! -d build-debug ]; then if [ ! -d build-debug-$BUILDPATH ]; then
mkdir build-debug mkdir build-debug-$BUILDPATH
fi fi
cd build-debug cd build-debug-$BUILDPATH
cmake -DCMAKE_BUILD_TYPE=Debug -DOPENMESH_BUILD_UNIT_TESTS=TRUE -DSTL_VECTOR_CHECKS=ON -DOPENMESH_BUILD_PYTHON_UNIT_TESTS=ON $OPTIONS ../ cmake -DCMAKE_BUILD_TYPE=Debug -DOPENMESH_BUILD_UNIT_TESTS=TRUE -DSTL_VECTOR_CHECKS=ON -DOPENMESH_BUILD_PYTHON_UNIT_TESTS=ON $OPTIONS ../
......
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