annotate .travis.yml @ 19882:b5f0b8ee1ec5 v8.2.0497

patch 8.2.0497: too verbose output from the asan build in Travis Commit: https://github.com/vim/vim/commit/e5bae13da327235836b505ee47224b465713ad75 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 2 15:17:32 2020 +0200 patch 8.2.0497: too verbose output from the asan build in Travis Problem: Too verbose output from the asan build in Travis. Solution: Filter out suppression messages. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/5874)
author Bram Moolenaar <Bram@vim.org>
date Thu, 02 Apr 2020 15:30:04 +0200
parents b6e641dc1de0
children a042d2a3b13d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7121
a497a9868255 commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
1 language: c
a497a9868255 commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
2
19655
7e75be5a3b74 patch 8.2.0384: Travis CI has warnings
Bram Moolenaar <Bram@vim.org>
parents: 19641
diff changeset
3 _anchors:
17061
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
4 envs:
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
5 - &tiny-nogui
19722
c94c103e7cb4 patch 8.2.0417: Travis CI config can be improved
Bram Moolenaar <Bram@vim.org>
parents: 19669
diff changeset
6 BUILD=yes TEST=test FEATURES=tiny "CONFOPT='--disable-gui'" SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
17061
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
7 - &tiny
19722
c94c103e7cb4 patch 8.2.0417: Travis CI config can be improved
Bram Moolenaar <Bram@vim.org>
parents: 19669
diff changeset
8 BUILD=yes TEST=test FEATURES=tiny CONFOPT= SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
17061
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
9 - &small
19722
c94c103e7cb4 patch 8.2.0417: Travis CI config can be improved
Bram Moolenaar <Bram@vim.org>
parents: 19669
diff changeset
10 BUILD=yes TEST=test FEATURES=small CONFOPT= SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
17061
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
11 - &normal
19722
c94c103e7cb4 patch 8.2.0417: Travis CI config can be improved
Bram Moolenaar <Bram@vim.org>
parents: 19669
diff changeset
12 BUILD=yes TEST=test FEATURES=normal CONFOPT= SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
17061
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
13 - &linux-huge
19722
c94c103e7cb4 patch 8.2.0417: Travis CI config can be improved
Bram Moolenaar <Bram@vim.org>
parents: 19669
diff changeset
14 BUILD=yes TEST="scripttests test_libvterm" CFLAGS=--coverage LDFLAGS=--coverage FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
17061
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
15 "CONFOPT='--enable-perlinterp --enable-pythoninterp --enable-python3interp --enable-rubyinterp --enable-luainterp --enable-tclinterp'"
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
16 - &osx-huge # macOS build
19722
c94c103e7cb4 patch 8.2.0417: Travis CI config can be improved
Bram Moolenaar <Bram@vim.org>
parents: 19669
diff changeset
17 BUILD=yes TEST=test FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
17061
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
18 "CONFOPT='--enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-luainterp --enable-tclinterp'"
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
19 - &unittests
19722
c94c103e7cb4 patch 8.2.0417: Travis CI config can be improved
Bram Moolenaar <Bram@vim.org>
parents: 19669
diff changeset
20 BUILD=no TEST=unittests CFLAGS=--coverage LDFLAGS=--coverage FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=yes
17061
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
21 - &asan # ASAN build
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
22 SANITIZER_CFLAGS="-g -O1 -DABORT_ON_INTERNAL_ERROR -DEXITFREE -fsanitize=address -fno-omit-frame-pointer"
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
23 ASAN_OPTIONS="print_stacktrace=1 log_path=asan" LSAN_OPTIONS="suppressions=$TRAVIS_BUILD_DIR/src/testdir/lsan-suppress.txt"
19161
27ff44268da5 patch 8.2.0140: CI does not test building doc tags
Bram Moolenaar <Bram@vim.org>
parents: 18487
diff changeset
24 - &shadowopt
27ff44268da5 patch 8.2.0140: CI does not test building doc tags
Bram Moolenaar <Bram@vim.org>
parents: 18487
diff changeset
25 SHADOWOPT="-C src/shadow" SRCDIR=./src/shadow
7121
a497a9868255 commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
26
17061
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
27 linux: &linux
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
28 os: linux
19850
b6e641dc1de0 patch 8.2.0481: Travis is still using trusty
Bram Moolenaar <Bram@vim.org>
parents: 19722
diff changeset
29 dist: bionic
17061
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
30 addons:
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
31 apt:
19850
b6e641dc1de0 patch 8.2.0481: Travis is still using trusty
Bram Moolenaar <Bram@vim.org>
parents: 19722
diff changeset
32 packages:
17061
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
33 - autoconf
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
34 - clang
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
35 - lcov
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
36 - gettext
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
37 - libcanberra-dev
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
38 - libperl-dev
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
39 - python-dev
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
40 - python3-dev
19850
b6e641dc1de0 patch 8.2.0481: Travis is still using trusty
Bram Moolenaar <Bram@vim.org>
parents: 19722
diff changeset
41 - liblua5.3-dev
b6e641dc1de0 patch 8.2.0481: Travis is still using trusty
Bram Moolenaar <Bram@vim.org>
parents: 19722
diff changeset
42 - lua5.3
17061
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
43 - ruby-dev
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
44 - tcl-dev
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
45 - cscope
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
46 - libgtk2.0-dev
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
47 - desktop-file-utils
19850
b6e641dc1de0 patch 8.2.0481: Travis is still using trusty
Bram Moolenaar <Bram@vim.org>
parents: 19722
diff changeset
48 - libtool-bin
b6e641dc1de0 patch 8.2.0481: Travis is still using trusty
Bram Moolenaar <Bram@vim.org>
parents: 19722
diff changeset
49 services:
b6e641dc1de0 patch 8.2.0481: Travis is still using trusty
Bram Moolenaar <Bram@vim.org>
parents: 19722
diff changeset
50 - xvfb
17061
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
51 before_install:
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
52 - rvm reset
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
53 # Use llvm-cov instead of gcov when compiler is clang.
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
54 - |
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
55 if [[ "${CC}" = "clang" ]]; then
19850
b6e641dc1de0 patch 8.2.0481: Travis is still using trusty
Bram Moolenaar <Bram@vim.org>
parents: 19722
diff changeset
56 ln -sf "$(command -v llvm-cov)" /home/travis/bin/gcov
b6e641dc1de0 patch 8.2.0481: Travis is still using trusty
Bram Moolenaar <Bram@vim.org>
parents: 19722
diff changeset
57 fi
b6e641dc1de0 patch 8.2.0481: Travis is still using trusty
Bram Moolenaar <Bram@vim.org>
parents: 19722
diff changeset
58 # Setup lua5.3 manually since its package doesn't provide alternative.
b6e641dc1de0 patch 8.2.0481: Travis is still using trusty
Bram Moolenaar <Bram@vim.org>
parents: 19722
diff changeset
59 # https://bugs.launchpad.net/ubuntu/+source/lua5.3/+bug/1707212
b6e641dc1de0 patch 8.2.0481: Travis is still using trusty
Bram Moolenaar <Bram@vim.org>
parents: 19722
diff changeset
60 - |
b6e641dc1de0 patch 8.2.0481: Travis is still using trusty
Bram Moolenaar <Bram@vim.org>
parents: 19722
diff changeset
61 if [[ "${CONFOPT}" =~ luainterp ]]; then
b6e641dc1de0 patch 8.2.0481: Travis is still using trusty
Bram Moolenaar <Bram@vim.org>
parents: 19722
diff changeset
62 sudo update-alternatives --install /usr/bin/lua lua /usr/bin/lua5.3 10
17061
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
63 fi
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
64 before_script:
19850
b6e641dc1de0 patch 8.2.0481: Travis is still using trusty
Bram Moolenaar <Bram@vim.org>
parents: 19722
diff changeset
65 # On travis bionic-amd64 gethostbyname() resolves "localhost" to 127.0.1.1
b6e641dc1de0 patch 8.2.0481: Travis is still using trusty
Bram Moolenaar <Bram@vim.org>
parents: 19722
diff changeset
66 # so that makes various channel tests fail.
b6e641dc1de0 patch 8.2.0481: Travis is still using trusty
Bram Moolenaar <Bram@vim.org>
parents: 19722
diff changeset
67 - sudo sed -i '/^127\.0\.1\.1\s/s/\blocalhost\b//g' /etc/hosts
19722
c94c103e7cb4 patch 8.2.0417: Travis CI config can be improved
Bram Moolenaar <Bram@vim.org>
parents: 19669
diff changeset
68 - sudo bash ci/load-snd-dummy.sh || true
17061
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
69 - sudo usermod -a -G audio $USER
17290
5d09e015a367 patch 8.1.1644: sound test does not work on Travis
Bram Moolenaar <Bram@vim.org>
parents: 17239
diff changeset
70 - do_test() { sg audio "sg $(id -gn) '$*'"; }
17061
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
71
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
72 osx: &osx
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
73 os: osx
19655
7e75be5a3b74 patch 8.2.0384: Travis CI has warnings
Bram Moolenaar <Bram@vim.org>
parents: 19641
diff changeset
74 before_script:
7e75be5a3b74 patch 8.2.0384: Travis CI has warnings
Bram Moolenaar <Bram@vim.org>
parents: 19641
diff changeset
75 - do_test() { "$@"; }
7e75be5a3b74 patch 8.2.0384: Travis CI has warnings
Bram Moolenaar <Bram@vim.org>
parents: 19641
diff changeset
76
7e75be5a3b74 patch 8.2.0384: Travis CI has warnings
Bram Moolenaar <Bram@vim.org>
parents: 19641
diff changeset
77 homebrew: &osx-homebrew
17061
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
78 addons:
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
79 homebrew:
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
80 packages:
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
81 - lua
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
82 update: true
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
83 cache:
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
84 directories:
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
85 - /usr/local/Homebrew/Library/Homebrew/vendor/
19655
7e75be5a3b74 patch 8.2.0384: Travis CI has warnings
Bram Moolenaar <Bram@vim.org>
parents: 19641
diff changeset
86 - /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/
17061
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
87 before_install:
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
88 - rvm reset
19850
b6e641dc1de0 patch 8.2.0481: Travis is still using trusty
Bram Moolenaar <Bram@vim.org>
parents: 19722
diff changeset
89 # Lua is not installed on macOS
17061
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
90 - export LUA_PREFIX=/usr/local
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
91
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
92 coverage: &coverage
19722
c94c103e7cb4 patch 8.2.0417: Travis CI config can be improved
Bram Moolenaar <Bram@vim.org>
parents: 19669
diff changeset
93 # needed for https support for coveralls building cffi only works with gcc,
c94c103e7cb4 patch 8.2.0417: Travis CI config can be improved
Bram Moolenaar <Bram@vim.org>
parents: 19669
diff changeset
94 # not with clang
c94c103e7cb4 patch 8.2.0417: Travis CI config can be improved
Bram Moolenaar <Bram@vim.org>
parents: 19669
diff changeset
95 - CC=gcc pip install --user cpp-coveralls pyopenssl ndg-httpsclient pyasn1
17853
c90ca5b9fc0d patch 8.1.1923: some source files are not in a normal encoding
Bram Moolenaar <Bram@vim.org>
parents: 17665
diff changeset
96 - ~/.local/bin/coveralls -b "${SRCDIR}" -x .xs -e "${SRCDIR}"/if_perl.c -e "${SRCDIR}"/xxd -e "${SRCDIR}"/libvterm --encodings utf-8
17061
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
97 - (cd "${SRCDIR}" && bash <(curl -s https://codecov.io/bash))
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
98
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
99 asan_symbolize: &asan_symbolize
19850
b6e641dc1de0 patch 8.2.0481: Travis is still using trusty
Bram Moolenaar <Bram@vim.org>
parents: 19722
diff changeset
100 # Update pyenv to fix the error "/opt/pyenv/libexec/pyenv: line 43: cd: asan_symbolize-6.0: Not a directory".
b6e641dc1de0 patch 8.2.0481: Travis is still using trusty
Bram Moolenaar <Bram@vim.org>
parents: 19722
diff changeset
101 # https://github.com/pyenv/pyenv/issues/580
b6e641dc1de0 patch 8.2.0481: Travis is still using trusty
Bram Moolenaar <Bram@vim.org>
parents: 19722
diff changeset
102 - (cd "${PYENV_ROOT}" && git fetch -p origin && git checkout "$(git rev-list --tags -n1)") &>/dev/null || true
19882
b5f0b8ee1ec5 patch 8.2.0497: too verbose output from the asan build in Travis
Bram Moolenaar <Bram@vim.org>
parents: 19850
diff changeset
103 - find . -type f -name 'asan.*' -size +0 2>/dev/null | xargs grep -l '^==[[:digit:]]*==ERROR:' | xargs -I{} -n1 -t asan_symbolize -l{}
7121
a497a9868255 commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
104
7145
7669c1269190 commit https://github.com/vim/vim/commit/c1d20998d71f3fa0aebeeee42007a337cd7e3d8a
Christian Brabandt <cb@256bit.org>
parents: 7121
diff changeset
105 branches:
7669c1269190 commit https://github.com/vim/vim/commit/c1d20998d71f3fa0aebeeee42007a337cd7e3d8a
Christian Brabandt <cb@256bit.org>
parents: 7121
diff changeset
106 except:
7669c1269190 commit https://github.com/vim/vim/commit/c1d20998d71f3fa0aebeeee42007a337cd7e3d8a
Christian Brabandt <cb@256bit.org>
parents: 7121
diff changeset
107 - /^v[0-9]/
7669c1269190 commit https://github.com/vim/vim/commit/c1d20998d71f3fa0aebeeee42007a337cd7e3d8a
Christian Brabandt <cb@256bit.org>
parents: 7121
diff changeset
108
7121
a497a9868255 commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
109 script:
a497a9868255 commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
110 - NPROC=$(getconf _NPROCESSORS_ONLN)
16629
a1ca6778da49 patch 8.1.1317: output from Travis can be improved
Bram Moolenaar <Bram@vim.org>
parents: 16328
diff changeset
111 - set -o errexit
a1ca6778da49 patch 8.1.1317: output from Travis can be improved
Bram Moolenaar <Bram@vim.org>
parents: 16328
diff changeset
112 - echo -e "\\033[33;1mConfiguring Vim\\033[0m" && echo -en "travis_fold:start:configure\\r\\033[0K"
15723
bec05be6858a patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents: 15667
diff changeset
113 - |
bec05be6858a patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents: 15667
diff changeset
114 if [[ "${CHECK_AUTOCONF}" = "yes" ]] && [[ "${CC}" = "gcc" ]]; then
bec05be6858a patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents: 15667
diff changeset
115 make -C src autoconf
bec05be6858a patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents: 15667
diff changeset
116 fi
bec05be6858a patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents: 15667
diff changeset
117 - |
bec05be6858a patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents: 15667
diff changeset
118 if [[ -n "${SHADOWOPT}" ]]; then
bec05be6858a patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents: 15667
diff changeset
119 make -C src shadow
bec05be6858a patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents: 15667
diff changeset
120 fi
16629
a1ca6778da49 patch 8.1.1317: output from Travis can be improved
Bram Moolenaar <Bram@vim.org>
parents: 16328
diff changeset
121 # "./configure" changes its working directory into "$SRCDIR".
a1ca6778da49 patch 8.1.1317: output from Travis can be improved
Bram Moolenaar <Bram@vim.org>
parents: 16328
diff changeset
122 - ./configure --with-features=${FEATURES} ${CONFOPT} --enable-fail-if-missing
a1ca6778da49 patch 8.1.1317: output from Travis can be improved
Bram Moolenaar <Bram@vim.org>
parents: 16328
diff changeset
123 - echo -en "travis_fold:end:configure\\r\\033[0K"
a1ca6778da49 patch 8.1.1317: output from Travis can be improved
Bram Moolenaar <Bram@vim.org>
parents: 16328
diff changeset
124 - echo -e "\\033[33;1mBuilding Vim\\033[0m" && echo -en "travis_fold:start:build\\r\\033[0K"
15723
bec05be6858a patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents: 15667
diff changeset
125 - |
16629
a1ca6778da49 patch 8.1.1317: output from Travis can be improved
Bram Moolenaar <Bram@vim.org>
parents: 16328
diff changeset
126 if [[ "${BUILD}" = "yes" ]]; then
15723
bec05be6858a patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents: 15667
diff changeset
127 make ${SHADOWOPT} -j${NPROC}
bec05be6858a patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents: 15667
diff changeset
128 fi
16629
a1ca6778da49 patch 8.1.1317: output from Travis can be improved
Bram Moolenaar <Bram@vim.org>
parents: 16328
diff changeset
129 - echo -en "travis_fold:end:build\\r\\033[0K"
a1ca6778da49 patch 8.1.1317: output from Travis can be improved
Bram Moolenaar <Bram@vim.org>
parents: 16328
diff changeset
130 - set +o errexit
15723
bec05be6858a patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents: 15667
diff changeset
131 # Show Vim version and also if_xx versions.
bec05be6858a patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents: 15667
diff changeset
132 - |
bec05be6858a patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents: 15667
diff changeset
133 if [[ "${BUILD}" = "yes" ]]; then
bec05be6858a patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents: 15667
diff changeset
134 "${SRCDIR}"/vim --version
19722
c94c103e7cb4 patch 8.2.0417: Travis CI config can be improved
Bram Moolenaar <Bram@vim.org>
parents: 19669
diff changeset
135 "${SRCDIR}"/vim -u NONE -i NONE --not-a-term -esNX -V1 -S ci/if_ver-1.vim -c quit
c94c103e7cb4 patch 8.2.0417: Travis CI config can be improved
Bram Moolenaar <Bram@vim.org>
parents: 19669
diff changeset
136 "${SRCDIR}"/vim -u NONE -i NONE --not-a-term -esNX -V1 -S ci/if_ver-2.vim -c quit
15723
bec05be6858a patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents: 15667
diff changeset
137 fi
19161
27ff44268da5 patch 8.2.0140: CI does not test building doc tags
Bram Moolenaar <Bram@vim.org>
parents: 18487
diff changeset
138 - echo -e "\\033[33;1mTesting Vim\\033[0m" && echo -en "travis_fold:start:test\\r\\033[0K"
27ff44268da5 patch 8.2.0140: CI does not test building doc tags
Bram Moolenaar <Bram@vim.org>
parents: 18487
diff changeset
139 - do_test make ${SHADOWOPT} ${TEST} && FOLD_MARKER=travis_fold
17960
3504cf2c80a8 patch 8.1.1976: Travis log always shows test output
Bram Moolenaar <Bram@vim.org>
parents: 17853
diff changeset
140 - echo -en "${FOLD_MARKER}:end:test\\r\\033[0K"
17340
ce962e2644bf patch 8.1.1669: Travis: test results section is closed even when failed
Bram Moolenaar <Bram@vim.org>
parents: 17290
diff changeset
141
7121
a497a9868255 commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
142
17061
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
143 # instead of a 2*2*8 matrix (2*os + 2*compiler + 8*env),
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
144 # exclude some builds on mac os x and linux
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
145 # on mac os x "tiny" is always without GUI
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
146 # linux: 2*compiler + 5*env + mac: 2*compiler + 2*env
19655
7e75be5a3b74 patch 8.2.0384: Travis CI has warnings
Bram Moolenaar <Bram@vim.org>
parents: 19641
diff changeset
147 jobs:
17061
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
148 include:
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
149 - <<: *osx
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
150 name: tiny-nogui/clang
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
151 compiler: clang
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
152 env: *tiny-nogui
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
153 - <<: *osx
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
154 name: tiny-nogui/gcc
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
155 compiler: gcc
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
156 env: *tiny-nogui
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
157 - <<: *osx
19655
7e75be5a3b74 patch 8.2.0384: Travis CI has warnings
Bram Moolenaar <Bram@vim.org>
parents: 19641
diff changeset
158 <<: *osx-homebrew
17061
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
159 name: huge/clang
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
160 compiler: clang
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
161 env: *osx-huge
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
162 - <<: *osx
19655
7e75be5a3b74 patch 8.2.0384: Travis CI has warnings
Bram Moolenaar <Bram@vim.org>
parents: 19641
diff changeset
163 <<: *osx-homebrew
17061
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
164 name: huge/gcc
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
165 compiler: gcc
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
166 env: *osx-huge
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
167 - <<: *linux
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
168 name: tiny-nogui/clang
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
169 compiler: clang
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
170 env: *tiny-nogui
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
171 - <<: *linux
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
172 name: tiny-nogui/gcc
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
173 compiler: gcc
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
174 env: *tiny-nogui
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
175 - <<: *linux
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
176 name: tiny/clang
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
177 compiler: clang
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
178 env: *tiny
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
179 - <<: *linux
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
180 name: tiny/gcc
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
181 compiler: gcc
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
182 env: *tiny
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
183 - <<: *linux
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
184 name: small/gcc
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
185 compiler: gcc
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
186 env: *small
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
187 - <<: *linux
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
188 name: normal/clang
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
189 compiler: clang
19161
27ff44268da5 patch 8.2.0140: CI does not test building doc tags
Bram Moolenaar <Bram@vim.org>
parents: 18487
diff changeset
190 env:
27ff44268da5 patch 8.2.0140: CI does not test building doc tags
Bram Moolenaar <Bram@vim.org>
parents: 18487
diff changeset
191 - *normal
27ff44268da5 patch 8.2.0140: CI does not test building doc tags
Bram Moolenaar <Bram@vim.org>
parents: 18487
diff changeset
192 - *shadowopt
17061
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
193 - <<: *linux
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
194 name: normal/gcc
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
195 compiler: gcc
19161
27ff44268da5 patch 8.2.0140: CI does not test building doc tags
Bram Moolenaar <Bram@vim.org>
parents: 18487
diff changeset
196 env:
27ff44268da5 patch 8.2.0140: CI does not test building doc tags
Bram Moolenaar <Bram@vim.org>
parents: 18487
diff changeset
197 - *normal
27ff44268da5 patch 8.2.0140: CI does not test building doc tags
Bram Moolenaar <Bram@vim.org>
parents: 18487
diff changeset
198 - *shadowopt
17061
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
199 - <<: *linux
19641
73b2c928a8aa patch 8.2.0377: no CI test for a big-endian system
Bram Moolenaar <Bram@vim.org>
parents: 19189
diff changeset
200 arch: s390x
73b2c928a8aa patch 8.2.0377: no CI test for a big-endian system
Bram Moolenaar <Bram@vim.org>
parents: 19189
diff changeset
201 name: huge/gcc-s390x
73b2c928a8aa patch 8.2.0377: no CI test for a big-endian system
Bram Moolenaar <Bram@vim.org>
parents: 19189
diff changeset
202 compiler: gcc
19722
c94c103e7cb4 patch 8.2.0417: Travis CI config can be improved
Bram Moolenaar <Bram@vim.org>
parents: 19669
diff changeset
203 env: *linux-huge
19850
b6e641dc1de0 patch 8.2.0481: Travis is still using trusty
Bram Moolenaar <Bram@vim.org>
parents: 19722
diff changeset
204 services: []
19641
73b2c928a8aa patch 8.2.0377: no CI test for a big-endian system
Bram Moolenaar <Bram@vim.org>
parents: 19189
diff changeset
205 - <<: *linux
17061
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
206 name: huge+coverage/clang
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
207 compiler: clang
19850
b6e641dc1de0 patch 8.2.0481: Travis is still using trusty
Bram Moolenaar <Bram@vim.org>
parents: 19722
diff changeset
208 env:
b6e641dc1de0 patch 8.2.0481: Travis is still using trusty
Bram Moolenaar <Bram@vim.org>
parents: 19722
diff changeset
209 - *linux-huge
b6e641dc1de0 patch 8.2.0481: Travis is still using trusty
Bram Moolenaar <Bram@vim.org>
parents: 19722
diff changeset
210 # Clang cannot compile test_libvterm with "--coverage" flag.
b6e641dc1de0 patch 8.2.0481: Travis is still using trusty
Bram Moolenaar <Bram@vim.org>
parents: 19722
diff changeset
211 - TEST=scripttests
17061
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
212 after_success: *coverage
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
213 - <<: *linux
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
214 name: huge+coverage/gcc
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
215 compiler: gcc
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
216 env: *linux-huge
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
217 after_success: *coverage
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
218 - <<: *linux
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
219 name: unittests+coverage/gcc
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
220 compiler: gcc
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
221 env: *unittests
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
222 after_success: *coverage
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
223 - <<: *linux # ASAN
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
224 name: huge+asan/gcc
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
225 compiler: gcc
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
226 env:
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
227 - *linux-huge
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
228 - *asan
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
229 after_failure: *asan_symbolize
17239
fceb0977275a patch 8.1.1619: tests are not run with GUI on Travis
Bram Moolenaar <Bram@vim.org>
parents: 17061
diff changeset
230 - <<: *linux
fceb0977275a patch 8.1.1619: tests are not run with GUI on Travis
Bram Moolenaar <Bram@vim.org>
parents: 17061
diff changeset
231 name: huge-testgui+coverage/gcc
fceb0977275a patch 8.1.1619: tests are not run with GUI on Travis
Bram Moolenaar <Bram@vim.org>
parents: 17061
diff changeset
232 compiler: gcc
fceb0977275a patch 8.1.1619: tests are not run with GUI on Travis
Bram Moolenaar <Bram@vim.org>
parents: 17061
diff changeset
233 env:
fceb0977275a patch 8.1.1619: tests are not run with GUI on Travis
Bram Moolenaar <Bram@vim.org>
parents: 17061
diff changeset
234 - *linux-huge
fceb0977275a patch 8.1.1619: tests are not run with GUI on Travis
Bram Moolenaar <Bram@vim.org>
parents: 17061
diff changeset
235 - TEST="-C src testgui"
fceb0977275a patch 8.1.1619: tests are not run with GUI on Travis
Bram Moolenaar <Bram@vim.org>
parents: 17061
diff changeset
236 after_success: *coverage
19161
27ff44268da5 patch 8.2.0140: CI does not test building doc tags
Bram Moolenaar <Bram@vim.org>
parents: 18487
diff changeset
237 - <<: *linux
27ff44268da5 patch 8.2.0140: CI does not test building doc tags
Bram Moolenaar <Bram@vim.org>
parents: 18487
diff changeset
238 name: vimtags/gcc
27ff44268da5 patch 8.2.0140: CI does not test building doc tags
Bram Moolenaar <Bram@vim.org>
parents: 18487
diff changeset
239 compiler: gcc
27ff44268da5 patch 8.2.0140: CI does not test building doc tags
Bram Moolenaar <Bram@vim.org>
parents: 18487
diff changeset
240 env:
27ff44268da5 patch 8.2.0140: CI does not test building doc tags
Bram Moolenaar <Bram@vim.org>
parents: 18487
diff changeset
241 - *normal
27ff44268da5 patch 8.2.0140: CI does not test building doc tags
Bram Moolenaar <Bram@vim.org>
parents: 18487
diff changeset
242 - TEST="-C runtime/doc vimtags VIMEXE=../../${SRCDIR}/vim"
7121
a497a9868255 commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
243
a497a9868255 commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
244 # vim:set sts=2 sw=2 tw=0 et: