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-03-28 07:48:17 +00:00
|
|
|
whitelist_externals =
|
2014-04-18 22:31:32 +00:00
|
|
|
make
|
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 22:31:32 +00:00
|
|
|
make build-ext-inplace
|
|
|
|
nose2 --no-user-config tests
|
|
|
|
make clean-build-ext-inplace
|
|
|
|
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
|
|
|
|
|
|
|
[testenv:coverage]
|
|
|
|
basepython = python2.7
|
|
|
|
deps =
|
|
|
|
{[testenv:py27]deps}
|
|
|
|
coverage
|
|
|
|
commands =
|
|
|
|
coverage run --branch -m nose2
|