From 7195217b3bb087530dc1cd080b69e4cc7f5c6914 Mon Sep 17 00:00:00 2001 From: Miguel Grinberg Date: Wed, 15 Jul 2015 00:06:54 -0700 Subject: [PATCH] Added build files --- .travis.yml | 12 ++++++++++++ MANIFEST.in | 1 + tox.ini | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 .travis.yml create mode 100644 MANIFEST.in create mode 100644 tox.ini diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..44ff467 --- /dev/null +++ b/.travis.yml @@ -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 diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..64ad321 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +include README.md LICENSE diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..c1d118a --- /dev/null +++ b/tox.ini @@ -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