2019-09-18 09:13:36 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
2019-12-22 22:22:33 +01:00
|
|
|
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
|
2019-12-23 14:42:35 +01:00
|
|
|
/usr/local/bin/cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=${PWD}/${INSTALL_DIR} ..
|
2019-12-01 21:29:22 +01:00
|
|
|
|
2019-12-23 05:13:29 -08:00
|
|
|
if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then
|
2019-12-23 14:42:35 +01:00
|
|
|
|
2019-09-18 09:13:36 +02:00
|
|
|
make -j$(nproc)
|
2019-12-22 22:22:33 +01:00
|
|
|
elif [[ ${TRAVIS_OS_NAME} == "osx" ]]; then
|
2019-12-23 14:42:35 +01:00
|
|
|
|
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
|