Mercurial > vim
annotate .travis.yml @ 16490:4162ee8bcb1d
Added tag v8.1.1248 for changeset 42910f30637747fa8c921a1579004335233810c3
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 02 May 2019 23:15:07 +0200 |
parents | b576f2e069b7 |
children | a1ca6778da49 |
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 |
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
|
89 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
|
90 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
|
91 - 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
|
92 update: true |
7121
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
93 |
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
94 before_install: |
11999
94e37fd22556
patch 8.0.0880: Travis uses an old Ubuntu version
Christian Brabandt <cb@256bit.org>
parents:
11832
diff
changeset
|
95 - rvm reset |
15723
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
96 # 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
|
97 # ("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
|
98 - | |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
99 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
|
100 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
|
101 fi |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
102 - | |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
103 if [[ "${COVERAGE}" = "yes" ]]; then |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
104 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
|
105 fi |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
106 # 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
|
107 # 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
|
108 - | |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
109 if [[ "${COVERAGE}" = "yes" ]]; then |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
110 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
|
111 fi |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
112 # 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
|
113 - | |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
114 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
|
115 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
|
116 fi |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
117 # 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
|
118 - | |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
119 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
|
120 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
|
121 fi |
7121
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
122 |
10365
0dd0c7fb1096
commit https://github.com/vim/vim/commit/e3505dfc858260a21f2bbc6056f5769dea2f273d
Christian Brabandt <cb@256bit.org>
parents:
9742
diff
changeset
|
123 before_script: |
15723
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
124 # 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
|
125 - | |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
126 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
|
127 export DISPLAY=:99.0 |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
128 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
|
129 fi |
10365
0dd0c7fb1096
commit https://github.com/vim/vim/commit/e3505dfc858260a21f2bbc6056f5769dea2f273d
Christian Brabandt <cb@256bit.org>
parents:
9742
diff
changeset
|
130 |
7121
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
131 script: |
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
132 - NPROC=$(getconf _NPROCESSORS_ONLN) |
15723
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
133 - | |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
134 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
|
135 make -C src autoconf |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
136 fi |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
137 - | |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
138 if [[ -n "${SHADOWOPT}" ]]; then |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
139 make -C src shadow |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
140 fi |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
141 - | |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
142 ( |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
143 cd "${SRCDIR}" \ |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
144 && ./configure --with-features=${FEATURES} ${CONFOPT} --enable-fail-if-missing |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
145 ) && if [[ "${BUILD}" = "yes" ]]; then |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
146 make ${SHADOWOPT} -j${NPROC} |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
147 fi |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
148 # 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
|
149 - | |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
150 if [[ "${BUILD}" = "yes" ]]; then |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
151 "${SRCDIR}"/vim --version |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
152 "${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
|
153 "${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
|
154 cat if_ver.txt |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
155 fi |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
156 - make ${SHADOWOPT} ${TEST} |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
157 - | |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
158 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
|
159 while read log; do |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
160 asan_symbolize < "${log}" |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
161 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
|
162 [[ -z "${log}" ]] # exit 1 if there are ASAN logs |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
163 fi |
7121
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
164 |
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
165 after_success: |
15723
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
166 - | |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
167 if [[ "${COVERAGE}" = "yes" ]]; then |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
168 ~/.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
|
169 fi |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
170 - | |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
171 if [[ "${COVERAGE}" = "yes" ]]; then |
bec05be6858a
patch 8.1.0869: Travis CI script is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15667
diff
changeset
|
172 (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
|
173 fi |
7121
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
174 |
a497a9868255
commit https://github.com/vim/vim/commit/0600f3511c6018cbcdb170a904bcf6533a06bf2d
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
175 # vim:set sts=2 sw=2 tw=0 et: |