Skip to content

Commit

Permalink
ci: fix coverage reporting (#408)
Browse files Browse the repository at this point in the history
* ci: fix coverage reporting

Add "cov" tox factor, which should get used by tox-travis then.

* move --cov-append to tox factor

* use pypy-cov

* tox: add py37, py38 to envlist for tox-travis to use py37-cov

* add .codecov.yml to disable comments
  • Loading branch information
blueyed authored Aug 20, 2019
1 parent ba801c7 commit a63cddb
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
coverage:
status:
project: true
patch: true
changes: true
comment: false
7 changes: 7 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[run]
source = .
branch = true

[report]
show_missing = true
include = pynvim/*,test/*
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,8 @@ script:
- tox
after_script:
- if [ $CI_TARGET = tests ]; then
coverage report -m;
coverage xml;
bash <(curl --retry 5 --silent --fail https://codecov.io/bash) -f coverage.xml;
ocular;
fi
9 changes: 7 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
[tox]
envlist =
py{27,34,35,36}-{asyncio,pyuv},pypy
py{27,34,35,36,37,38}-{asyncio,pyuv}-cov,pypy-cov
py36-docs
checkqa

[testenv]
extras = test
deps =
pytest-timeout
cov: pytest-cov
pyuv: pyuv
setenv =
cov: PYTEST_ADDOPTS=--cov=. --cov-append {env:PYTEST_ADDOPTS:}
passenv = PYTEST_ADDOPTS
commands = python -m pytest {posargs}
commands =
cov: coverage erase
python -m pytest {posargs}

[testenv:checkqa]
deps =
Expand Down

0 comments on commit a63cddb

Please sign in to comment.