sfizz/.travis/script.sh

18 lines
474 B
Bash
Raw Normal View History

2019-09-18 09:13:36 +02:00
#!/bin/bash
set -ex
2019-09-18 09:13:36 +02:00
2019-12-23 05:13:29 -08:00
mkdir -p build/${INSTALL_DIR} && cd build
/usr/local/bin/cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=${PWD}/${INSTALL_DIR} ..
2019-12-23 05:13:29 -08:00
if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then
2019-09-18 09:13:36 +02:00
make -j$(nproc)
elif [[ ${TRAVIS_OS_NAME} == "osx" ]]; then
2019-12-23 05:13:29 -08:00
make -j$(sysctl -n hw.ncpu)
# Xcode not currently supported, see https://gitlab.kitware.com/cmake/cmake/issues/18088
# xcodebuild -project sfizz.xcodeproj -alltargets -configuration Debug build
2019-09-18 09:13:36 +02:00
fi