2013-11-01 22:34:18 +00:00
|
|
|
[tox]
|
2014-04-12 10:10:52 +00:00
|
|
|
envlist = py26, py27, py32, py33
|
2013-11-01 22:34:18 +00:00
|
|
|
|
|
|
|
[testenv]
|
2014-04-12 10:10:52 +00:00
|
|
|
setenv =
|
|
|
|
CFLAGS=-Qunused-arguments
|
|
|
|
CPPFLAGS=-Qunused-arguments
|
|
|
|
changedir = {toxworkdir}
|
2013-11-01 22:34:18 +00:00
|
|
|
deps =
|
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test_requirements.txt
|
2014-03-28 07:48:17 +00:00
|
|
|
whitelist_externals =
|
|
|
|
rm
|
2014-04-12 10:10:52 +00:00
|
|
|
cp
|
2014-03-28 07:48:17 +00:00
|
|
|
2to3
|
2013-11-01 22:34:18 +00:00
|
|
|
|
|
|
|
[testenv:py26]
|
2014-04-12 10:10:52 +00:00
|
|
|
setenv =
|
|
|
|
PYTHONPATH = {envtmpdir}
|
|
|
|
{[testenv]setenv}
|
|
|
|
commands =
|
|
|
|
cp -r {toxinidir}/tests/ {envtmpdir}/tests/
|
|
|
|
unit2 discover {envtmpdir}/tests -t {envtmpdir}
|
|
|
|
rm -rf {envtmpdir}/tests
|
2013-11-01 22:34:18 +00:00
|
|
|
deps =
|
|
|
|
unittest2
|
|
|
|
mock
|
|
|
|
{[testenv]deps}
|
|
|
|
|
|
|
|
[testenv:py27]
|
2014-04-12 10:10:52 +00:00
|
|
|
setenv =
|
|
|
|
PYTHONPATH = {envtmpdir}
|
|
|
|
{[testenv]setenv}
|
2014-03-28 07:48:17 +00:00
|
|
|
commands =
|
2014-04-12 10:10:52 +00:00
|
|
|
cp -r {toxinidir}/tests/ {envtmpdir}/tests/
|
|
|
|
python -m unittest discover {envtmpdir}/tests -t {envtmpdir}
|
|
|
|
rm -rf {envtmpdir}/tests
|
2013-11-01 22:34:18 +00:00
|
|
|
deps =
|
|
|
|
mock
|
|
|
|
{[testenv]deps}
|
2014-04-12 10:10:52 +00:00
|
|
|
biopython
|
2013-11-01 22:34:18 +00:00
|
|
|
|
|
|
|
[testenv:py32]
|
2014-04-12 10:10:52 +00:00
|
|
|
setenv =
|
|
|
|
PYTHONPATH = {envtmpdir}/tests3
|
|
|
|
{[testenv]setenv}
|
2014-03-28 07:48:17 +00:00
|
|
|
commands =
|
2014-04-12 10:10:52 +00:00
|
|
|
2to3 -n -W --output-dir {envtmpdir}/tests3/tests {toxinidir}/tests
|
2014-03-28 07:48:17 +00:00
|
|
|
{envpython} -m unittest discover {envtmpdir}/tests3
|
|
|
|
rm -rf {envtmpdir}/tests3
|
2013-11-01 22:34:18 +00:00
|
|
|
deps =
|
|
|
|
mock
|
|
|
|
{[testenv]deps}
|
2014-03-27 13:31:20 +00:00
|
|
|
|
|
|
|
[testenv:py33]
|
2014-04-12 10:10:52 +00:00
|
|
|
setenv =
|
|
|
|
PYTHONPATH = {envtmpdir}/tests3
|
|
|
|
{[testenv]setenv}
|
2014-03-28 07:48:17 +00:00
|
|
|
commands =
|
2014-04-12 10:10:52 +00:00
|
|
|
2to3 -n -W --output-dir {envtmpdir}/tests3/tests {toxinidir}/tests
|
2014-03-28 07:48:17 +00:00
|
|
|
{envpython} -m unittest discover {envtmpdir}/tests3
|
|
|
|
rm -rf {envtmpdir}/tests3
|
2014-03-27 13:31:20 +00:00
|
|
|
deps =
|
|
|
|
{[testenv]deps}
|
|
|
|
biopython
|