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-18 23:28:37 +00:00
|
|
|
; setenv =
|
|
|
|
; ; The following two flags are a workaround for an issue with building
|
|
|
|
; ; Python extensions on OSX with xcode 5.1.
|
|
|
|
; ; See: http://stackoverflow.com/questions/22313407/
|
2014-04-18 23:19:43 +00:00
|
|
|
; CFLAGS=-Qunused-arguments
|
|
|
|
; CPPFLAGS=-Qunused-arguments
|
2013-11-01 22:34:18 +00:00
|
|
|
deps =
|
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test_requirements.txt
|
2014-04-12 10:10:52 +00:00
|
|
|
commands =
|
2014-04-18 22:52:25 +00:00
|
|
|
# run tests both with and without the C extensions (including Cython)
|
2014-04-18 23:34:32 +00:00
|
|
|
{envpython} setup.py --quiet build_ext --inplace
|
2014-04-20 10:47:40 +00:00
|
|
|
{envbindir}/nose2 --no-user-config tests
|
2014-04-18 23:34:32 +00:00
|
|
|
{envpython} setup.py --quiet build_ext --inplace
|
2014-04-20 10:47:40 +00:00
|
|
|
{envbindir}/nose2 --no-user-config tests
|
2014-04-18 22:52:25 +00:00
|
|
|
|
|
|
|
[testenv:py26]
|
2013-11-01 22:34:18 +00:00
|
|
|
deps =
|
|
|
|
unittest2
|
|
|
|
mock
|
2014-04-18 22:31:32 +00:00
|
|
|
; workaround for the broken argparse requirement by nose2
|
|
|
|
-r{toxinidir}/test_requirements_py26.txt
|
2013-11-01 22:34:18 +00:00
|
|
|
{[testenv]deps}
|
|
|
|
|
|
|
|
[testenv:py27]
|
|
|
|
deps =
|
|
|
|
mock
|
|
|
|
{[testenv]deps}
|
2014-04-12 10:10:52 +00:00
|
|
|
biopython
|
2013-11-01 22:34:18 +00:00
|
|
|
|
|
|
|
[testenv:py32]
|
|
|
|
deps =
|
|
|
|
mock
|
|
|
|
{[testenv]deps}
|
2014-03-27 13:31:20 +00:00
|
|
|
|
|
|
|
[testenv:py33]
|
|
|
|
deps =
|
|
|
|
{[testenv]deps}
|
|
|
|
biopython
|
2014-04-18 23:13:16 +00:00
|
|
|
|
2014-04-20 10:31:15 +00:00
|
|
|
[testenv:coverage27]
|
2014-04-18 23:13:16 +00:00
|
|
|
basepython = python2.7
|
|
|
|
deps =
|
|
|
|
{[testenv:py27]deps}
|
|
|
|
coverage
|
|
|
|
commands =
|
2014-04-19 00:26:45 +00:00
|
|
|
coverage run -m nose2
|
2014-04-20 10:31:15 +00:00
|
|
|
|
|
|
|
[testenv:coverage33]
|
|
|
|
basepython = python3.3
|
|
|
|
deps =
|
|
|
|
{[testenv:py33]deps}
|
|
|
|
coverage
|
|
|
|
commands =
|
|
|
|
coverage run -m nose2
|