comparison .travis.yml @ 17014:eca47d76ad5a v8.1.1507

patch 8.1.1507: sound test still fails on Travis commit https://github.com/vim/vim/commit/a90998d93a6e8deb686dd67a73288db2ca08dc89 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 9 15:21:27 2019 +0200 patch 8.1.1507: sound test still fails on Travis Problem: Sound test still fails on Travis. Solution: Try another dummy sound approach.
author Bram Moolenaar <Bram@vim.org>
date Sun, 09 Jun 2019 15:30:05 +0200
parents 00299e2deae2
children 051a2f640a6e
comparison
equal deleted inserted replaced
17013:0357c42d29fc 17014:eca47d76ad5a
119 # Use llvm-cov instead of gcov when compiler is clang. 119 # Use llvm-cov instead of gcov when compiler is clang.
120 - | 120 - |
121 if [[ "${TRAVIS_OS_NAME}" = "linux" ]] && [[ "${CC}" = "clang" ]]; then 121 if [[ "${TRAVIS_OS_NAME}" = "linux" ]] && [[ "${CC}" = "clang" ]]; then
122 ln -sf "$(which llvm-cov)" /home/travis/bin/gcov 122 ln -sf "$(which llvm-cov)" /home/travis/bin/gcov
123 fi 123 fi
124 # Should make sound work (might not all be needed)
125 - |
126 if [[ "${TRAVIS_OS_NAME}" = "linux" ]]; then
127 sudo apt-get update -qq
128 sudo usermod -a -G audio travis
129 sudo apt-get install -y portaudio19-dev
130 sudo apt-get install -y libasound2-dev alsa-utils alsa-oss
131 sudo bash test/prep-dummy-soundcard.sh
132 sudo apt-get install -y lame
133 fi
134 124
135 before_script: 125 before_script:
136 # Start virtual framebuffer to be able to test the GUI. Does not work on OS X. 126 # Start virtual framebuffer to be able to test the GUI. Does not work on OS X.
127 # Install dummy device for sound.
137 - | 128 - |
138 if [[ "${TRAVIS_OS_NAME}" = "linux" ]]; then 129 if [[ "${TRAVIS_OS_NAME}" = "linux" ]]; then
139 export DISPLAY=:99.0 130 export DISPLAY=:99.0
140 sh -e /etc/init.d/xvfb start && sleep 3 131 sh -e /etc/init.d/xvfb start && sleep 3
141 # pretend to play sound 132 sudo modprobe snd-dummy
142 export AUDIODEV=null 133 sudo usermod -a -G audio $USER
143 fi 134 fi
144 135
145 script: 136 script:
146 - NPROC=$(getconf _NPROCESSORS_ONLN) 137 - NPROC=$(getconf _NPROCESSORS_ONLN)
147 - set -o errexit 138 - set -o errexit