sfizz/.travis/script.sh

19 lines
595 B
Bash
Raw Normal View History

2019-09-18 09:13:36 +02:00
#!/bin/bash
set -e
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 100
gcc -v && g++ -v && cmake --version && /usr/local/bin/cmake --version && $SHELL --version
mkdir build && cd build
# FIXME: lto error in build when enabled
/usr/local/bin/cmake -D CMAKE_BUILD_TYPE=Release -D ENABLE_LTO=OFF ..
2019-09-18 09:13:36 +02:00
make -j$(nproc)
elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
mkdir build && cd build
2019-12-01 15:37:33 +01:00
cmake -D SFIZZ_JACK=OFF -G Xcode .. # FIXME: client build
2019-09-22 15:35:10 +02:00
xcodebuild -project sfizz.xcodeproj -alltargets -configuration Debug build
2019-09-18 09:13:36 +02:00
fi