Added tox.ini to runtests on multiple python envs

Also updated python setup.py test to run in CI configuration
This commit is contained in:
Honza Kral
2013-09-02 20:57:59 -05:00
parent f603a834ca
commit e123008851
4 changed files with 12 additions and 2 deletions
+4
View File
@@ -5,3 +5,7 @@
test_elasticsearch/cover
docs/_build
elasticsearch.egg-info
.tox
*.egg
coverage.xml
nosetests.xml
+2
View File
@@ -21,6 +21,8 @@ tests_require = [
'nose',
'coverage',
'mock',
'pyaml',
'nosexcover'
]
# use external unittest for 2.6
+2 -2
View File
@@ -9,8 +9,8 @@ def run_all(argv=None):
# always insert coverage when running tests
if argv is None:
argv = [
'nosetests',
'--with-coverage', '--cover-package=elasticsearch', '--cover-erase',
'nosetests', '--with-xunit',
'--with-xcoverage', '--cover-package=elasticsearch', '--cover-erase',
'--nocapture', '--nologcapture',
'--verbose',
]
+4
View File
@@ -0,0 +1,4 @@
[tox]
envlist = py26,py27,py33,pypy
[testenv]
commands = python setup.py test