2017-08-10 21:11:05 +00:00
language : c
2018-10-30 16:30:48 +00:00
sudo : false
2018-10-28 15:29:15 +00:00
os : linux
2017-08-10 21:11:05 +00:00
dist : trusty
2018-10-28 15:29:15 +00:00
addons :
apt :
sources :
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-6.0
- llvm-toolchain-trusty-7
packages :
- cmake-data
- cmake
- libglib2.0-0
- libsndfile-dev
- libasound2-dev
- libjack-dev
- portaudio19-dev
- libpulse-dev
- libdbus-glib-1-dev
- ladspa-sdk
2019-03-26 14:58:37 +00:00
- libsdl2-dev
2017-08-11 09:25:04 +00:00
env :
- CMAKE_FLAGS="-Denable-profiling=1"
- CMAKE_FLAGS="-Denable-floats=1 -Denable-profiling=1"
2018-10-28 15:29:15 +00:00
- CMAKE_FLAGS="-Denable-floats=0"
2017-08-11 09:25:04 +00:00
- CMAKE_FLAGS="-Denable-trap-on-fpe=1"
- CMAKE_FLAGS="-Denable-fpe-check=1"
2018-03-03 19:06:23 +00:00
- CMAKE_FLAGS="-Denable-ipv6=0"
- CMAKE_FLAGS="-Denable-network=0"
- CMAKE_FLAGS="-Denable-aufile=0"
2018-02-22 16:24:24 +00:00
- CMAKE_FLAGS="-DBUILD_SHARED_LIBS=0"
2018-10-28 15:29:15 +00:00
2017-08-10 21:11:05 +00:00
matrix :
include :
2018-10-28 15:29:15 +00:00
- os : osx
osx_image : xcode10
2017-09-22 18:23:29 +00:00
2018-05-05 15:48:27 +00:00
- os : linux
env :
2018-10-28 15:29:15 +00:00
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7 && sudo apt-get install gcc-7"
2018-05-05 15:48:27 +00:00
2017-08-10 21:11:05 +00:00
- os : linux
env :
2018-10-28 15:29:15 +00:00
- MATRIX_EVAL="CC=gcc-8 && CXX=g++-8 && sudo apt-get install gcc-8"
- CMAKE_FLAGS="-Denable-debug=1 -DCMAKE_C_FLAGS_DEBUG=-fuse-ld=gold"
2017-08-10 21:11:05 +00:00
- os : linux
env :
2018-10-28 15:29:15 +00:00
- MATRIX_EVAL="CC=clang-3.8 && CXX=clang++-3.8 && sudo apt-get install clang-3.8"
2017-08-10 21:11:05 +00:00
- os : linux
env :
2018-10-28 15:29:15 +00:00
- MATRIX_EVAL="CC=clang-6.0 && CXX=clang++-6.0 && sudo apt-get install clang-6.0"
2017-08-10 21:11:05 +00:00
2018-10-07 11:52:21 +00:00
- os : linux
2017-09-22 18:23:29 +00:00
env :
2018-10-28 15:29:15 +00:00
- MATRIX_EVAL="CC=clang-7 && CXX=clang++-7 && sudo apt-get install clang-7"
2017-08-10 21:11:05 +00:00
before_install :
2017-10-20 13:07:15 +00:00
- if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get update; else brew update; fi
2019-03-25 20:09:22 +00:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install glib gettext libsndfile jack dbus-glib pulseaudio portaudio sdl2; fi # && brew link gettext
2017-08-10 21:11:05 +00:00
- eval "${MATRIX_EVAL}"
before_script :
2018-02-22 16:32:16 +00:00
- mkdir $HOME/fluidsynth_install/
2017-08-10 21:11:05 +00:00
- mkdir build && cd build
script :
2018-10-28 15:29:15 +00:00
- cmake -DCMAKE_INSTALL_PREFIX=$HOME/fluidsynth_install ${CMAKE_FLAGS} -Denable-portaudio=1 -Denable-ladspa=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_VERBOSE_MAKEFILE=0 ..
2017-08-10 21:11:05 +00:00
- make -j4
2018-08-05 15:55:07 +00:00
- make check
- if [ $TRAVIS_OS_NAME = linux ]; then make install; fi # install only on linux, as CMAKE_INSTALL_PREFIX is ignored for frameworks on macosx and I cant tell whether that's correct or a bug.