|
@@ -4,22 +4,41 @@
|
|
|
# and then run "tox" from this directory.
|
|
|
|
|
|
[tox]
|
|
|
-envlist = py34, py27, docs
|
|
|
+envlist = py27,py34
|
|
|
|
|
|
-[testenv]
|
|
|
-commands = {envpython} setup.py test
|
|
|
-changedir = .
|
|
|
-deps = pexpect
|
|
|
- pycrypto
|
|
|
- colorama
|
|
|
- pymysql
|
|
|
- psycopg2
|
|
|
- pymongo==2.8
|
|
|
-sitepackages=True
|
|
|
+[testenv:py27]
|
|
|
+commands = coverage erase
|
|
|
+ {envbindir}/python setup.py develop
|
|
|
+ coverage run -p setup.py test
|
|
|
+ coverage combine
|
|
|
+
|
|
|
+deps = -rrequirements.txt
|
|
|
+ pymongo==2.8
|
|
|
+ pymysql
|
|
|
+ psycopg2
|
|
|
+ pexpect
|
|
|
+ coverage
|
|
|
+
|
|
|
+[testenv:py34]
|
|
|
+commands = coverage3 erase
|
|
|
+ {envbindir}/python setup.py develop
|
|
|
+ coverage3 run -p setup.py test
|
|
|
+ coverage combine
|
|
|
+
|
|
|
+deps = -rrequirements.txt
|
|
|
+ pymongo==2.8
|
|
|
+ pymysql
|
|
|
+ psycopg2
|
|
|
+ pexpect
|
|
|
+ coverage
|
|
|
|
|
|
[testenv:docs]
|
|
|
changedir = docs
|
|
|
-deps =
|
|
|
- sphinx
|
|
|
+deps = -rrequirements.txt
|
|
|
+ pymongo==2.8
|
|
|
+ pymysql
|
|
|
+ psycopg2
|
|
|
+ pexpect
|
|
|
+ sphinx
|
|
|
commands =
|
|
|
sphinx-build -b html -d {envtmpdir}/doctrees source {envtmpdir}/html
|