comparison .travis.yml @ 19850:b6e641dc1de0 v8.2.0481

patch 8.2.0481: Travis is still using trusty Commit: https://github.com/vim/vim/commit/7d333a900d260b8e8caa0fb159c85023fc8795bd Author: Bram Moolenaar <Bram@vim.org> Date: Mon Mar 30 19:13:29 2020 +0200 patch 8.2.0481: Travis is still using trusty Problem: Travis is still using trusty. Solution: Adjust config to use bionic. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/5868)
author Bram Moolenaar <Bram@vim.org>
date Mon, 30 Mar 2020 19:15:05 +0200
parents c94c103e7cb4
children b5f0b8ee1ec5
comparison
equal deleted inserted replaced
19849:2ddc553ce412 19850:b6e641dc1de0
24 - &shadowopt 24 - &shadowopt
25 SHADOWOPT="-C src/shadow" SRCDIR=./src/shadow 25 SHADOWOPT="-C src/shadow" SRCDIR=./src/shadow
26 26
27 linux: &linux 27 linux: &linux
28 os: linux 28 os: linux
29 dist: trusty 29 dist: bionic
30 addons: 30 addons:
31 apt: 31 apt:
32 sources: 32 packages:
33 # Need msgfmt 0.19.8 to be able to generate .desktop files
34 - sourceline: 'ppa:ricotz/toolchain'
35 packages: &linux-packages
36 - autoconf 33 - autoconf
37 - clang 34 - clang
38 - lcov 35 - lcov
39 - gettext 36 - gettext
40 - libcanberra-dev 37 - libcanberra-dev
41 - libperl-dev 38 - libperl-dev
42 - python-dev 39 - python-dev
43 - python3-dev 40 - python3-dev
44 - liblua5.2-dev 41 - liblua5.3-dev
45 - lua5.2 42 - lua5.3
46 - ruby-dev 43 - ruby-dev
47 - tcl-dev 44 - tcl-dev
48 - cscope 45 - cscope
49 - libgtk2.0-dev 46 - libgtk2.0-dev
50 - desktop-file-utils 47 - desktop-file-utils
48 - libtool-bin
49 services:
50 - xvfb
51 before_install: 51 before_install:
52 - rvm reset 52 - rvm reset
53 # Remove /opt/python/3.x.x/bin from $PATH for using system python3.
54 # ("pyenv global system" doesn't seem to work.)
55 - |
56 if [[ "$(which python3)" =~ ^/opt/python/ ]]; then
57 export PATH=$(py3=$(which python3); echo ${PATH//${py3%/python3}:/})
58 fi
59 # Use llvm-cov instead of gcov when compiler is clang. 53 # Use llvm-cov instead of gcov when compiler is clang.
60 - | 54 - |
61 if [[ "${CC}" = "clang" ]]; then 55 if [[ "${CC}" = "clang" ]]; then
62 ln -sf "$(which llvm-cov)" /home/travis/bin/gcov 56 ln -sf "$(command -v llvm-cov)" /home/travis/bin/gcov
57 fi
58 # Setup lua5.3 manually since its package doesn't provide alternative.
59 # https://bugs.launchpad.net/ubuntu/+source/lua5.3/+bug/1707212
60 - |
61 if [[ "${CONFOPT}" =~ luainterp ]]; then
62 sudo update-alternatives --install /usr/bin/lua lua /usr/bin/lua5.3 10
63 fi 63 fi
64 before_script: 64 before_script:
65 # Start virtual framebuffer to be able to test the GUI. For dists newer 65 # On travis bionic-amd64 gethostbyname() resolves "localhost" to 127.0.1.1
66 # than trusty, the "services: xvfb" setting should be used instead 66 # so that makes various channel tests fail.
67 - | 67 - sudo sed -i '/^127\.0\.1\.1\s/s/\blocalhost\b//g' /etc/hosts
68 if [[ ${TRAVIS_DIST} = trusty ]]; then
69 export DISPLAY=:99.0
70 sh -e /etc/init.d/xvfb start && sleep 3
71 fi
72 - sudo bash ci/load-snd-dummy.sh || true 68 - sudo bash ci/load-snd-dummy.sh || true
73 - sudo usermod -a -G audio $USER 69 - sudo usermod -a -G audio $USER
74 - do_test() { sg audio "sg $(id -gn) '$*'"; } 70 - do_test() { sg audio "sg $(id -gn) '$*'"; }
75 71
76 osx: &osx 72 osx: &osx
88 directories: 84 directories:
89 - /usr/local/Homebrew/Library/Homebrew/vendor/ 85 - /usr/local/Homebrew/Library/Homebrew/vendor/
90 - /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/ 86 - /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/
91 before_install: 87 before_install:
92 - rvm reset 88 - rvm reset
93 # Lua is not installed on Travis OSX 89 # Lua is not installed on macOS
94 - export LUA_PREFIX=/usr/local 90 - export LUA_PREFIX=/usr/local
95 91
96 coverage: &coverage 92 coverage: &coverage
97 # needed for https support for coveralls building cffi only works with gcc, 93 # needed for https support for coveralls building cffi only works with gcc,
98 # not with clang 94 # not with clang
99 - CC=gcc pip install --user cpp-coveralls pyopenssl ndg-httpsclient pyasn1 95 - CC=gcc pip install --user cpp-coveralls pyopenssl ndg-httpsclient pyasn1
100 - ~/.local/bin/coveralls -b "${SRCDIR}" -x .xs -e "${SRCDIR}"/if_perl.c -e "${SRCDIR}"/xxd -e "${SRCDIR}"/libvterm --encodings utf-8 96 - ~/.local/bin/coveralls -b "${SRCDIR}" -x .xs -e "${SRCDIR}"/if_perl.c -e "${SRCDIR}"/xxd -e "${SRCDIR}"/libvterm --encodings utf-8
101 - (cd "${SRCDIR}" && bash <(curl -s https://codecov.io/bash)) 97 - (cd "${SRCDIR}" && bash <(curl -s https://codecov.io/bash))
102 98
103 asan_symbolize: &asan_symbolize 99 asan_symbolize: &asan_symbolize
104 - | 100 # Update pyenv to fix the error "/opt/pyenv/libexec/pyenv: line 43: cd: asan_symbolize-6.0: Not a directory".
105 while read log; do 101 # https://github.com/pyenv/pyenv/issues/580
106 asan_symbolize < "${log}" 102 - (cd "${PYENV_ROOT}" && git fetch -p origin && git checkout "$(git rev-list --tags -n1)") &>/dev/null || true
107 done < <(find . -type f -name 'asan.*' -size +0) 103 - find . -type f -name 'asan.*' -size +0 2>/dev/null | xargs -I{} -n1 -t asan_symbolize -l{}
108 104
109 branches: 105 branches:
110 except: 106 except:
111 - /^v[0-9]/ 107 - /^v[0-9]/
112 108
203 - <<: *linux 199 - <<: *linux
204 arch: s390x 200 arch: s390x
205 name: huge/gcc-s390x 201 name: huge/gcc-s390x
206 compiler: gcc 202 compiler: gcc
207 env: *linux-huge 203 env: *linux-huge
208 addons: 204 services: []
209 apt:
210 packages:
211 - *linux-packages
212 - libtool-bin
213 - <<: *linux 205 - <<: *linux
214 name: huge+coverage/clang 206 name: huge+coverage/clang
215 compiler: clang 207 compiler: clang
216 env: *linux-huge 208 env:
209 - *linux-huge
210 # Clang cannot compile test_libvterm with "--coverage" flag.
211 - TEST=scripttests
217 after_success: *coverage 212 after_success: *coverage
218 - <<: *linux 213 - <<: *linux
219 name: huge+coverage/gcc 214 name: huge+coverage/gcc
220 compiler: gcc 215 compiler: gcc
221 env: *linux-huge 216 env: *linux-huge