Mercurial > vim
comparison .travis.yml @ 17290:5d09e015a367 v8.1.1644
patch 8.1.1644: sound test does not work on Travis
commit https://github.com/vim/vim/commit/5b19e5b919ec568792e2e2301899f0e58cf9e550
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 7 15:12:12 2019 +0200
patch 8.1.1644: sound test does not work on Travis
Problem: Sound test does not work on Travis.
Solution: Use "sg" command to enable audio. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/4624)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 07 Jul 2019 15:15:04 +0200 |
parents | fceb0977275a |
children | ce962e2644bf |
comparison
equal
deleted
inserted
replaced
17289:e1f25cc6125d | 17290:5d09e015a367 |
---|---|
73 # Start virtual framebuffer to be able to test the GUI. Does not work on OS X. | 73 # Start virtual framebuffer to be able to test the GUI. Does not work on OS X. |
74 - export DISPLAY=:99.0 | 74 - export DISPLAY=:99.0 |
75 - sh -e /etc/init.d/xvfb start && sleep 3 | 75 - sh -e /etc/init.d/xvfb start && sleep 3 |
76 - sudo modprobe snd-dummy | 76 - sudo modprobe snd-dummy |
77 - sudo usermod -a -G audio $USER | 77 - sudo usermod -a -G audio $USER |
78 - do_test() { sg audio "sg $(id -gn) '$*'"; } | |
78 | 79 |
79 osx: &osx | 80 osx: &osx |
80 os: osx | 81 os: osx |
81 addons: | 82 addons: |
82 homebrew: | 83 homebrew: |
89 - /usr/local/Homebrew/Library/Taps/ | 90 - /usr/local/Homebrew/Library/Taps/ |
90 before_install: | 91 before_install: |
91 - rvm reset | 92 - rvm reset |
92 # Lua is not installed on Travis OSX | 93 # Lua is not installed on Travis OSX |
93 - export LUA_PREFIX=/usr/local | 94 - export LUA_PREFIX=/usr/local |
95 before_script: | |
96 - do_test() { "$@"; } | |
94 | 97 |
95 coverage: &coverage | 98 coverage: &coverage |
96 - ~/.local/bin/coveralls -b "${SRCDIR}" -x .xs -e "${SRCDIR}"/if_perl.c -e "${SRCDIR}"/xxd -e "${SRCDIR}"/libvterm --encodings utf-8 latin-1 EUC-KR | 99 - ~/.local/bin/coveralls -b "${SRCDIR}" -x .xs -e "${SRCDIR}"/if_perl.c -e "${SRCDIR}"/xxd -e "${SRCDIR}"/libvterm --encodings utf-8 latin-1 EUC-KR |
97 - (cd "${SRCDIR}" && bash <(curl -s https://codecov.io/bash)) | 100 - (cd "${SRCDIR}" && bash <(curl -s https://codecov.io/bash)) |
98 | 101 |
137 "${SRCDIR}"/vim --version | 140 "${SRCDIR}"/vim --version |
138 "${SRCDIR}"/vim --not-a-term -u NONE -S "${SRCDIR}"/testdir/if_ver-1.vim -c quit > /dev/null | 141 "${SRCDIR}"/vim --not-a-term -u NONE -S "${SRCDIR}"/testdir/if_ver-1.vim -c quit > /dev/null |
139 "${SRCDIR}"/vim --not-a-term -u NONE -S "${SRCDIR}"/testdir/if_ver-2.vim -c quit > /dev/null | 142 "${SRCDIR}"/vim --not-a-term -u NONE -S "${SRCDIR}"/testdir/if_ver-2.vim -c quit > /dev/null |
140 cat if_ver.txt | 143 cat if_ver.txt |
141 fi | 144 fi |
142 - make ${SHADOWOPT} ${TEST} | 145 - do_test make ${SHADOWOPT} ${TEST} |
143 - echo -en "travis_fold:end:test\\r\\033[0K" | 146 - echo -en "travis_fold:end:test\\r\\033[0K" |
144 | 147 |
145 # instead of a 2*2*8 matrix (2*os + 2*compiler + 8*env), | 148 # instead of a 2*2*8 matrix (2*os + 2*compiler + 8*env), |
146 # exclude some builds on mac os x and linux | 149 # exclude some builds on mac os x and linux |
147 # on mac os x "tiny" is always without GUI | 150 # on mac os x "tiny" is always without GUI |