Mercurial > vim
annotate .travis.yml @ 16962:70da6e496fc1
Added tag v8.1.1481 for changeset 43c942a1938c595b41c25168c95e115e37bdc4f1
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 06 Jun 2019 15:30:07 +0200 |
parents | 437f869466bc |
children | 353ed7ef78df |
rev | line source |
---|---|
7121
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
1 language: c |
11999
94e37fd22556
patch 8.0.0880: Travis uses an old Ubuntu version
Christian Brabandt <cb@256bit.org>
parents:
11832
diff
changeset
|
2 dist: trusty |
7121
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
3 |
9700
15ade5d67a0e
commit https://github.com/vim/vim/commit/b20617b0b0d15523961618717d6cd2195674c363
Christian Brabandt <cb@256bit.org>
parents:
9554
diff
changeset
|
4 os: |
15ade5d67a0e
commit https://github.com/vim/vim/commit/b20617b0b0d15523961618717d6cd2195674c363
Christian Brabandt <cb@256bit.org>
parents:
9554
diff
changeset
|
5 - osx |
15ade5d67a0e
commit https://github.com/vim/vim/commit/b20617b0b0d15523961618717d6cd2195674c363
Christian Brabandt <cb@256bit.org>
parents:
9554
diff
changeset
|
6 - linux |
15ade5d67a0e
commit https://github.com/vim/vim/commit/b20617b0b0d15523961618717d6cd2195674c363
Christian Brabandt <cb@256bit.org>
parents:
9554
diff
changeset
|
7 |
7121
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
8 compiler: |
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
9 - clang |
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
10 - gcc |
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
11 |
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
12 env: |
15723
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
13 - &tiny-nogui |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
14 BUILD=yes TEST=test COVERAGE=no FEATURES=tiny "CONFOPT='--disable-gui'" SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
15 - &tiny |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
16 BUILD=yes TEST=test COVERAGE=no FEATURES=tiny CONFOPT= SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
17 - &asan # ASAN build |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
18 BUILD=yes TEST=test SANITIZER_CFLAGS="-g -O1 -DABORT_ON_INTERNAL_ERROR -DEXITFREE -fsanitize=address -fno-omit-frame-pointer" |
14671
09b803bdd7ab
patch 8.1.0348: on Travis the slowest build is run last
Christian Brabandt <cb@256bit.org>
parents:
14241
diff
changeset
|
19 FEATURES=huge SRCDIR=./src CHECK_AUTOCONF=no ASAN_OPTIONS="print_stacktrace=1 log_path=asan" LSAN_OPTIONS="suppressions=$TRAVIS_BUILD_DIR/src/testdir/lsan-suppress.txt" |
09b803bdd7ab
patch 8.1.0348: on Travis the slowest build is run last
Christian Brabandt <cb@256bit.org>
parents:
14241
diff
changeset
|
20 "CONFOPT='--enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-luainterp --enable-tclinterp'" |
15723
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
21 - &linux-huge |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
22 BUILD=yes TEST="scripttests test_libvterm" COVERAGE=yes CFLAGS=--coverage LDFLAGS=--coverage FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no |
14241
9abebf6e25c5
patch 8.1.0137: CI does not run with TCL
Christian Brabandt <cb@256bit.org>
parents:
13656
diff
changeset
|
23 "CONFOPT='--enable-perlinterp --enable-pythoninterp --enable-python3interp --enable-rubyinterp --enable-luainterp --enable-tclinterp'" |
15723
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
24 - &unittests |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
25 BUILD=no TEST=unittests COVERAGE=yes CFLAGS=--coverage LDFLAGS=--coverage FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=yes |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
26 - &normal |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
27 BUILD=yes TEST=test COVERAGE=no FEATURES=normal CONFOPT= SHADOWOPT="-C src/shadow" SRCDIR=./src/shadow CHECK_AUTOCONF=no |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
28 - &small |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
29 BUILD=yes TEST=test COVERAGE=no FEATURES=small CONFOPT= SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
30 - &osx-huge # Mac OSX build |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
31 BUILD=yes TEST=test COVERAGE=no FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no |
14241
9abebf6e25c5
patch 8.1.0137: CI does not run with TCL
Christian Brabandt <cb@256bit.org>
parents:
13656
diff
changeset
|
32 "CONFOPT='--enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-luainterp --enable-tclinterp'" |
7121
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
33 |
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
34 sudo: false |
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
35 |
15723
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
36 # instead of a 2*2*8 matrix (2*os + 2*compiler + 8*env), |
9700
15ade5d67a0e
commit https://github.com/vim/vim/commit/b20617b0b0d15523961618717d6cd2195674c363
Christian Brabandt <cb@256bit.org>
parents:
9554
diff
changeset
|
37 # exclude some builds on mac os x and linux |
15537
d255018b40ff
patch 8.1.0776: Travis does not build a version without GUI on Linux
Bram Moolenaar <Bram@vim.org>
parents:
15197
diff
changeset
|
38 # on mac os x "tiny" is always without GUI |
9700
15ade5d67a0e
commit https://github.com/vim/vim/commit/b20617b0b0d15523961618717d6cd2195674c363
Christian Brabandt <cb@256bit.org>
parents:
9554
diff
changeset
|
39 # linux: 2*compiler + 5*env + mac: 2*compiler + 2*env |
15ade5d67a0e
commit https://github.com/vim/vim/commit/b20617b0b0d15523961618717d6cd2195674c363
Christian Brabandt <cb@256bit.org>
parents:
9554
diff
changeset
|
40 matrix: |
15ade5d67a0e
commit https://github.com/vim/vim/commit/b20617b0b0d15523961618717d6cd2195674c363
Christian Brabandt <cb@256bit.org>
parents:
9554
diff
changeset
|
41 exclude: |
15ade5d67a0e
commit https://github.com/vim/vim/commit/b20617b0b0d15523961618717d6cd2195674c363
Christian Brabandt <cb@256bit.org>
parents:
9554
diff
changeset
|
42 - os: osx |
15723
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
43 env: *tiny |
15537
d255018b40ff
patch 8.1.0776: Travis does not build a version without GUI on Linux
Bram Moolenaar <Bram@vim.org>
parents:
15197
diff
changeset
|
44 - os: osx |
15723
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
45 env: *normal |
9700
15ade5d67a0e
commit https://github.com/vim/vim/commit/b20617b0b0d15523961618717d6cd2195674c363
Christian Brabandt <cb@256bit.org>
parents:
9554
diff
changeset
|
46 - os: osx |
15723
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
47 env: *unittests |
9700
15ade5d67a0e
commit https://github.com/vim/vim/commit/b20617b0b0d15523961618717d6cd2195674c363
Christian Brabandt <cb@256bit.org>
parents:
9554
diff
changeset
|
48 - os: osx |
15723
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
49 env: *small |
9700
15ade5d67a0e
commit https://github.com/vim/vim/commit/b20617b0b0d15523961618717d6cd2195674c363
Christian Brabandt <cb@256bit.org>
parents:
9554
diff
changeset
|
50 - os: osx |
15723
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
51 env: *linux-huge |
10698
a028413f6a26
patch 8.0.0239: no CI with an address sanitizer
Christian Brabandt <cb@256bit.org>
parents:
10509
diff
changeset
|
52 - os: osx |
15723
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
53 env: *asan |
10698
a028413f6a26
patch 8.0.0239: no CI with an address sanitizer
Christian Brabandt <cb@256bit.org>
parents:
10509
diff
changeset
|
54 - os: linux |
11999
94e37fd22556
patch 8.0.0880: Travis uses an old Ubuntu version
Christian Brabandt <cb@256bit.org>
parents:
11832
diff
changeset
|
55 compiler: clang |
15723
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
56 env: *asan |
9700
15ade5d67a0e
commit https://github.com/vim/vim/commit/b20617b0b0d15523961618717d6cd2195674c363
Christian Brabandt <cb@256bit.org>
parents:
9554
diff
changeset
|
57 - os: linux |
15ade5d67a0e
commit https://github.com/vim/vim/commit/b20617b0b0d15523961618717d6cd2195674c363
Christian Brabandt <cb@256bit.org>
parents:
9554
diff
changeset
|
58 compiler: clang |
15723
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
59 env: *unittests |
9700
15ade5d67a0e
commit https://github.com/vim/vim/commit/b20617b0b0d15523961618717d6cd2195674c363
Christian Brabandt <cb@256bit.org>
parents:
9554
diff
changeset
|
60 - os: linux |
15ade5d67a0e
commit https://github.com/vim/vim/commit/b20617b0b0d15523961618717d6cd2195674c363
Christian Brabandt <cb@256bit.org>
parents:
9554
diff
changeset
|
61 compiler: clang |
15723
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
62 env: *small |
9700
15ade5d67a0e
commit https://github.com/vim/vim/commit/b20617b0b0d15523961618717d6cd2195674c363
Christian Brabandt <cb@256bit.org>
parents:
9554
diff
changeset
|
63 - os: linux |
15723
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
64 env: *osx-huge |
9700
15ade5d67a0e
commit https://github.com/vim/vim/commit/b20617b0b0d15523961618717d6cd2195674c363
Christian Brabandt <cb@256bit.org>
parents:
9554
diff
changeset
|
65 |
7145
7669c1269190
commit https://github.com/vim/vim/commit/c1d20998d71f3fa0aebeeee42007a337cd7e3d8a
Christian Brabandt <cb@256bit.org>
parents:
7121
diff
changeset
|
66 branches: |
7669c1269190
commit https://github.com/vim/vim/commit/c1d20998d71f3fa0aebeeee42007a337cd7e3d8a
Christian Brabandt <cb@256bit.org>
parents:
7121
diff
changeset
|
67 except: |
7669c1269190
commit https://github.com/vim/vim/commit/c1d20998d71f3fa0aebeeee42007a337cd7e3d8a
Christian Brabandt <cb@256bit.org>
parents:
7121
diff
changeset
|
68 - /^v[0-9]/ |
7669c1269190
commit https://github.com/vim/vim/commit/c1d20998d71f3fa0aebeeee42007a337cd7e3d8a
Christian Brabandt <cb@256bit.org>
parents:
7121
diff
changeset
|
69 |
7121
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
70 addons: |
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
71 apt: |
16299
5b592d4eb23a
patch 8.1.1154: getting a newer msgfmt on Travis is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
16291
diff
changeset
|
72 sources: |
5b592d4eb23a
patch 8.1.1154: getting a newer msgfmt on Travis is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
16291
diff
changeset
|
73 # Need msgfmt 0.19.8 to be able to generate .desktop files |
5b592d4eb23a
patch 8.1.1154: getting a newer msgfmt on Travis is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
16291
diff
changeset
|
74 - sourceline: 'ppa:ricotz/toolchain' |
7121
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
75 packages: |
7397
7ec544daecd5
commit https://github.com/vim/vim/commit/7b5f0a15bce11754c47f849b2ddd68ba0909afac
Christian Brabandt <cb@256bit.org>
parents:
7385
diff
changeset
|
76 - autoconf |
12859
2893e4f08feb
patch 8.0.1306: ASAN error stack trace is not useful
Christian Brabandt <cb@256bit.org>
parents:
12618
diff
changeset
|
77 - clang |
7121
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
78 - lcov |
16299
5b592d4eb23a
patch 8.1.1154: getting a newer msgfmt on Travis is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
16291
diff
changeset
|
79 - gettext |
7121
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
80 - libperl-dev |
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
81 - python-dev |
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
82 - python3-dev |
11796
6b172a0a8207
patch 8.0.0780: build failure on Travis
Christian Brabandt <cb@256bit.org>
parents:
11244
diff
changeset
|
83 - liblua5.2-dev |
6b172a0a8207
patch 8.0.0780: build failure on Travis
Christian Brabandt <cb@256bit.org>
parents:
11244
diff
changeset
|
84 - lua5.2 |
11999
94e37fd22556
patch 8.0.0880: Travis uses an old Ubuntu version
Christian Brabandt <cb@256bit.org>
parents:
11832
diff
changeset
|
85 - ruby-dev |
14241
9abebf6e25c5
patch 8.1.0137: CI does not run with TCL
Christian Brabandt <cb@256bit.org>
parents:
13656
diff
changeset
|
86 - tcl-dev |
9742
0b0b9864c811
commit https://github.com/vim/vim/commit/472472898ab71ac80a86fedc37f8eb91461788dd
Christian Brabandt <cb@256bit.org>
parents:
9700
diff
changeset
|
87 - cscope |
11999
94e37fd22556
patch 8.0.0880: Travis uses an old Ubuntu version
Christian Brabandt <cb@256bit.org>
parents:
11832
diff
changeset
|
88 - libgtk2.0-dev |
16959
437f869466bc
patch 8.1.1480: desktop file check doesn't run on CI
Bram Moolenaar <Bram@vim.org>
parents:
16629
diff
changeset
|
89 - desktop-file-utils |
15667
e093e8809467
patch 8.1.0841: travis config to get Lua on MacOS is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15537
diff
changeset
|
90 homebrew: |
e093e8809467
patch 8.1.0841: travis config to get Lua on MacOS is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15537
diff
changeset
|
91 packages: |
e093e8809467
patch 8.1.0841: travis config to get Lua on MacOS is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15537
diff
changeset
|
92 - lua |
e093e8809467
patch 8.1.0841: travis config to get Lua on MacOS is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15537
diff
changeset
|
93 update: true |
7121
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
94 |
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
95 before_install: |
11999
94e37fd22556
patch 8.0.0880: Travis uses an old Ubuntu version
Christian Brabandt <cb@256bit.org>
parents:
11832
diff
changeset
|
96 - rvm reset |
15723
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
97 # Remove /opt/python/3.x.x/bin from $PATH for using system python3. |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
98 # ("pyenv global system" doesn't seem to work.) |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
99 - | |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
100 if [[ "${TRAVIS_OS_NAME}" = "linux" ]] && [[ "$(which python3)" =~ ^/opt/python/ ]]; then |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
101 export PATH=$(py3=$(which python3); echo ${PATH//${py3%/python3}:/}) |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
102 fi |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
103 - | |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
104 if [[ "${COVERAGE}" = "yes" ]]; then |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
105 pip install --user cpp-coveralls |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
106 fi |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
107 # needed for https support for coveralls |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
108 # building cffi only works with gcc, not with clang |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
109 - | |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
110 if [[ "${COVERAGE}" = "yes" ]]; then |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
111 CC=gcc pip install --user pyopenssl ndg-httpsclient pyasn1 |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
112 fi |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
113 # Lua is not installed on Travis OSX |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
114 - | |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
115 if [[ "${TRAVIS_OS_NAME}" = "osx" ]]; then |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
116 export LUA_PREFIX=/usr/local |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
117 fi |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
118 # Use llvm-cov instead of gcov when compiler is clang. |
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 [[ "${TRAVIS_OS_NAME}" = "linux" ]] && [[ "${CC}" = "clang" ]]; then |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
121 ln -sf "$(which llvm-cov)" /home/travis/bin/gcov |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
122 fi |
7121
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
123 |
10365
0dd0c7fb1096
commit https://github.com/vim/vim/commit/e3505dfc858260a21f2bbc6056f5769dea2f273d
Christian Brabandt <cb@256bit.org>
parents:
9742
diff
changeset
|
124 before_script: |
15723
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
125 # Start virtual framebuffer to be able to test the GUI. Does not work on OS X. |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
126 - | |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
127 if [[ "${TRAVIS_OS_NAME}" = "linux" ]]; then |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
128 export DISPLAY=:99.0 |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
129 sh -e /etc/init.d/xvfb start && sleep 3 |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
130 fi |
10365
0dd0c7fb1096
commit https://github.com/vim/vim/commit/e3505dfc858260a21f2bbc6056f5769dea2f273d
Christian Brabandt <cb@256bit.org>
parents:
9742
diff
changeset
|
131 |
7121
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
132 script: |
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
133 - 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
|
134 - set -o errexit |
a1ca6778da49
patch 8.1.1317: output from Travis can be improved
Bram Moolenaar <Bram@vim.org>
parents:
16328
diff
changeset
|
135 - 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
|
136 - | |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
137 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
|
138 make -C src autoconf |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
139 fi |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
140 - | |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
141 if [[ -n "${SHADOWOPT}" ]]; then |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
142 make -C src shadow |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
143 fi |
16629
a1ca6778da49
patch 8.1.1317: output from Travis can be improved
Bram Moolenaar <Bram@vim.org>
parents:
16328
diff
changeset
|
144 # "./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
|
145 - ./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
|
146 - 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
|
147 - 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
|
148 - | |
16629
a1ca6778da49
patch 8.1.1317: output from Travis can be improved
Bram Moolenaar <Bram@vim.org>
parents:
16328
diff
changeset
|
149 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
|
150 make ${SHADOWOPT} -j${NPROC} |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
151 fi |
16629
a1ca6778da49
patch 8.1.1317: output from Travis can be improved
Bram Moolenaar <Bram@vim.org>
parents:
16328
diff
changeset
|
152 - 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
|
153 - set +o errexit |
a1ca6778da49
patch 8.1.1317: output from Travis can be improved
Bram Moolenaar <Bram@vim.org>
parents:
16328
diff
changeset
|
154 - 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
|
155 # 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
|
156 - | |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
157 if [[ "${BUILD}" = "yes" ]]; then |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
158 "${SRCDIR}"/vim --version |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
159 "${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
|
160 "${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
|
161 cat if_ver.txt |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
162 fi |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
163 - make ${SHADOWOPT} ${TEST} |
16629
a1ca6778da49
patch 8.1.1317: output from Travis can be improved
Bram Moolenaar <Bram@vim.org>
parents:
16328
diff
changeset
|
164 - echo -en "travis_fold:end: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
|
165 - | |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
166 if [[ -n "${ASAN_OPTIONS}" ]]; then |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
167 while read log; do |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
168 asan_symbolize < "${log}" |
16629
a1ca6778da49
patch 8.1.1317: output from Travis can be improved
Bram Moolenaar <Bram@vim.org>
parents:
16328
diff
changeset
|
169 false # exit 1 if there are ASAN logs |
15723
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
170 done < <(find . -type f -name 'asan.*' -size +0) |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
171 fi |
7121
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
172 |
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
173 after_success: |
15723
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
174 - | |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
175 if [[ "${COVERAGE}" = "yes" ]]; then |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
176 ~/.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 |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
177 fi |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
178 - | |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
179 if [[ "${COVERAGE}" = "yes" ]]; then |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
180 (cd "${SRCDIR}" && bash <(curl -s https://codecov.io/bash)) |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
181 fi |
7121
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
182 |
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
183 # vim:set sts=2 sw=2 tw=0 et: |