]> granicus.if.org Git - vim/commitdiff
patch 8.1.1507: sound test still fails on Travis v8.1.1507
authorBram Moolenaar <Bram@vim.org>
Sun, 9 Jun 2019 13:21:27 +0000 (15:21 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 9 Jun 2019 13:21:27 +0000 (15:21 +0200)
Problem:    Sound test still fails on Travis.
Solution:   Try another dummy sound approach.

.travis.yml
src/version.c

index 4e7df286d9399c743c5c1fadf4edde2b89d43e77..407ee725b42a2f67687fd8c582d9fafbea67aa77 100644 (file)
@@ -121,25 +121,16 @@ before_install:
     if [[ "${TRAVIS_OS_NAME}" = "linux" ]] && [[ "${CC}" = "clang" ]]; then
       ln -sf "$(which llvm-cov)" /home/travis/bin/gcov
     fi
-  # Should make sound work (might not all be needed)
-  - |
-    if [[ "${TRAVIS_OS_NAME}" = "linux" ]]; then
-      sudo apt-get update -qq
-      sudo usermod -a -G audio travis
-      sudo apt-get install -y portaudio19-dev
-      sudo apt-get install -y libasound2-dev alsa-utils alsa-oss
-      sudo bash test/prep-dummy-soundcard.sh
-      sudo apt-get install -y lame
-    fi
 
 before_script:
   # Start virtual framebuffer to be able to test the GUI. Does not work on OS X.
+  # Install dummy device for sound.
   - |
     if [[ "${TRAVIS_OS_NAME}" = "linux" ]]; then
       export DISPLAY=:99.0
       sh -e /etc/init.d/xvfb start && sleep 3
-      # pretend to play sound
-      export AUDIODEV=null
+      sudo modprobe snd-dummy
+      sudo usermod -a -G audio $USER
     fi
 
 script:
index 5c12872644cc0317225ffcd4c3f84c4af3b3e954..6b6fd198ec725fe68cc2b14c793aae6aaf346090 100644 (file)
@@ -777,6 +777,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1507,
 /**/
     1506,
 /**/