Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #35 from scrapy/coverage
Browse files Browse the repository at this point in the history
Add coverage report
  • Loading branch information
dangra committed Aug 14, 2015
2 parents 7ec91ce + ebdf77c commit 611ccfb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Expand Up @@ -7,14 +7,18 @@ env:
- TOXENV=py34
install:
- "./.travis-workarounds.sh"
- pip install tox
- pip install -U tox twine wheel codecov
script: tox
after_success:
- codecov

notifications:
irc:
use_notice: true
skip_join: true
channels:
- irc.freenode.org#scrapy
- irc.freenode.org#scrapy

deploy:
provider: pypi
distributions: sdist bdist_wheel
Expand Down
5 changes: 5 additions & 0 deletions README.rst
Expand Up @@ -5,6 +5,11 @@ w3lib
.. image:: https://secure.travis-ci.org/scrapy/w3lib.png?branch=master
:target: http://travis-ci.org/scrapy/w3lib

.. image:: https://img.shields.io/codecov/c/github/scrapy/w3lib/master.svg
:target: http://codecov.io/github/scrapy/w3lib?branch=master
:alt: Coverage report


Overview
========

Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Expand Up @@ -9,5 +9,6 @@ envlist = py27, pypy, py33, py34
[testenv]
deps =
pytest
pytest-cov
commands =
py.test {posargs:w3lib tests}
py.test --cov=w3lib --cov-report= {posargs:w3lib tests}

0 comments on commit 611ccfb

Please sign in to comment.