test coverage reports
This commit is contained in:
15
.coveragerc
Normal file
15
.coveragerc
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
[run]
|
||||||
|
branch = True
|
||||||
|
source = eventlet
|
||||||
|
concurrency = eventlet
|
||||||
|
omit =
|
||||||
|
eventlet/support/dns/*
|
||||||
|
eventlet/support/six.py
|
||||||
|
tests/*
|
||||||
|
|
||||||
|
[report]
|
||||||
|
exclude_lines =
|
||||||
|
pragma: no cover
|
||||||
|
raise NotImplementedError
|
||||||
|
if __name__ == .__main__.:
|
||||||
|
ignore_errors = True
|
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,6 +3,7 @@
|
|||||||
*.pyc
|
*.pyc
|
||||||
.*
|
.*
|
||||||
build/
|
build/
|
||||||
|
coverage.xml
|
||||||
dist/
|
dist/
|
||||||
doc/changelog.rst
|
doc/changelog.rst
|
||||||
venv*
|
venv*
|
||||||
|
@@ -1,5 +1,7 @@
|
|||||||
|
sudo: false
|
||||||
language: python
|
language: python
|
||||||
python: 3.5
|
python: 3.5
|
||||||
|
|
||||||
env:
|
env:
|
||||||
matrix:
|
matrix:
|
||||||
- TOX_ENV=pep8
|
- TOX_ENV=pep8
|
||||||
@@ -27,6 +29,7 @@ matrix:
|
|||||||
- env: TOX_ENV=pypy-epolls
|
- env: TOX_ENV=pypy-epolls
|
||||||
- env: TOX_ENV=pypy-poll
|
- env: TOX_ENV=pypy-poll
|
||||||
- env: TOX_ENV=pypy-selects
|
- env: TOX_ENV=pypy-selects
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
apt: true
|
apt: true
|
||||||
ccache: true
|
ccache: true
|
||||||
@@ -40,16 +43,18 @@ addons:
|
|||||||
- libpq-dev
|
- libpq-dev
|
||||||
- libssl-dev
|
- libssl-dev
|
||||||
- libzmq3-dev
|
- libzmq3-dev
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install --upgrade pip setuptools tox virtualenv
|
- pip install --upgrade pip setuptools tox virtualenv codecov
|
||||||
before_script:
|
before_script:
|
||||||
- "export EVENTLET_DB_TEST_AUTH='{\"psycopg2\": {\"user\": \"postgres\"}, \"MySQLdb\": {\"passwd\": \"\", \"host\": \"localhost\", \"user\": \"root\"}}'"
|
- "export EVENTLET_DB_TEST_AUTH='{\"psycopg2\": {\"user\": \"postgres\"}, \"MySQLdb\": {\"passwd\": \"\", \"host\": \"localhost\", \"user\": \"root\"}}'"
|
||||||
- "export PATH=/usr/lib/ccache:$PATH"
|
- "export PATH=/usr/lib/ccache:$PATH"
|
||||||
script:
|
script:
|
||||||
- tox -v -v -e $TOX_ENV
|
- tox -v -v -e $TOX_ENV
|
||||||
|
- codecov
|
||||||
after_failure:
|
after_failure:
|
||||||
- for X in .tox/$TOX_ENV/log/*; do echo "$X\n"; cat "$X"; echo "\n\n"; done
|
- for X in .tox/$TOX_ENV/log/*; do echo "$X\n"; cat "$X"; echo "\n\n"; done
|
||||||
- echo "pip.log\n"; cat $HOME/.pip/pip.log
|
- echo "pip.log\n"; cat $HOME/.pip/pip.log
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
slack: eventlet-net:OYrQ1JE3hdTD78yQY1yZJnnc
|
slack: eventlet-net:OYrQ1JE3hdTD78yQY1yZJnnc
|
||||||
sudo: false
|
|
||||||
|
10
README.rst
10
README.rst
@@ -61,3 +61,13 @@ If you have a project that uses Eventlet with Twisted, your options are:
|
|||||||
* fork Eventlet, revert Twisted removal, identify and fix problems. This work may be merged back into main project.
|
* fork Eventlet, revert Twisted removal, identify and fix problems. This work may be merged back into main project.
|
||||||
|
|
||||||
Apologies for any inconvenience.
|
Apologies for any inconvenience.
|
||||||
|
|
||||||
|
|
||||||
|
Flair
|
||||||
|
=====
|
||||||
|
|
||||||
|
.. image:: https://travis-ci.org/eventlet/eventlet.svg?branch=master
|
||||||
|
:target: https://travis-ci.org/eventlet/eventlet
|
||||||
|
|
||||||
|
.. image:: https://codecov.io/gh/eventlet/eventlet/branch/master/graph/badge.svg
|
||||||
|
:target: https://codecov.io/gh/eventlet/eventlet
|
||||||
|
2
codecov.yml
Normal file
2
codecov.yml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
codecov:
|
||||||
|
token: 2a926756-1923-42a1-89c7-97925ea0e17a
|
12
tox.ini
12
tox.ini
@@ -2,13 +2,13 @@
|
|||||||
# Checkers are not run implicitly.
|
# Checkers are not run implicitly.
|
||||||
[flake8]
|
[flake8]
|
||||||
exclude = *.egg*,.env,.git,.hg,.tox,_*,build*,dist*,venv*,six.py,mock.py,eventlet/green/http/*,eventlet/support/dns/*
|
exclude = *.egg*,.env,.git,.hg,.tox,_*,build*,dist*,venv*,six.py,mock.py,eventlet/green/http/*,eventlet/support/dns/*
|
||||||
ignore = E261
|
ignore = E261,W503
|
||||||
max-line-length = 101
|
max-line-length = 101
|
||||||
|
|
||||||
[pep8]
|
[pep8]
|
||||||
count = 1
|
count = 1
|
||||||
exclude = *.egg*,.env,.git,.hg,.tox,_*,build*,dist*,venv*,six.py,mock.py,eventlet/green/http/*,eventlet/support/dns/*
|
exclude = *.egg*,.env,.git,.hg,.tox,_*,build*,dist*,venv*,six.py,mock.py,eventlet/green/http/*,eventlet/support/dns/*
|
||||||
ignore = E261
|
ignore = E261,W503
|
||||||
max-line-length = 101
|
max-line-length = 101
|
||||||
show-source = 1
|
show-source = 1
|
||||||
statistics = 1
|
statistics = 1
|
||||||
@@ -28,7 +28,7 @@ commands =
|
|||||||
pep8 benchmarks/ eventlet/ tests/
|
pep8 benchmarks/ eventlet/ tests/
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
passenv = TRAVIS*
|
passenv = CI TRAVIS*
|
||||||
setenv =
|
setenv =
|
||||||
PYTHONDONTWRITEBYTECODE = 1
|
PYTHONDONTWRITEBYTECODE = 1
|
||||||
selects: EVENTLET_HUB = selects
|
selects: EVENTLET_HUB = selects
|
||||||
@@ -42,6 +42,7 @@ basepython =
|
|||||||
py35: python3.5
|
py35: python3.5
|
||||||
pypy: pypy
|
pypy: pypy
|
||||||
deps =
|
deps =
|
||||||
|
coverage==4.3.1
|
||||||
nose==1.3.7
|
nose==1.3.7
|
||||||
setuptools==32.3.1
|
setuptools==32.3.1
|
||||||
py{26,27}: subprocess32==3.2.7
|
py{26,27}: subprocess32==3.2.7
|
||||||
@@ -51,6 +52,5 @@ deps =
|
|||||||
{selects,poll,epolls}: psycopg2cffi-compat==1.1
|
{selects,poll,epolls}: psycopg2cffi-compat==1.1
|
||||||
{selects,poll,epolls}: pyzmq==13.1.0
|
{selects,poll,epolls}: pyzmq==13.1.0
|
||||||
commands =
|
commands =
|
||||||
nosetests --verbose {posargs:tests/}
|
nosetests --verbose --with-coverage --cover-erase --cover-package=eventlet {posargs:tests/}
|
||||||
nosetests --verbose --with-doctest eventlet/coros.py eventlet/event.py \
|
coverage xml -i
|
||||||
eventlet/pools.py eventlet/queue.py eventlet/timeout.py
|
|
||||||
|
Reference in New Issue
Block a user