Skip to contentSkip to conversation

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

PATCH New Stefan Hajnoczi 1 participant 1 message Jul 19, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 .travis.yml: add ALSA, PulseAudio, and SDL audio drivers

Improve code coverage by building Linux audio drivers.

---
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(+)
.travis.yml +3 -0
index c13881e..2ec8853 100644
@@ -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}
Signature · 1 line
2.7.4