wip travis windows
[rtaudio.git] / .travis.yml
1 language: cpp
2 sudo: false  # docker VM
3 matrix:
4   include:
5   - os: linux
6     env: HOST="" API="alsa"
7     compiler: gcc
8   - os: linux
9     env: HOST="" API="alsa"
10     compiler: clang
11   - os: linux
12     env: HOST="" API="jack"
13     compiler: gcc
14   - os: linux
15     env: HOST="" API="jack"
16     compiler: clang
17   - os: linux
18     env: HOST="" API="pulse"
19     compiler: gcc
20   - os: linux
21     env: HOST="" API="pulse"
22     compiler: clang
23   - os: linux
24     env: HOST="" API="oss"
25     compiler: gcc
26   - os: linux
27     env: HOST="" API="oss"
28     compiler: clang
29   - os: linux
30     env: HOST="--host=i686-w64-mingw32" API="dsound" CPPFLAGS="-Wno-unused-function"
31     compiler: gcc
32   - os: linux
33     env: HOST="--host=x86_64-w64-mingw32" API="dsound" CPPFLAGS="-Wno-unused-function"
34     compiler: gcc
35   - os: linux
36     env: HOST="--host=i686-w64-mingw32" API="asio" CPPFLAGS="-Wno-unused-function -Wno-unused-but-set-variable"
37     compiler: gcc
38   - os: linux
39     env: HOST="--host=x86_64-w64-mingw32" API="asio" CPPFLAGS="-Wno-unused-function -Wno-unused-but-set-variable"
40     compiler: gcc
41   - os: linux
42     env: HOST="--host=i686-w64-mingw32" API="wasapi" CPPFLAGS="-Wno-unused-function"
43     compiler: gcc
44   - os: linux
45     env: HOST="--host=x86_64-w64-mingw32" API="wasapi" CPPFLAGS="-Wno-unused-function"
46     compiler: gcc
47   - os: windows
48     env: API="wasapi"
49     script: cmake . -G "Visual Studio 15 2017" && echo "msbuild.exe /nologo /p:Configuration=Debug RtAudio.sln" >build.bat && set && find /c/Windows -iname msbuild.exe && find /c/Program* -iname msbuild.exe
50   # jack and asound not found on ARM gnueabihf
51   # - os: linux
52   #   env: HOST="--host=arm-linux-gnueabihf" API="alsa"
53   #   compiler: gcc
54   # - os: linux
55   #   env: HOST="--host=arm-linux-gnueabihf" API="jack"
56   #   compiler: gcc
57   - os: osx
58     env: HOST="" API="core"
59     compiler: gcc
60   - os: osx
61     env: HOST="" API="core"
62     compiler: clang
63 install:
64 - if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get install libasound2-dev libjack-dev libpulse-dev doxygen g++-mingw-w64-i686 g++-mingw-w64-x86-64 g++-arm-linux-gnueabihf oss4-dev; fi
65 - if [ $TRAVIS_OS_NAME = osx ]; then brew install doxygen || (brew update && brew install doxygen); fi
66 - if [ -n "$HOST" ]; then unset CXX; unset CC; fi
67 script: ./autogen.sh --enable-debug --with-$API $HOST && make
68 after_script:
69 - make check
70 - make distcheck
71 - make install
72 # ALSA: no access to /dev/snd/seq
73 # JACK: Jack server not running
74 # - tests/midiprobe
75 notifications:
76   email:
77     recipients:
78       - radarsat1@gmail.com
79     on_success: never
80     on_failure: change