Add coveralls integration
No use mirrors Enforce coverage3 Add coverage badge and use python -m to invoke coverage Enforce pip3, remove SyntaxError reported line Use develop branch for coverage status
This commit is contained in:
parent
3a371f2d6f
commit
fcfbec4760
|
@ -22,3 +22,4 @@ Makefile
|
|||
setup.py
|
||||
tests.py
|
||||
ProxyPy.png
|
||||
requirements-testing.txt
|
||||
|
|
|
@ -9,6 +9,7 @@ matrix:
|
|||
os: osx
|
||||
osx_image: xcode11
|
||||
language: shell
|
||||
python: 3.7
|
||||
- name: "Python 3.7 on Windows"
|
||||
os: windows
|
||||
language: shell
|
||||
|
@ -18,4 +19,8 @@ matrix:
|
|||
env:
|
||||
- PATH=/c/Python37:/c/Python37/Scripts:$PATH
|
||||
- TESTING_ON_TRAVIS=1
|
||||
script: python3 tests.py || python tests.py
|
||||
install:
|
||||
- pip3 install -r requirements-testing.txt
|
||||
script: python3 -m coverage run tests.py || python -m coverage run tests.py
|
||||
after_success:
|
||||
- coveralls
|
||||
|
|
4
Makefile
4
Makefile
|
@ -31,8 +31,8 @@ release: package
|
|||
twine upload dist/*
|
||||
|
||||
coverage:
|
||||
coverage run tests.py
|
||||
coverage html
|
||||
coverage3 run tests.py
|
||||
coverage3 html
|
||||
open htmlcov/index.html
|
||||
|
||||
flake8:
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[![Proxy.Py](ProxyPy.png)](https://github.com/abhinavsingh/proxy.py)
|
||||
|
||||
[![alt text](https://travis-ci.org/abhinavsingh/proxy.py.svg?branch=develop "Build Status")](https://travis-ci.org/abhinavsingh/proxy.py/)
|
||||
[![alt text](https://travis-ci.org/abhinavsingh/proxy.py.svg?branch=develop "Build Status")](https://travis-ci.org/abhinavsingh/proxy.py/) [![Coverage Status](https://coveralls.io/repos/github/abhinavsingh/proxy.py/badge.svg?branch=develop)](https://coveralls.io/github/abhinavsingh/proxy.py?branch=develop)
|
||||
|
||||
Features
|
||||
--------
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
python-coveralls==2.9.3
|
||||
coverage==4.5.2
|
||||
flake8==3.7.8
|
||||
twine==1.12.1
|
Loading…
Reference in New Issue