test(tox): Add more cython envs

This patch adds some more cython envs so that we can be sure to catch
the odd cython-specific bug in the future.
This commit is contained in:
kgriffs
2014-03-27 10:00:15 -05:00
parent 7aaeaaab9e
commit 8a8d9a6c6f
2 changed files with 32 additions and 0 deletions

View File

@@ -9,6 +9,8 @@ env:
- TOX_ENV=pypy
- TOX_ENV=pep8
- TOX_ENV=pylint
- TOX_ENV=py27_smoke
- TOX_ENV=py27_smoke_cython
script: tox -e $TOX_ENV
after_success: coveralls

30
tox.ini
View File

@@ -7,9 +7,13 @@ envlist = py26,
pypy,
pep8,
pylint,
py27_smoke,
py27_smoke_cython,
py26_bench,
py27_bench,
py27_bench_cython,
py33_bench,
py33_bench_cython,
pypy_bench
[testenv]
@@ -72,12 +76,38 @@ deps = -r{toxinidir}/tools/bench-requires
basepython = python2.7
commands = falcon-bench {posargs}
[testenv:py27_bench_cython]
deps = -r{toxinidir}/tools/bench-requires
cython
basepython = python2.7
commands = falcon-bench {posargs}
[testenv:py33_bench]
deps = -r{toxinidir}/tools/bench-requires
basepython = python3.3
commands = falcon-bench {posargs}
[testenv:py33_bench_cython]
deps = -r{toxinidir}/tools/bench-requires
cython
basepython = python3.3
commands = falcon-bench {posargs}
[testenv:pypy_bench]
deps = -r{toxinidir}/tools/bench-requires
basepython = pypy
commands = falcon-bench {posargs}
[testenv:py27_smoke]
# This test smoke-tests a basic Falcon app
deps = -r{toxinidir}/tools/bench-requires
basepython = python2.7
commands = falcon-bench -t 1 -b falcon-ext
[testenv:py27_smoke_cython]
# This test ensures that a falcon app will run fine under Cython
deps = -r{toxinidir}/tools/bench-requires
cython
basepython = python2.7
commands = falcon-bench -t 1 -b falcon-ext