Fix compilation of ASIO and WASAPI backends in MingW/Ubuntu.
[rtaudio-cdist.git] / .travis.yml
1 language: cpp
2 sudo: false  # docker VM
3 branches:
4   only:
5     - travis
6 matrix:
7   include:
8   - os: linux
9     env: HOST="" API="alsa"
10     compiler: gcc
11   - os: linux
12     env: HOST="" API="alsa"
13     compiler: clang
14   - os: linux
15     env: HOST="" API="jack"
16     compiler: gcc
17   - os: linux
18     env: HOST="" API="jack"
19     compiler: clang
20   - os: linux
21     env: HOST="" API="pulse"
22     compiler: gcc
23   - os: linux
24     env: HOST="" API="pulse"
25     compiler: clang
26   - os: linux
27     env: HOST="" API="oss"
28     compiler: gcc
29   - os: linux
30     env: HOST="" API="oss"
31     compiler: clang
32   - os: linux
33     env: HOST="--host=i686-w64-mingw32" API="winmm" CPPFLAGS="-Wno-unused-function"
34     compiler: gcc
35   - os: linux
36     env: HOST="--host=x86_64-w64-mingw32" API="winmm" CPPFLAGS="-Wno-unused-function"
37     compiler: gcc
38   - os: linux
39     env: HOST="--host=i686-w64-mingw32" API="dsound" CPPFLAGS="-Wno-unused-function"
40     compiler: gcc
41   - os: linux
42     env: HOST="--host=x86_64-w64-mingw32" API="dsound" CPPFLAGS="-Wno-unused-function"
43     compiler: gcc
44   - os: linux
45     env: HOST="--host=i686-w64-mingw32" API="asio" CPPFLAGS="-Wno-unused-function -Wno-unused-but-set-variable"
46     compiler: gcc
47   - os: linux
48     env: HOST="--host=x86_64-w64-mingw32" API="asio" CPPFLAGS="-Wno-unused-function -Wno-unused-but-set-variable"
49     compiler: gcc
50   - os: linux
51     env: HOST="--host=i686-w64-mingw32" API="wasapi" CPPFLAGS="-Wno-unused-function"
52     compiler: gcc
53   - os: linux
54     env: HOST="--host=x86_64-w64-mingw32" API="wasapi" CPPFLAGS="-Wno-unused-function"
55     compiler: gcc
56   # jack and asound not found on ARM gnueabihf
57   # - os: linux
58   #   env: HOST="--host=arm-linux-gnueabihf" API="alsa"
59   #   compiler: gcc
60   # - os: linux
61   #   env: HOST="--host=arm-linux-gnueabihf" API="jack"
62   #   compiler: gcc
63   - os: osx
64     env: HOST="" API="core"
65     compiler: gcc
66   - os: osx
67     env: HOST="" API="core"
68     compiler: clang
69 install:
70 - if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get install libasound2-dev libjack-dev doxygen g++-mingw-w64-i686 g++-mingw-w64-x86-64 g++-arm-linux-gnueabihf oss4-dev; fi
71 - if [ $TRAVIS_OS_NAME = osx ]; then brew install doxygen || (brew update && brew install doxygen); fi
72 - if [ -n "$HOST" ]; then unset CXX; unset CC; fi
73 script: ./autogen.sh --enable-debug --with-$API $HOST && make
74 after_script:
75 - make check
76 - make distcheck
77 - make install
78 # ALSA: no access to /dev/snd/seq
79 # JACK: Jack server not running
80 # - tests/midiprobe
81 notifications:
82   email: false