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:
parent
c9cea9fc4f
commit
4f340933f3
@ -1,5 +1,7 @@
|
||||
[run]
|
||||
concurrency = gevent
|
||||
source = codecov
|
||||
branch = True
|
||||
omit =
|
||||
*/test/*
|
||||
*/tests/*
|
||||
@ -12,3 +14,5 @@ omit =
|
||||
exclude_lines =
|
||||
pragma: no cover
|
||||
if __name__ == .__main__.:
|
||||
def __repr__
|
||||
raise NotImplementedError
|
||||
|
@ -24,6 +24,7 @@ install:
|
||||
- python setup.py -q install
|
||||
- pip install -r extra_requirements.txt
|
||||
- pip install coverage pytest-cov coveralls
|
||||
- pip install codecov
|
||||
- npm install
|
||||
|
||||
before_script:
|
||||
@ -32,7 +33,8 @@ before_script:
|
||||
|
||||
script:
|
||||
- python setup.py test
|
||||
- cd karma-tests && make test
|
||||
- cd karma-tests && make test && cd ..
|
||||
|
||||
after_success:
|
||||
coveralls
|
||||
- codecov
|
||||
|
||||
|
10
README.rst
10
README.rst
@ -1,10 +1,12 @@
|
||||
Webrecorder pywb 2.0.0
|
||||
======================
|
||||
|
||||
.. image:: https://travis-ci.org/ikreymer/pywb.svg?branch=master
|
||||
:target: https://travis-ci.org/ikreymer/pywb
|
||||
.. image:: https://coveralls.io/repos/ikreymer/pywb/badge.svg?branch=master
|
||||
:target: https://coveralls.io/r/ikreymer/pywb?branch=master
|
||||
.. image:: https://travis-ci.org/webrecorder/pywb.svg?branch=develop
|
||||
:target: https://travis-ci.org/webrecorder/pywb
|
||||
.. image:: https://ci.appveyor.com/api/projects/status/qxnbunw65o929599/branch/develop?svg=true
|
||||
: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
|
||||
---------------------------
|
||||
|
@ -18,6 +18,7 @@ install:
|
||||
- "pip install cffi"
|
||||
- "pip install pyopenssl"
|
||||
- "pip install certauth boto3 youtube-dl"
|
||||
- "pip install codecov"
|
||||
|
||||
build_script:
|
||||
- "python setup.py install"
|
||||
@ -25,4 +26,10 @@ build_script:
|
||||
test_script:
|
||||
- "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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user