Skip to content

Commit

Permalink
Merge pull request jazzband#711 from atugushev/codecov
Browse files Browse the repository at this point in the history
Setup coverage reports
  • Loading branch information
atugushev committed Jan 20, 2019
2 parents 2598a6d + bc4960f commit e03ce4f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
[run]
branch = True
source = piptools
source = .
omit =
piptools/_compat/*
piptools/_vendored/*
piptools/_vendored/*

[report]
include = piptools/*, tests/*
11 changes: 10 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ env:

cache: pip
install:
- travis_retry pip install tox-travis
- travis_retry pip install tox-travis codecov coveralls
script:
- tox
after_success:
- codecov -e PIP
- "COVERALLS_PARALLEL=true coveralls"

jobs:
exclude:
Expand All @@ -33,14 +36,17 @@ jobs:
- stage: flake8
python: 2.7
env: TOXENV=flake8
after_success: skip # No need coverage
- stage: readme
python: 2.7
env: TOXENV=readme
after_success: skip # No need coverage
- stage: deploy
install: skip # No need to install tox-travis on deploy.
script: skip # No test on the deploy stage.
python: 2.7
env: skip # No special env required.
after_success: skip # No need coverage
deploy:
provider: pypi
user: jazzband
Expand All @@ -53,3 +59,6 @@ jobs:
repo: jazzband/pip-tools
allow_failures:
- env: PIP=master

notifications:
webhooks: https://coveralls.io/webhook
8 changes: 7 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
|buildstatus-travis| |buildstatus-appveyor| |jazzband| |pypi|
|buildstatus-travis| |buildstatus-appveyor| |codecov| |coveralls| |jazzband| |pypi|

==================================
pip-tools = pip-compile + pip-sync
Expand All @@ -16,6 +16,12 @@ even when you've pinned them. `You do pin them, right?`_
.. |buildstatus-appveyor| image:: https://img.shields.io/appveyor/ci/jazzband/pip-tools/master.svg
:alt: Appveyor build status
:target: https://ci.appveyor.com/project/jazzband/pip-tools
.. |codecov| image:: https://codecov.io/gh/jazzband/pip-tools/branch/master/graph/badge.svg
:alt: Codecov
:target: https://codecov.io/gh/jazzband/pip-tools
.. |coveralls| image:: https://coveralls.io/repos/github/jazzband/pip-tools/badge.svg?branch=master
:alt: Coveralls
:target: https://coveralls.io/github/jazzband/pip-tools?branch=master
.. |jazzband| image:: https://jazzband.co/static/img/badge.svg
:alt: Jazzband
:target: https://jazzband.co/
Expand Down

0 comments on commit e03ce4f

Please sign in to comment.