Scrapy, a fast high-level web crawling & scraping framework for Python.
Add coverage report trough codecov.io
Daniel Graña108c3e63a5ec
diff --git a/.coveragerc b/.coveragercindex 3baaf659a..3105409ba 100644--- a/.coveragerc+++ b/.coveragerc@@ -1,3 +1,19 @@[run]+branch = trueinclude = scrapy/*-omit = scrapy/xlib*,scrapy/tests*+omit =+ tests/*+ scrapy/xlib/*+ scrapy/conf.py+ scrapy/stats.py+ scrapy/project.py+ scrapy/utils/decorator.py+ scrapy/statscol.py+ scrapy/squeue.py+ scrapy/log.py+ scrapy/dupefilter.py+ scrapy/command.py+ scrapy/linkextractor.py+ scrapy/spider.py+ scrapy/contrib/*+ scrapy/contrib_exp/*diff --git a/.travis.yml b/.travis.ymlindex d714c0ff8..aee08919e 100644--- a/.travis.yml+++ b/.travis.yml@@ -7,8 +7,11 @@ env:- TOXENV=py33- TOXENV=docsinstall:- - pip install -U tox twine wheel+ - pip install -U tox twine wheel codecov coverallsscript: tox+after_success:+ - codecov+ - coverallsnotifications:irc:use_notice: truediff --git a/README.rst b/README.rstindex 7006925ae..ec3604875 100644--- a/README.rst+++ b/README.rst@@ -18,6 +18,10 @@ Scrapy:target: https://github.com/scrapy/scrapy/wiki/Python-3-Porting:alt: Python 3 Porting Status+.. image:: https://img.shields.io/codecov/c/github/scrapy/scrapy/master.svg+ :target: http://codecov.io/github/scrapy/scrapy?branch=master+ :alt: Coverage report+Overview========diff --git a/tests/requirements-py3.txt b/tests/requirements-py3.txtindex 8f9e22f0b..e37a2e68d 100644--- a/tests/requirements-py3.txt+++ b/tests/requirements-py3.txt@@ -1,4 +1,5 @@pytest>=2.6.0pytest-twisted+pytest-covtestfixturesjmespathdiff --git a/tests/requirements.txt b/tests/requirements.txtindex 4f1520021..452a884e0 100644--- a/tests/requirements.txt+++ b/tests/requirements.txt@@ -3,5 +3,6 @@ mockmitmproxy==0.10.1netlib==0.10.1pytest-twisted+pytest-covjmespathtestfixturesdiff --git a/tox.ini b/tox.iniindex 9e5b2fa13..806219898 100644--- a/tox.ini+++ b/tox.ini@@ -15,7 +15,7 @@ deps =leveldb-rtests/requirements.txtcommands =- py.test {posargs:scrapy tests}+ py.test --cov=scrapy {posargs:scrapy tests}[testenv:precise]basepython = python2.7@@ -34,7 +34,7 @@ basepython = python2.7commands =pip install -U https://github.com/scrapy/w3lib/archive/master.zip#egg=w3libpip install -U https://github.com/scrapy/queuelib/archive/master.zip#egg=queuelib- py.test {posargs:scrapy tests}+ py.test --cov=scrapy {posargs:scrapy tests}[testenv:py33]basepython = python3.3