First version for mac gitlab-ci integration

This commit is contained in:
Jan Möbius
2015-11-11 14:30:00 +01:00
parent 87a4e1f672
commit 6d6b02680c
2 changed files with 66 additions and 0 deletions

View File

@@ -10,3 +10,5 @@ gcc-c++98:
clang-c++98:
script: "CI/ci-linux.sh clang C++98"
macos:
script: "CI/ci-mac.sh"

64
CI/ci-mac.sh Executable file
View File

@@ -0,0 +1,64 @@
#!/bin/bash
if [ $(uname) == Darwin ]; then
PATH=$PATH:/opt/local/bin
export PATH
fi
#########################################
# Build release version
#########################################
if [ ! -d build-release ]; then
mkdir build-release
fi
cd build-release
cmake -DCMAKE_BUILD_TYPE=Release -DOPENMESH_BUILD_UNIT_TESTS=TRUE ../
#build it
make
#build the unit tests
make unittests
#########################################
# Run Release Unittests
#########################################
cd Unittests
#execute tests
./unittests --gtest_color=yes --gtest_output=xml
cd ..
cd ..
#########################################
# Build Debug version and Unittests
#########################################
if [ ! -d build-debug ]; then
mkdir build-debug
fi
cd build-debug
cmake -DCMAKE_BUILD_TYPE=Debug -DOPENMESH_BUILD_UNIT_TESTS=TRUE ../
#build the unit tests
make unittests
#########################################
# Run Debug Unittests
#########################################
cd Unittests
# Run the unittests
./unittests --gtest_color=yes --gtest_output=xml