coverage: improve config / conditionals

- move config to setup.cfg, add report-include
- Travis: codecov: skip fixes, generate and pass coverage.xml
- only do coverage for py jobs, fix -X for codecov

Closes https://github.com/jazzband/django-configurations/pull/194
This commit is contained in:
Daniel Hahler 2018-05-08 14:04:28 +02:00
parent 1c6fd0f505
commit ee43a1d872
3 changed files with 14 additions and 7 deletions

View file

@ -1,4 +0,0 @@
[run]
source = .
include = configurations/*,tests/*
branch = 1

View file

@ -62,9 +62,13 @@ install:
- pip install tox
script: tox -v
after_success:
- pip install codecov
- codecov --required -X gcov --flags ${TOXENV//-/ }
- coverage report -m
- |
if [ "$TOXENV" = py* ]; then
pip install codecov
coverage xml
coverage report -m
codecov --required -X gcov fix pycov -f coverage.xml --flags ${TOXENV//-/ }
fi
branches:
except: templates/1.5.x templates/1.6.x
deploy:

View file

@ -1,2 +1,9 @@
[wheel]
universal = 1
[coverage:run]
source = .
include = configurations/*,tests/*
branch = 1
[coverage:report]
include = configurations/*,tests/*