mirror of
https://github.com/httpie/cli.git
synced 2024-12-24 23:39:18 +01:00
Merge pull request #51 from msabramo/testing
Added support for tox (http://tox.testrun.org/)
This commit is contained in:
commit
284a75fa2f
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@ dist
|
||||
httpie.egg-info
|
||||
build
|
||||
*.pyc
|
||||
.tox
|
||||
|
@ -2,6 +2,7 @@ language: python
|
||||
python:
|
||||
- 2.6
|
||||
- 2.7
|
||||
- pypy
|
||||
- 3.1
|
||||
- 3.2
|
||||
script: python tests/tests.py
|
||||
|
2
setup.py
2
setup.py
@ -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
19
tox.ini
Normal 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
|
Loading…
Reference in New Issue
Block a user