Report coverage (#863)

This commit is contained in:
Daniel Hahler
2018-07-30 22:45:06 +02:00
committed by GitHub
parent b33392c8c8
commit 88502891ba
7 changed files with 34 additions and 5 deletions
+11 -3
View File
@@ -5,7 +5,11 @@ env:
matrix:
- ENV=test
- ENV=check
- ENV=test_nvim
- ENV=test_coverage
matrix:
include:
- env: ENV=test_coverage
python: 2.7
install:
- |
if [ "$ENV" = "test" ]; then
@@ -13,12 +17,16 @@ install:
fi
- |
# https://github.com/neovim/bot-ci#generated-builds
if [ "$ENV" = "test_nvim" ]; then
if [ "$ENV" = "test_coverage" ]; then
eval "$(curl -Ss https://raw.githubusercontent.com/neovim/bot-ci/master/scripts/travis-setup.sh) nightly-x64"
pip --version
pip install neovim
pip install neovim pytest-cov
else
vim --version
fi
script:
- make --keep-going "$ENV"
after_success:
- coverage xml
- bash <(curl -s https://codecov.io/bash) -X gcov -X coveragepy -X fix -X search -X xcode -f coverage.xml -F py${TRAVIS_PYTHON_VERSION//./}