Skip to content

Commit

Permalink
Coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Feb 13, 2019
1 parent 1114b41 commit a54d2d3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,15 @@ matrix:
- python: 'pypy3.5-6.0'

install:
- pip install -U pip setuptools setuptools_scm
- pip install -U coverage coverage-enable-subprocess pip setuptools setuptools_scm
- pip install $DEPS
- pip install -U . --force-reinstall

script:
- py.test --lsof $PYTEST_XADDOPTS
- coverage run -m pytest --lsof $PYTEST_XADDOPTS

after_success:
- coverage combine
- coverage report -m
- coverage xml
- bash <(curl -s https://codecov.io/bash) -Z -X gcov -X coveragepy -X search -X xcode -X gcovout -X fix -f coverage.xml -e TRAVIS_PYTHON_VERSION
7 changes: 7 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,10 @@ commands=
[pytest]
rsyncdirs = conftest.py py doc testing
addopts = -ra

[coverage:run]
branch = 1
source = .
parallel = 1
[coverage:report]
include = py/*,testing/*

0 comments on commit a54d2d3

Please sign in to comment.