Permalink
Browse files

Merge pull request #47 from msabramo/testing

Testing: Add support for `python setup.py test`, tox, and Travis CI
  • Loading branch information...
Lawouach committed May 15, 2012
2 parents 9571b65 + 96f0b63 commit f0b63bbe933e6d7c6a881a839462703c06477d54
Showing with 23 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +10 −0 .travis.yml
  3. +2 −0 setup.py
  4. 0 test/__init__.py
  5. +10 −0 tox.ini
View
@@ -1,3 +1,4 @@
build
*.egg-info
*.pyc
+.tox
View
@@ -0,0 +1,10 @@
+language: python
+
+python:
+ - 2.6
+ - 2.7
+
+before_install:
+ - sudo apt-get install python-dev libevent-dev
+
+script: python setup.py test
View
@@ -12,6 +12,8 @@
url = "https://github.com/Lawouach/WebSocket-for-Python",
download_url = "http://www.defuze.org/oss/ws4py/",
packages = ["ws4py", "ws4py.client", "ws4py.server", "ws4py.server.wsgi"],
+ tests_require=['unittest2', 'gevent', 'cherrypy'],
+ test_suite='unittest2.collector',
platforms = ["any"],
license = 'BSD',
long_description = "WebSocket library for Python",
View
No changes.
View
10 tox.ini
@@ -0,0 +1,10 @@
+# Tox (http://tox.testrun.org/) is a tool for running tests
+# in multiple virtualenvs. This configuration file will run the
+# test suite on all supported python versions. To use it, "pip install tox"
+# and then run "tox" from this directory.
+
+[tox]
+envlist = py26, py27
+
+[testenv]
+commands = python setup.py test

0 comments on commit f0b63bb

Please sign in to comment.