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
|
||||
.*
|
||||
build/
|
||||
coverage.xml
|
||||
dist/
|
||||
doc/changelog.rst
|
||||
venv*
|
||||
|
@@ -1,5 +1,7 @@
|
||||
sudo: false
|
||||
language: python
|
||||
python: 3.5
|
||||
|
||||
env:
|
||||
matrix:
|
||||
- TOX_ENV=pep8
|
||||
@@ -27,6 +29,7 @@ matrix:
|
||||
- env: TOX_ENV=pypy-epolls
|
||||
- env: TOX_ENV=pypy-poll
|
||||
- env: TOX_ENV=pypy-selects
|
||||
|
||||
cache:
|
||||
apt: true
|
||||
ccache: true
|
||||
@@ -40,16 +43,18 @@ addons:
|
||||
- libpq-dev
|
||||
- libssl-dev
|
||||
- libzmq3-dev
|
||||
|
||||
install:
|
||||
- pip install --upgrade pip setuptools tox virtualenv
|
||||
- pip install --upgrade pip setuptools tox virtualenv codecov
|
||||
before_script:
|
||||
- "export EVENTLET_DB_TEST_AUTH='{\"psycopg2\": {\"user\": \"postgres\"}, \"MySQLdb\": {\"passwd\": \"\", \"host\": \"localhost\", \"user\": \"root\"}}'"
|
||||
- "export PATH=/usr/lib/ccache:$PATH"
|
||||
script:
|
||||
- tox -v -v -e $TOX_ENV
|
||||
- codecov
|
||||
after_failure:
|
||||
- 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
|
||||
|
||||
notifications:
|
||||
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.
|
||||
|
||||
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.
|
||||
[flake8]
|
||||
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
|
||||
|
||||
[pep8]
|
||||
count = 1
|
||||
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
|
||||
show-source = 1
|
||||
statistics = 1
|
||||
@@ -28,7 +28,7 @@ commands =
|
||||
pep8 benchmarks/ eventlet/ tests/
|
||||
|
||||
[testenv]
|
||||
passenv = TRAVIS*
|
||||
passenv = CI TRAVIS*
|
||||
setenv =
|
||||
PYTHONDONTWRITEBYTECODE = 1
|
||||
selects: EVENTLET_HUB = selects
|
||||
@@ -42,6 +42,7 @@ basepython =
|
||||
py35: python3.5
|
||||
pypy: pypy
|
||||
deps =
|
||||
coverage==4.3.1
|
||||
nose==1.3.7
|
||||
setuptools==32.3.1
|
||||
py{26,27}: subprocess32==3.2.7
|
||||
@@ -51,6 +52,5 @@ deps =
|
||||
{selects,poll,epolls}: psycopg2cffi-compat==1.1
|
||||
{selects,poll,epolls}: pyzmq==13.1.0
|
||||
commands =
|
||||
nosetests --verbose {posargs:tests/}
|
||||
nosetests --verbose --with-doctest eventlet/coros.py eventlet/event.py \
|
||||
eventlet/pools.py eventlet/queue.py eventlet/timeout.py
|
||||
nosetests --verbose --with-coverage --cover-erase --cover-package=eventlet {posargs:tests/}
|
||||
coverage xml -i
|
||||
|
Reference in New Issue
Block a user