comparison .travis.yml @ 19669:c4062bd1ff4f v8.2.0391

patch 8.2.0391: CI test coverage dropped Commit: https://github.com/vim/vim/commit/b2e1f8a28fab71c7ef38d39226967be8c3559590 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Mar 16 12:09:30 2020 +0100 patch 8.2.0391: CI test coverage dropped Problem: CI test coverage dropped. Solution: Set $DISPLAY also for non-GUI builds. (James McCoy, closes https://github.com/vim/vim/issues/5788)
author Bram Moolenaar <Bram@vim.org>
date Mon, 16 Mar 2020 12:15:04 +0100
parents 7e75be5a3b74
children c94c103e7cb4
comparison
equal deleted inserted replaced
19668:1d074dc7260f 19669:c4062bd1ff4f
70 - | 70 - |
71 if [[ "${CC}" = "clang" ]]; then 71 if [[ "${CC}" = "clang" ]]; then
72 ln -sf "$(which llvm-cov)" /home/travis/bin/gcov 72 ln -sf "$(which llvm-cov)" /home/travis/bin/gcov
73 fi 73 fi
74 before_script: 74 before_script:
75 # Start virtual framebuffer to be able to test the GUI. Does not work on OS X. 75 - |
76 - | 76 # Start virtual framebuffer to be able to test the GUI. For dists newer
77 if [[ "${TEST}" =~ gui ]]; then 77 # than trusty, the "services: xvfb" setting should be used instead
78 if [[ ${TRAVIS_DIST} = trusty ]]; then
78 export DISPLAY=:99.0 79 export DISPLAY=:99.0
79 sh -e /etc/init.d/xvfb start && sleep 3 80 sh -e /etc/init.d/xvfb start && sleep 3
80 fi 81 fi
81 - | 82 - |
82 [ "${TRAVIS_CPU_ARCH}" = s390x ] || sudo modprobe snd-dummy 83 # Sound testing works without this in newer dists
84 [ ${TRAVIS_DIST} != trusty ] || sudo modprobe snd-dummy
83 - sudo usermod -a -G audio $USER 85 - sudo usermod -a -G audio $USER
84 - do_test() { sg audio "sg $(id -gn) '$*'"; } 86 - do_test() { sg audio "sg $(id -gn) '$*'"; }
85 87
86 osx: &osx 88 osx: &osx
87 os: osx 89 os: osx
211 arch: s390x 213 arch: s390x
212 name: huge/gcc-s390x 214 name: huge/gcc-s390x
213 compiler: gcc 215 compiler: gcc
214 env: 216 env:
215 - *linux-huge 217 - *linux-huge
218 - COVERAGE=no
216 addons: 219 addons:
217 apt: 220 apt:
218 packages: 221 packages:
219 - *linux-packages 222 - *linux-packages
220 - libtool-bin 223 - libtool-bin