Skip to content

Commit

Permalink
Add coverage tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Alla committed May 17, 2017
1 parent 62da7c0 commit b4302f3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[run]
branch = true

[report]
omit =
*site-packages*
*tests*
*.tox*
*conftest*
show_missing = True
exclude_lines =
raise NotImplementedError
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ env:
- TOXENV=pypy

# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install: pip install -U tox
install: pip install -U tox codecov

# command to run tests, e.g. python setup.py test
script: tox -e ${TOXENV}

after_success:
- codecov -e TOXENV

# After you create the Github repo and add it to Travis, run the
# travis_pypi_setup.py script to finish PyPI deployment setup
deploy:
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ commands=flake8 webhook_logger
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/webhook_logger

commands = python setup.py test
commands = coverage run --source webhook_logger setup.py test

; If you want to make tox run the tests with the same versions, create a
; requirements.txt with the pinned versions and uncomment the following lines:
Expand Down

0 comments on commit b4302f3

Please sign in to comment.