Skip to content
This repository has been archived by the owner on Apr 5, 2023. It is now read-only.

Commit

Permalink
Add coverage measurement with coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
bmerry committed Oct 25, 2018
1 parent 24b1983 commit 4242423
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[paths]
source =
birdisle/
*/site-packages/birdisle/
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ install:
- pip install -r requirements.txt
- pip install .
script:
- pytest --forked
# Workaround for https://github.com/pytest-dev/pytest-cov/issues/98
- (cd tests && pytest --cov=birdisle --cov-branch) && coverage combine tests/.coverage
- if [[ "$TRAVIS_PYTHON_VERSION" == 3.6 ]]; then flake8; fi
after_success:
- coveralls
1 change: 1 addition & 0 deletions doc/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Release history
0.1.1
-----
- Update README.md
- Add coverage measurement with coveralls

0.1
---
Expand Down
4 changes: 3 additions & 1 deletion requirements.in
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
cffi
redis
pytest
pytest-forked
pytest-cov
flake8
coverage
coveralls

aioredis; python_version>="3.5"
pytest-asyncio; python_version>="3.5"
Expand Down
10 changes: 9 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,15 @@ async-generator==1.10 ; python_version >= "3.5"
async-timeout==2.0.1 ; python_version >= "3.5"
atomicwrites==1.2.1 # via pytest
attrs==18.2.0 # via pytest
certifi==2018.10.15 # via requests
cffi==1.11.5
chardet==3.0.4 # via requests
coverage==4.5.1
coveralls==1.5.1
docopt==0.6.2 # via coveralls
flake8==3.5.0
hiredis==0.2.0 # via aioredis
idna==2.7 # via requests
mccabe==0.6.1 # via flake8
more-itertools==4.3.0 # via pytest
pluggy==0.7.1 # via pytest
Expand All @@ -20,7 +26,9 @@ pycodestyle==2.3.1 # via flake8
pycparser==2.19 # via cffi
pyflakes==1.6.0 # via flake8
pytest-asyncio==0.9.0 ; python_version >= "3.5"
pytest-forked==0.2
pytest-cov==2.6.0
pytest==3.8.2
redis==2.10.6
requests==2.20.0 # via coveralls
six==1.11.0 # via more-itertools, pytest
urllib3==1.24 # via requests

0 comments on commit 4242423

Please sign in to comment.