2015-12-11 18:13:02 +00:00
|
|
|
language: c
|
2017-03-05 18:48:03 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
2017-03-05 19:35:02 +00:00
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
|
|
|
env:
|
|
|
|
- BUILD_ANDROID=true
|
2017-03-05 18:48:03 +00:00
|
|
|
- os: osx
|
|
|
|
sudo: required
|
2017-03-06 10:21:03 +00:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/android-ndk-r14
|
2017-03-05 14:15:08 +00:00
|
|
|
install:
|
|
|
|
- >
|
2017-03-05 19:35:02 +00:00
|
|
|
if [[ "${TRAVIS_OS_NAME}" == "linux" && -z "${BUILD_ANDROID}" ]]; then
|
2017-03-05 14:15:08 +00:00
|
|
|
# Install pulseaudio, portaudio, ALSA, JACK dependencies for
|
|
|
|
# corresponding backends.
|
|
|
|
# Install Qt5 dependency for alsoft-config.
|
|
|
|
sudo apt-get install -qq \
|
|
|
|
libpulse-dev \
|
|
|
|
portaudio19-dev \
|
|
|
|
libasound2-dev \
|
|
|
|
libjack-dev \
|
|
|
|
qtbase5-dev
|
|
|
|
fi
|
2017-03-05 19:35:02 +00:00
|
|
|
- >
|
|
|
|
if [[ "${TRAVIS_OS_NAME}" == "linux" && "${BUILD_ANDROID}" == "true" ]]; then
|
2017-03-06 10:24:57 +00:00
|
|
|
if [[ ! -d ~/android-ndk-r14 || -z "$(ls -A ~/android-ndk-r14)" ]]; then
|
|
|
|
curl -o ~/android-ndk.zip https://dl.google.com/android/repository/android-ndk-r14-linux-x86_64.zip
|
|
|
|
unzip -q ~/android-ndk.zip -d ~ \
|
|
|
|
'android-ndk-r14/build/cmake/*' \
|
|
|
|
'android-ndk-r14/platforms/android-9/arch-arm/*' \
|
|
|
|
'android-ndk-r14/source.properties' \
|
|
|
|
'android-ndk-r14/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/*' \
|
|
|
|
'android-ndk-r14/sysroot/*' \
|
|
|
|
'android-ndk-r14/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/*' \
|
|
|
|
'android-ndk-r14/toolchains/llvm/prebuilt/linux-x86_64/*'
|
|
|
|
sed -i -e 's/VERSION 3.6.0/VERSION 3.2/' ~/android-ndk-r14/build/cmake/android.toolchain.cmake
|
|
|
|
fi
|
2017-03-05 19:35:02 +00:00
|
|
|
fi
|
|
|
|
script:
|
|
|
|
- >
|
|
|
|
if [[ "${TRAVIS_OS_NAME}" == "linux" && -z "${BUILD_ANDROID}" ]]; then
|
2017-03-05 16:23:31 +00:00
|
|
|
cmake \
|
|
|
|
-DALSOFT_REQUIRE_ALSA=ON \
|
|
|
|
-DALSOFT_REQUIRE_OSS=ON \
|
|
|
|
-DALSOFT_REQUIRE_PORTAUDIO=ON \
|
|
|
|
-DALSOFT_REQUIRE_PULSEAUDIO=ON \
|
|
|
|
-DALSOFT_REQUIRE_JACK=ON \
|
2017-05-05 10:30:27 +00:00
|
|
|
-DALSOFT_EMBED_HRTF_DATA=YES \
|
2017-03-05 16:23:31 +00:00
|
|
|
.
|
2017-03-05 19:35:02 +00:00
|
|
|
fi
|
|
|
|
- >
|
|
|
|
if [[ "${TRAVIS_OS_NAME}" == "linux" && "${BUILD_ANDROID}" == "true" ]]; then
|
|
|
|
cmake \
|
|
|
|
-DCMAKE_TOOLCHAIN_FILE=~/android-ndk-r14/build/cmake/android.toolchain.cmake \
|
2017-03-05 16:23:31 +00:00
|
|
|
-DALSOFT_REQUIRE_OPENSL=ON \
|
2017-05-05 10:30:27 +00:00
|
|
|
-DALSOFT_EMBED_HRTF_DATA=YES \
|
2017-03-05 19:35:02 +00:00
|
|
|
.
|
|
|
|
fi
|
|
|
|
- >
|
|
|
|
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
|
2017-03-05 16:23:31 +00:00
|
|
|
cmake \
|
|
|
|
-DALSOFT_REQUIRE_COREAUDIO=ON \
|
2017-05-05 10:30:27 +00:00
|
|
|
-DALSOFT_EMBED_HRTF_DATA=YES \
|
2017-03-05 16:23:31 +00:00
|
|
|
.
|
2017-03-05 19:35:02 +00:00
|
|
|
fi
|
|
|
|
- make -j2
|