2013-11-01 22:34:18 +00:00
|
|
|
[tox]
|
2015-01-31 18:29:15 +00:00
|
|
|
envlist = py26, py27, py32, py33, py34
|
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-22 16:04:38 +00:00
|
|
|
coverage
|
2014-04-20 11:00:00 +00:00
|
|
|
whitelist_externals =
|
|
|
|
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 23:34:32 +00:00
|
|
|
{envpython} setup.py --quiet build_ext --inplace
|
2014-04-22 16:04:38 +00:00
|
|
|
{envbindir}/coverage run -m nose2 --no-user-config tests
|
2014-04-20 11:00:00 +00:00
|
|
|
make clean-build-ext-inplace
|
2014-04-22 16:04:38 +00:00
|
|
|
{envbindir}/coverage run -m 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
|
2015-01-31 14:05:51 +00:00
|
|
|
|
|
|
|
[testenv:py34]
|
|
|
|
deps =
|
|
|
|
{[testenv]deps}
|
|
|
|
biopython
|