From ebdf77ca11e273f31c2e82531ce0dc1aaaa4dd2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gra=C3=B1a?= Date: Thu, 13 Aug 2015 22:13:11 -0300 Subject: [PATCH] Add coverage report --- .travis.yml | 8 ++++++-- README.rst | 5 +++++ tox.ini | 3 ++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index e44673ad..1593b4b1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/README.rst b/README.rst index 4a51b6d0..15db9698 100644 --- a/README.rst +++ b/README.rst @@ -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 ======== diff --git a/tox.ini b/tox.ini index c7ee4b84..8aa8f37f 100644 --- a/tox.ini +++ b/tox.ini @@ -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}