Skip to content

Commit

Permalink
coverage: improve config / conditionals
Browse files Browse the repository at this point in the history
- 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 #194
  • Loading branch information
blueyed committed Jul 11, 2018
1 parent 1c6fd0f commit ee43a1d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
4 changes: 0 additions & 4 deletions .coveragerc

This file was deleted.

10 changes: 7 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 7 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
[wheel]
universal = 1

[coverage:run]
source = .
include = configurations/*,tests/*
branch = 1
[coverage:report]
include = configurations/*,tests/*

0 comments on commit ee43a1d

Please sign in to comment.