-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy path.travis.yml
42 lines (38 loc) · 1.29 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
sudo: false
language: ruby
rvm:
- 2.2.3
matrix:
include:
- env: TESTVIM=vim
- env: TESTVIM=nvim
install:
- pip install --user covimerage
- |
set -e
pushd /tmp
if [ "$TESTVIM" = vim ]; then
git clone --depth=1 https://github.com/vim/vim
cd vim
./configure --with-features=huge --enable-rubyinterp --enable-pythoninterp --prefix /tmp/vim
make
make install
PATH=/tmp/vim/bin:$PATH
else
# Install Neovim nightly (into /tmp/_neovim).
TRAVIS_BUILD_DIR=/tmp eval "$(curl -Ss https://raw.githubusercontent.com/neovim/bot-ci/master/scripts/travis-setup.sh) nightly-x64"
gem install neovim
pip install --user neovim
export VADER_OUTPUT_FILE=/dev/stderr
fi
popd
script:
- export LD_LIBRARY_PATH=~/.rvm/rubies/ruby-2.2.3/lib
- $TESTVIM --version
# Wrap $TESTVIM with covimerage for coverage reporting.
# Uses --no-report, because test/run-tests.sh changes the directory, and that does not pick up .coveragerc then.
- VADER_TEST_VIM="covimerage run --source $PWD --data-file $PWD/.coverage_covimerage --no-report $TESTVIM" ./test/run-tests.sh
after_success:
- covimerage -vv xml
- covimerage report -m
- bash <(curl -s https://codecov.io/bash) -X search -X gcov -X coveragepy -f coverage.xml -F $TESTVIM