Return the ringbuffer data pointers as a pair
[openal-soft.git] / .travis.yml
blobe24ed7d8c77d95de46f392501f2062d7b5924619
1 language: c
2 matrix:
3   include:
4     - os: linux
5       dist: xenial
6     - os: linux
7       dist: trusty
8       env:
9         - BUILD_ANDROID=true
10     - os: osx
11 sudo: required
12 install:
13   - >
14     if [[ "${TRAVIS_OS_NAME}" == "linux" && -z "${BUILD_ANDROID}" ]]; then
15       # Install pulseaudio, portaudio, ALSA, JACK dependencies for
16       # corresponding backends.
17       # Install Qt5 dependency for alsoft-config.
18       sudo apt-get install -qq \
19         libpulse-dev \
20         portaudio19-dev \
21         libasound2-dev \
22         libjack-dev \
23         qtbase5-dev
24     fi
25   - >
26     if [[ "${TRAVIS_OS_NAME}" == "linux" && "${BUILD_ANDROID}" == "true" ]]; then
27       curl -o ~/android-ndk.zip https://dl.google.com/android/repository/android-ndk-r16b-linux-x86_64.zip
28       unzip -q ~/android-ndk.zip -d ~ \
29         'android-ndk-r16b/build/cmake/*' \
30         'android-ndk-r16b/build/core/toolchains/arm-linux-androideabi-*/*' \
31         'android-ndk-r16b/platforms/android-14/arch-arm/*' \
32         'android-ndk-r16b/source.properties' \
33         'android-ndk-r16b/sources/android/support/include/*' \
34         'android-ndk-r16b/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a/*' \
35         'android-ndk-r16b/sources/cxx-stl/llvm-libc++/include/*' \
36         'android-ndk-r16b/sysroot/*' \
37         'android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/*' \
38         'android-ndk-r16b/toolchains/llvm/prebuilt/linux-x86_64/*'
39     fi
40 script:
41   - >
42     if [[ "${TRAVIS_OS_NAME}" == "linux" && -z "${BUILD_ANDROID}" ]]; then
43       cmake \
44         -DALSOFT_REQUIRE_ALSA=ON \
45         -DALSOFT_REQUIRE_OSS=ON \
46         -DALSOFT_REQUIRE_PORTAUDIO=ON \
47         -DALSOFT_REQUIRE_PULSEAUDIO=ON \
48         -DALSOFT_REQUIRE_JACK=ON \
49         -DALSOFT_EMBED_HRTF_DATA=YES \
50         .
51     fi
52   - >
53     if [[ "${TRAVIS_OS_NAME}" == "linux" && "${BUILD_ANDROID}" == "true" ]]; then
54       cmake \
55         -DANDROID_STL=c++_shared \
56         -DCMAKE_TOOLCHAIN_FILE=~/android-ndk-r16b/build/cmake/android.toolchain.cmake \
57         -DALSOFT_REQUIRE_OPENSL=ON \
58         -DALSOFT_EMBED_HRTF_DATA=YES \
59         .
60     fi
61   - >
62     if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
63       cmake \
64         -DALSOFT_REQUIRE_COREAUDIO=ON \
65         -DALSOFT_EMBED_HRTF_DATA=YES \
66         .
67     fi
68   - make -j2