Merge pull request #51 from msabramo/testing

Added support for tox (http://tox.testrun.org/)
This commit is contained in:
Jakub Roztocil 2012-06-13 07:48:09 -07:00
commit 284a75fa2f
4 changed files with 22 additions and 1 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ dist
httpie.egg-info
build
*.pyc
.tox

View File

@ -2,6 +2,7 @@ language: python
python:
- 2.6
- 2.7
- pypy
- 3.1
- 3.2
script: python tests/tests.py

View File

@ -5,7 +5,7 @@ import httpie
if sys.argv[-1] == 'test':
os.system('python tests.py')
os.system('python tests/tests.py')
sys.exit()

19
tox.ini Normal file
View File

@ -0,0 +1,19 @@
# 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, py30, py31, py32, pypy
[testenv]
commands = {envpython} setup.py test
[testenv:py26]
deps = argparse
[testenv:py30]
deps = argparse
[testenv:py31]
deps = argparse