Merge pull request #24 from msabramo/testing

Add support for tox (http://tox.testrun.org/) and Travis CI (http://travis-ci.org/)
This commit is contained in:
Alex Clark 2012-06-12 12:58:00 -07:00
commit a5738ae5a4
3 changed files with 31 additions and 0 deletions

5
.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
*.pyc
*.egg-info
build
dist
.tox

13
.travis.yml Normal file
View File

@ -0,0 +1,13 @@
language: python
python:
- 2.5
- 2.6
- 2.7
# - 3.2
# - pypy
script:
- python setup.py clean
- python setup.py install
- python selftest.py

13
tox.ini Normal file
View File

@ -0,0 +1,13 @@
# 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 = py25, py26, py27
[testenv]
commands =
{envpython} setup.py clean
{envpython} setup.py install
{envpython} selftest.py