1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-14 15:53:28 +01:00

Add CodeCov (#282)

coverage: switch coverage reporting to codecov, enable in travis-ci and appveyor
coverage: update .coveragerc to include branch, exclude NotImplementedError, __repr__
README: badge update, add appveyor, codecov badges
This commit is contained in:
Ilya Kreymer 2018-01-17 09:59:51 -08:00 committed by GitHub
parent c9cea9fc4f
commit 4f340933f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 6 deletions

View File

@ -1,5 +1,7 @@
[run] [run]
concurrency = gevent concurrency = gevent
source = codecov
branch = True
omit = omit =
*/test/* */test/*
*/tests/* */tests/*
@ -12,3 +14,5 @@ omit =
exclude_lines = exclude_lines =
pragma: no cover pragma: no cover
if __name__ == .__main__.: if __name__ == .__main__.:
def __repr__
raise NotImplementedError

View File

@ -24,6 +24,7 @@ install:
- python setup.py -q install - python setup.py -q install
- pip install -r extra_requirements.txt - pip install -r extra_requirements.txt
- pip install coverage pytest-cov coveralls - pip install coverage pytest-cov coveralls
- pip install codecov
- npm install - npm install
before_script: before_script:
@ -32,7 +33,8 @@ before_script:
script: script:
- python setup.py test - python setup.py test
- cd karma-tests && make test - cd karma-tests && make test && cd ..
after_success: after_success:
coveralls - codecov

View File

@ -1,10 +1,12 @@
Webrecorder pywb 2.0.0 Webrecorder pywb 2.0.0
====================== ======================
.. image:: https://travis-ci.org/ikreymer/pywb.svg?branch=master .. image:: https://travis-ci.org/webrecorder/pywb.svg?branch=develop
:target: https://travis-ci.org/ikreymer/pywb :target: https://travis-ci.org/webrecorder/pywb
.. image:: https://coveralls.io/repos/ikreymer/pywb/badge.svg?branch=master .. image:: https://ci.appveyor.com/api/projects/status/qxnbunw65o929599/branch/develop?svg=true
:target: https://coveralls.io/r/ikreymer/pywb?branch=master :target: https://ci.appveyor.com/project/webrecorder/pywb/branch/develop
.. image:: https://codecov.io/gh/webrecorder/pywb/branch/develop/graph/badge.svg
:target: https://codecov.io/gh/webrecorder/pywb
Web Archiving Tools for All Web Archiving Tools for All
--------------------------- ---------------------------

View File

@ -18,6 +18,7 @@ install:
- "pip install cffi" - "pip install cffi"
- "pip install pyopenssl" - "pip install pyopenssl"
- "pip install certauth boto3 youtube-dl" - "pip install certauth boto3 youtube-dl"
- "pip install codecov"
build_script: build_script:
- "python setup.py install" - "python setup.py install"
@ -25,4 +26,10 @@ build_script:
test_script: test_script:
- "python setup.py test" - "python setup.py test"
after_test:
- rm -rf tests/coverages
- if not exist dist mkdir dist
- if exist .coverage (cp .coverage dist\) else (echo no .coverage)
- codecov
- if exist coverage.xml (cp coverage.xml dist\) else (echo no coverage.xml)