Commit 5a7cb17e authored by Jan Möbius's avatar Jan Möbius
Browse files

Merge branch 'CI' into 'master'

Ci

Continuos integration for OpenFlipper free via gitlab

See merge request !35
parents 02fe6fa6 3bf23ab9
Pipeline #166 passed with stage
gcc-c++11-Qt4:
script: "CI/ci-linux.sh gcc C++11 QT4"
tags:
- Linux
clang-c++11-Qt4:
script: "CI/ci-linux.sh clang C++11 QT4"
tags:
- Linux
gcc-c++98-Qt4:
script: "CI/ci-linux.sh gcc C++98 QT4"
tags:
- Linux
clang-c++98-Qt4:
script: "CI/ci-linux.sh clang C++98 QT4"
tags:
- Linux
gcc-c++11-Qt5:
script: "CI/ci-linux.sh gcc C++11 QT5"
tags:
- Linux
clang-c++11-Qt5:
script: "CI/ci-linux.sh clang C++11 QT5"
tags:
- Linux
gcc-c++98-Qt5:
script: "CI/ci-linux.sh gcc C++98 QT5"
tags:
- Linux
clang-c++98-Qt5:
script: "CI/ci-linux.sh clang C++98 QT5"
tags:
- Linux
#!/bin/bash
# Script abort on error
set -e
COMPILER=$1
LANGUAGE=$2
QTVERSION=$3
OPTIONS=""
BUILDPATH=""
if [ "$COMPILER" == "gcc" ]; then
echo "Building with GCC";
BUILDPATH="gcc"
elif [ "$COMPILER" == "clang" ]; then
OPTIONS="$OPTIONS -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DGTEST_PREFIX=~/sw/gtest-1.7.0-clang/ "
BUILDPATH="clang"
echo "Building with CLANG";
fi
if [ "$LANGUAGE" == "C++98" ]; then
echo "Building with C++98";
BUILDPATH="$BUILDPATH-cpp98"
elif [ "$LANGUAGE" == "C++11" ]; then
echo "Building with C++11";
OPTIONS="$OPTIONS -DCMAKE_CXX_FLAGS='-std=c++11' "
BUILDPATH="$BUILDPATH-cpp11"
fi
if [ "$QTVERSION" == "QT4" ]; then
echo "Building with QT4";
OPTIONS="$OPTIONS -DFORCE_QT4=TRUE "
BUILDPATH="$BUILDPATH-qt4"
elif [ "$QTVERSION" == "QT5" ]; then
echo "Building with QT5";
BUILDPATH="$BUILDPATH-qt5"
OPTIONS="$OPTIONS -DFORCE_QT4=FALSE -DQWT6_INCLUDE_DIR=~/sw/qwt-6.1.2-qt5/include -DQWT6_LIBRARY_DIR=~/sw/qwt-6.1.2-qt5/lib -DQWT6_LIBRARY=~/sw/qwt-6.1.2-qt5/lib/libqwt-qt5.so -DQT5_INSTALL_PATH=~/sw/qt-5.5.1/5.5/gcc_64"
fi
echo "Building with path: build-release-$BUILDPATH"
echo "Full cmake options: $OPTIONS "
########################################
# Fetch submodules
########################################
git submodule init
git submodule update --remote
########################################
# Fetch test data
########################################
rm -rf TestData
git clone git@roosevelt:moebius/OpenFlipper-Test-Data.git TestData
#########################################
# Build Release version and Unittests
#########################################
# Make release build folder
if [ ! -d build-release-$BUILDPATH ]; then
mkdir build-release-$BUILDPATH
fi
cd build-release-$BUILDPATH
cmake -DCMAKE_BUILD_TYPE=Release -DOPENFLIPPER_BUILD_UNIT_TESTS=TRUE -DSTL_VECTOR_CHECKS=ON $OPTIONS ../
#build it
make
#########################################
# Run Release Unittests
#########################################
# Run tests
cd tests
bash run_tests.sh
cd ..
OpenMesh @ b422f079
Subproject commit ae9d913b9d2d288b792a2b19008f359cdb6e3a3c
Subproject commit b422f079fe9c8f065d64224a3fa3df3a5cf41374
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