dynarmic/.travis/build.sh

27 lines
656 B
Bash
Raw Normal View History

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
cmake .. -DDYNARMIC_USE_SYSTEM_BOOST=0 -DBoost_INCLUDE_DIRS=externals/ext-boost
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
cmake .. -GXcode -DDYNARMIC_USE_SYSTEM_BOOST=0 -DBoost_INCLUDE_DIRS=externals/ext-boost -DDYNARMIC_TESTS=0
xcodebuild -configuration Release
fi