.travis.yml: add ALSA, PulseAudio, and SDL audio drivers
diff mbox

Message ID 1468942587-25179-1-git-send-email-stefanha@redhat.com
State New
Headers show

Commit Message

Stefan Hajnoczi July 19, 2016, 3:36 p.m. UTC
Improve code coverage by building Linux audio drivers.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
This patch triggers the build failure fixed by Peter Maydell's "disas: Fix
ATTRIBUTE_UNUSED define clash with ALSA headers".  Apply Peter's patch first so
that Travis builds stay green.

 .travis.yml | 3 +++
 1 file changed, 3 insertions(+)

Patch
diff mbox

diff --git a/.travis.yml b/.travis.yml
index c13881e..2ec8853 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,6 +10,7 @@  addons:
   apt:
     packages:
       - libaio-dev
+      - libasound2-dev
       - libattr1-dev
       - libbrlapi-dev
       - libcap-ng-dev
@@ -22,6 +23,7 @@  addons:
       - libnss3-dev
       - libpixman-1-dev
       - libpng12-dev
+      - libpulse-dev
       - librados-dev
       - libsdl1.2-dev
       - libseccomp-dev
@@ -59,6 +61,7 @@  before_install:
   - wget -O - http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar -xvJ
   - git submodule update --init --recursive
 before_script:
+  - if [ "$TRAVIS_OS_NAME" == "linux" ]; then CONFIG="$CONFIG --audio-drv-list=alsa,oss,pa,sdl"; fi
   - ./configure ${CONFIG}
 script:
   - make -j3 && ${TEST_CMD}