Avoid some memset calls in the pitch shifter process loop
[openal-soft.git] / .travis.yml
blob426eef40c730571085d7172ec2aa9ba480ac1bda
1 language: c
2 matrix:
3   include:
4     - os: linux
5       dist: trusty
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-r15-linux-x86_64.zip
28       unzip -q ~/android-ndk.zip -d ~ \
29         'android-ndk-r15/build/cmake/*' \
30         'android-ndk-r15/build/core/toolchains/arm-linux-androideabi-*/*' \
31         'android-ndk-r15/platforms/android-14/arch-arm/*' \
32         'android-ndk-r15/source.properties' \
33         'android-ndk-r15/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/*' \
34         'android-ndk-r15/sources/cxx-stl/gnu-libstdc++/4.9/include/*' \
35         'android-ndk-r15/sysroot/*' \
36         'android-ndk-r15/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/*' \
37         'android-ndk-r15/toolchains/llvm/prebuilt/linux-x86_64/*'
38     fi
39 script:
40   - >
41     if [[ "${TRAVIS_OS_NAME}" == "linux" && -z "${BUILD_ANDROID}" ]]; then
42       cmake \
43         -DALSOFT_REQUIRE_ALSA=ON \
44         -DALSOFT_REQUIRE_OSS=ON \
45         -DALSOFT_REQUIRE_PORTAUDIO=ON \
46         -DALSOFT_REQUIRE_PULSEAUDIO=ON \
47         -DALSOFT_REQUIRE_JACK=ON \
48         -DALSOFT_EMBED_HRTF_DATA=YES \
49         .
50     fi
51   - >
52     if [[ "${TRAVIS_OS_NAME}" == "linux" && "${BUILD_ANDROID}" == "true" ]]; then
53       cmake \
54         -DCMAKE_TOOLCHAIN_FILE=~/android-ndk-r15/build/cmake/android.toolchain.cmake \
55         -DALSOFT_REQUIRE_OPENSL=ON \
56         -DALSOFT_EMBED_HRTF_DATA=YES \
57         .
58     fi
59   - >
60     if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
61       cmake \
62         -DALSOFT_REQUIRE_COREAUDIO=ON \
63         -DALSOFT_EMBED_HRTF_DATA=YES \
64         .
65     fi
66   - make -j2