mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-03-16 22:20:27 +00:00
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:
parent
1c6fd0f505
commit
ee43a1d872
3 changed files with 14 additions and 7 deletions
|
|
@ -1,4 +0,0 @@
|
|||
[run]
|
||||
source = .
|
||||
include = configurations/*,tests/*
|
||||
branch = 1
|
||||
10
.travis.yml
10
.travis.yml
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -1,2 +1,9 @@
|
|||
[wheel]
|
||||
universal = 1
|
||||
|
||||
[coverage:run]
|
||||
source = .
|
||||
include = configurations/*,tests/*
|
||||
branch = 1
|
||||
[coverage:report]
|
||||
include = configurations/*,tests/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue