3 changed files with 69 additions and 0 deletions
@ -0,0 +1,12 @@ |
|||
language: python |
|||
env: |
|||
- TOXENV=flake8 |
|||
- TOXENV=py27 |
|||
- TOXENV=py33 |
|||
- TOXENV=py34 |
|||
- TOXENV=pypy |
|||
- TOXENV=docs |
|||
install: |
|||
- pip install tox |
|||
script: |
|||
- tox |
@ -0,0 +1 @@ |
|||
include README.md LICENSE |
@ -0,0 +1,56 @@ |
|||
[tox] |
|||
envlist=flake8,py27,py33,py34,pypy,docs,coverage |
|||
skip_missing_interpreters=True |
|||
|
|||
[testenv] |
|||
commands= |
|||
coverage run --branch --include="socketio/*" setup.py test |
|||
coverage report --show-missing |
|||
coverage erase |
|||
|
|||
[testenv:flake8] |
|||
basepython=python |
|||
deps= |
|||
flake8 |
|||
commands= |
|||
flake8 --exclude=".*" socketio tests example |
|||
|
|||
[testenv:py27] |
|||
basepython=python2.7 |
|||
deps= |
|||
coverage |
|||
mock |
|||
|
|||
[testenv:py33] |
|||
basepython=python3.3 |
|||
deps= |
|||
coverage |
|||
|
|||
[testenv:py34] |
|||
basepython=python3.4 |
|||
deps= |
|||
coverage |
|||
|
|||
[testenv:pypy] |
|||
basepython=pypy |
|||
deps= |
|||
coverage |
|||
|
|||
[testenv:docs] |
|||
basepython=python2.7 |
|||
changedir=docs |
|||
deps= |
|||
sphinx |
|||
whitelist_externals= |
|||
make |
|||
commands= |
|||
make html |
|||
|
|||
[testenv:coverage] |
|||
basepython=python |
|||
deps= |
|||
coverage |
|||
commands= |
|||
coverage run --branch --source=socketio setup.py test |
|||
coverage html |
|||
coverage erase |
Loading…
Reference in new issue