2016-09-02 11:28:50 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
2016-09-02 12:57:16 +01:00
|
|
|
cmake --version
|
2016-09-02 11:28:50 +01:00
|
|
|
|
2016-09-02 12:57:16 +01:00
|
|
|
if [ "$TRAVIS_OS_NAME" = "linux" -o -z "$TRAVIS_OS_NAME" ]; then
|
|
|
|
export CC=gcc-6
|
|
|
|
export CXX=g++-6
|
|
|
|
export PKG_CONFIG_PATH=$HOME/.local/lib/pkgconfig:$PKG_CONFIG_PATH
|
2016-09-02 11:28:50 +01:00
|
|
|
|
2016-09-02 12:57:16 +01:00
|
|
|
mkdir build && cd build
|
2017-04-09 11:26:20 +01:00
|
|
|
cmake .. -DDYNARMIC_USE_SYSTEM_BOOST=0 -DBoost_INCLUDE_DIRS=${PWD}/../externals/ext-boost -DCMAKE_BUILD_TYPE=Release
|
2016-09-02 12:57:16 +01:00
|
|
|
make -j4
|
|
|
|
|
|
|
|
ctest -VV -C Release
|
|
|
|
elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
|
|
|
set -o pipefail
|
|
|
|
|
|
|
|
export MACOSX_DEPLOYMENT_TARGET=10.9
|
|
|
|
|
|
|
|
mkdir build && cd build
|
2017-03-04 03:09:28 +00:00
|
|
|
cmake .. -GXcode -DDYNARMIC_USE_SYSTEM_BOOST=0 -DBoost_INCLUDE_DIRS=${PWD}/../externals/ext-boost -DDYNARMIC_TESTS=0
|
2016-09-02 12:57:16 +01:00
|
|
|
xcodebuild -configuration Release
|
|
|
|
fi
|