Files
openmesh/CI/ci-mac.sh

63 lines
1.0 KiB
Bash
Raw Normal View History

#!/bin/bash
2015-11-11 14:31:32 +01:00
PATH=$PATH:/opt/local/bin
export PATH
#########################################
# 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