annotate .travis.yml @ 17083:6641a15f999d v8.1.1541

patch 8.1.1541: check for ASAN is not reliable commit https://github.com/vim/vim/commit/bffc50494d52a3690cbbc5c7b34a835f9153184e Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 15 16:34:21 2019 +0200 patch 8.1.1541: check for ASAN is not reliable Problem: Check for ASAN is not reliable. Solution: Check the version output. (Dominique Pelle, closes https://github.com/vim/vim/issues/4543)
author Bram Moolenaar <Bram@vim.org>
date Sat, 15 Jun 2019 16:45:04 +0200
parents 051a2f640a6e
children fceb0977275a
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
17061
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
3 anchors:
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
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
6 BUILD=yes TEST=test COVERAGE=no FEATURES=tiny "CONFOPT='--disable-gui'" SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
7 - &tiny
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
8 BUILD=yes TEST=test COVERAGE=no FEATURES=tiny CONFOPT= SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
9 - &small
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
10 BUILD=yes TEST=test COVERAGE=no FEATURES=small CONFOPT= SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
11 - &normal
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
12 BUILD=yes TEST=test COVERAGE=no FEATURES=normal CONFOPT= SHADOWOPT="-C src/shadow" SRCDIR=./src/shadow CHECK_AUTOCONF=no
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
13 - &linux-huge
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
14 BUILD=yes TEST="scripttests test_libvterm" COVERAGE=yes CFLAGS=--coverage LDFLAGS=--coverage FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
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
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
17 BUILD=yes TEST=test COVERAGE=no FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no
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
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
20 BUILD=no TEST=unittests COVERAGE=yes CFLAGS=--coverage LDFLAGS=--coverage FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=yes
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"
7121
a497a9868255 commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
24
17061
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
25 linux: &linux
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
26 os: linux
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
27 dist: trusty
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
28 addons:
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
29 apt:
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
30 sources:
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
31 # Need msgfmt 0.19.8 to be able to generate .desktop files
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
32 - sourceline: 'ppa:ricotz/toolchain'
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
33 packages:
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
34 - autoconf
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
35 - clang
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
36 - lcov
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
37 - gettext
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
38 - libcanberra-dev
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
39 - libperl-dev
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
40 - python-dev
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
41 - python3-dev
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
42 - liblua5.2-dev
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
43 - lua5.2
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
44 - ruby-dev
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
45 - tcl-dev
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
46 - cscope
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
47 - libgtk2.0-dev
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
48 - desktop-file-utils
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
49 before_install:
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
50 - rvm reset
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
51 # Remove /opt/python/3.x.x/bin from $PATH for using system python3.
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
52 # ("pyenv global system" doesn't seem to work.)
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
53 - |
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
54 if [[ "$(which python3)" =~ ^/opt/python/ ]]; then
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
55 export PATH=$(py3=$(which python3); echo ${PATH//${py3%/python3}:/})
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
56 fi
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
57 - |
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
58 if [[ "${COVERAGE}" = "yes" ]]; then
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
59 pip install --user cpp-coveralls
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
60 fi
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
61 # needed for https support for coveralls
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
62 # building cffi only works with gcc, not with clang
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
63 - |
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
64 if [[ "${COVERAGE}" = "yes" ]]; then
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
65 CC=gcc pip install --user pyopenssl ndg-httpsclient pyasn1
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
66 fi
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
67 # 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
68 - |
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
69 if [[ "${CC}" = "clang" ]]; then
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
70 ln -sf "$(which llvm-cov)" /home/travis/bin/gcov
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
71 fi
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
72 before_script:
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
73 # Start virtual framebuffer to be able to test the GUI. Does not work on OS X.
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
74 - export DISPLAY=:99.0
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
75 - sh -e /etc/init.d/xvfb start && sleep 3
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
76 - sudo modprobe snd-dummy
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
77 - sudo usermod -a -G audio $USER
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
78
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
79 osx: &osx
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
80 os: osx
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
81 addons:
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
82 homebrew:
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
83 packages:
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
84 - lua
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
85 update: true
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
86 cache:
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
87 directories:
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
88 - /usr/local/Homebrew/Library/Homebrew/vendor/
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
89 - /usr/local/Homebrew/Library/Taps/
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
90 before_install:
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
91 - rvm reset
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
92 # Lua is not installed on Travis OSX
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
93 - export LUA_PREFIX=/usr/local
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
94
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
95 coverage: &coverage
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
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
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
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
100 - |
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
101 while read log; do
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
102 asan_symbolize < "${log}"
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
103 done < <(find . -type f -name 'asan.*' -size +0)
7121
a497a9868255 commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
104
a497a9868255 commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
105 sudo: false
a497a9868255 commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
106
7145
7669c1269190 commit https://github.com/vim/vim/commit/c1d20998d71f3fa0aebeeee42007a337cd7e3d8a
Christian Brabandt <cb@256bit.org>
parents: 7121
diff changeset
107 branches:
7669c1269190 commit https://github.com/vim/vim/commit/c1d20998d71f3fa0aebeeee42007a337cd7e3d8a
Christian Brabandt <cb@256bit.org>
parents: 7121
diff changeset
108 except:
7669c1269190 commit https://github.com/vim/vim/commit/c1d20998d71f3fa0aebeeee42007a337cd7e3d8a
Christian Brabandt <cb@256bit.org>
parents: 7121
diff changeset
109 - /^v[0-9]/
7669c1269190 commit https://github.com/vim/vim/commit/c1d20998d71f3fa0aebeeee42007a337cd7e3d8a
Christian Brabandt <cb@256bit.org>
parents: 7121
diff changeset
110
7121
a497a9868255 commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
111 script:
a497a9868255 commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
112 - 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
113 - set -o errexit
a1ca6778da49 patch 8.1.1317: output from Travis can be improved
Bram Moolenaar <Bram@vim.org>
parents: 16328
diff changeset
114 - 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
115 - |
bec05be6858a patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents: 15667
diff changeset
116 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
117 make -C src autoconf
bec05be6858a patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents: 15667
diff changeset
118 fi
bec05be6858a patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents: 15667
diff changeset
119 - |
bec05be6858a patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents: 15667
diff changeset
120 if [[ -n "${SHADOWOPT}" ]]; then
bec05be6858a patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents: 15667
diff changeset
121 make -C src shadow
bec05be6858a patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents: 15667
diff changeset
122 fi
16629
a1ca6778da49 patch 8.1.1317: output from Travis can be improved
Bram Moolenaar <Bram@vim.org>
parents: 16328
diff changeset
123 # "./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
124 - ./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
125 - 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
126 - 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
127 - |
16629
a1ca6778da49 patch 8.1.1317: output from Travis can be improved
Bram Moolenaar <Bram@vim.org>
parents: 16328
diff changeset
128 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
129 make ${SHADOWOPT} -j${NPROC}
bec05be6858a patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents: 15667
diff changeset
130 fi
16629
a1ca6778da49 patch 8.1.1317: output from Travis can be improved
Bram Moolenaar <Bram@vim.org>
parents: 16328
diff changeset
131 - 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
132 - set +o errexit
a1ca6778da49 patch 8.1.1317: output from Travis can be improved
Bram Moolenaar <Bram@vim.org>
parents: 16328
diff changeset
133 - echo -e "\\033[33;1mTesting Vim\\033[0m" && echo -en "travis_fold:start:test\\r\\033[0K"
15723
bec05be6858a patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents: 15667
diff changeset
134 # 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
135 - |
bec05be6858a patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents: 15667
diff changeset
136 if [[ "${BUILD}" = "yes" ]]; then
bec05be6858a patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents: 15667
diff changeset
137 "${SRCDIR}"/vim --version
bec05be6858a patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents: 15667
diff changeset
138 "${SRCDIR}"/vim --not-a-term -u NONE -S "${SRCDIR}"/testdir/if_ver-1.vim -c quit > /dev/null
bec05be6858a patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents: 15667
diff changeset
139 "${SRCDIR}"/vim --not-a-term -u NONE -S "${SRCDIR}"/testdir/if_ver-2.vim -c quit > /dev/null
bec05be6858a patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents: 15667
diff changeset
140 cat if_ver.txt
bec05be6858a patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents: 15667
diff changeset
141 fi
bec05be6858a patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents: 15667
diff changeset
142 - make ${SHADOWOPT} ${TEST}
16629
a1ca6778da49 patch 8.1.1317: output from Travis can be improved
Bram Moolenaar <Bram@vim.org>
parents: 16328
diff changeset
143 - echo -en "travis_fold:end:test\\r\\033[0K"
7121
a497a9868255 commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
144
17061
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
145 # 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
146 # 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
147 # 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
148 # linux: 2*compiler + 5*env + mac: 2*compiler + 2*env
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
149 matrix:
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
150 include:
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
151 - <<: *osx
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
152 name: tiny-nogui/clang
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
153 compiler: clang
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
154 env: *tiny-nogui
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
155 - <<: *osx
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
156 name: tiny-nogui/gcc
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
157 compiler: gcc
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
158 env: *tiny-nogui
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
159 - <<: *osx
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
160 name: huge/clang
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
161 compiler: clang
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
162 env: *osx-huge
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
163 - <<: *osx
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
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
190 env: *normal
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
191 - <<: *linux
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
192 name: normal/gcc
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
193 compiler: gcc
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
194 env: *normal
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
195 - <<: *linux
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
196 name: huge+coverage/clang
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
197 compiler: clang
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
198 env: *linux-huge
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
199 after_success: *coverage
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
200 - <<: *linux
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
201 name: huge+coverage/gcc
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
202 compiler: gcc
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
203 env: *linux-huge
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
204 after_success: *coverage
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
205 - <<: *linux
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
206 name: unittests+coverage/gcc
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
207 compiler: gcc
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
208 env: *unittests
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
209 after_success: *coverage
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
210 - <<: *linux # ASAN
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
211 name: huge+asan/gcc
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
212 compiler: gcc
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
213 env:
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
214 - *linux-huge
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
215 - *asan
051a2f640a6e patch 8.1.1530: Travis config is not optimal
Bram Moolenaar <Bram@vim.org>
parents: 17014
diff changeset
216 after_failure: *asan_symbolize
7121
a497a9868255 commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
217
a497a9868255 commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
218 # vim:set sts=2 sw=2 tw=0 et: