2013-11-01 22:34:18 +00:00
[tox]
2015-02-07 11:18:02 +00:00
envlist = py{26,27,32,33,34}-{with,without}_coverage
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
2014-04-22 16:04:38 +00:00
coverage
2015-02-07 10:47:41 +00:00
py26: unittest2
py{26,27,32}: mock
py{27,33,34}: biopython
2015-02-02 01:37:26 +00:00
whitelist_externals =
mv
2014-04-12 10:10:52 +00:00
commands =
2015-02-03 22:49:53 +00:00
; run tests both with and without the C extensions (including Cython)
; merge the coverage run results from both runs
2015-02-07 11:18:02 +00:00
py26-without_coverage: {envbindir}/unit2 discover tests -t {toxinidir}
py26-with_coverage: {envbindir}/coverage run --source = fuzzysearch -m unittest2 discover tests
py{27,32,33,34}-without_coverage: {envpython} -m unittest discover tests
py{27,32,33,34}-with_coverage: {envbindir}/coverage run --source = fuzzysearch -m unittest discover tests
with_coverage: mv .coverage .coverage.with_extensions
2015-02-03 22:49:53 +00:00
{envpython} -c 'import os; [os.remove(os.path.join(d, fn)) for (d, dns, fns) in os.walk("{envsitepackagesdir}/fuzzysearch") for fn in fns if fn.endswith(".so")]'
2015-02-07 11:18:02 +00:00
py26-without_coverage: {envbindir}/unit2 discover tests -t {toxinidir}
py26-with_coverage: {envbindir}/coverage run --source = fuzzysearch -m unittest2 discover tests
py{27,32,33,34}-without_coverage: {envpython} -m unittest discover tests
py{27,32,33,34}-with_coverage: {envbindir}/coverage run --source = fuzzysearch -m unittest discover tests
with_coverage: mv .coverage .coverage.no_extensions
with_coverage: {envbindir}/coverage combine