chore(tox): Cleanup tox.ini (#1017)

This commit is contained in:
Kurt Griffiths
2017-04-13 17:41:05 -06:00
committed by GitHub
parent 9cb4b24c83
commit b1e5e2c6f5

View File

@@ -24,11 +24,11 @@ commands = {toxinidir}/tools/clean.sh {toxinidir}/falcon
# -------------------------------------------------------------------- # --------------------------------------------------------------------
[with-coverage] [with-coverage]
whitelist_externals = bash whitelist_externals = mkdir
mv mv
commands = {toxinidir}/tools/clean.sh {toxinidir}/falcon commands = {toxinidir}/tools/clean.sh {toxinidir}/falcon
coverage run -m pytest tests [] coverage run -m pytest tests []
bash -c "if [ ! -d .coverage_data ]; then mkdir .coverage_data; fi" mkdir -p .coverage_data
mv {toxinidir}/.coverage {toxinidir}/.coverage_data/.coverage.{envname} mv {toxinidir}/.coverage {toxinidir}/.coverage_data/.coverage.{envname}
[testenv:py26] [testenv:py26]
@@ -153,7 +153,6 @@ commands = flake8 \
--application-import-names=falcon \ --application-import-names=falcon \
[] []
# -------------------------------------------------------------------- # --------------------------------------------------------------------
# For viewing environ dicts generated by various WSGI servers # For viewing environ dicts generated by various WSGI servers
# -------------------------------------------------------------------- # --------------------------------------------------------------------
@@ -176,7 +175,6 @@ commands = python tests/dump_wsgi.py
basepython = python3.5 basepython = python3.5
commands = python tests/dump_wsgi.py commands = python tests/dump_wsgi.py
# -------------------------------------------------------------------- # --------------------------------------------------------------------
# Benchmarking # Benchmarking
# -------------------------------------------------------------------- # --------------------------------------------------------------------
@@ -244,9 +242,9 @@ commands = falcon-bench []
# -------------------------------------------------------------------- # --------------------------------------------------------------------
# Documentation # Documentation
# -------------------------------------------------------------------- # --------------------------------------------------------------------
[testenv:docs] [testenv:docs]
basepython = python2.7 basepython = python2.7
deps = -r{toxinidir}/tools/doc-requires deps = -r{toxinidir}/tools/doc-requires
whitelist_externals = rm
commands = commands =
sphinx-build -W -E -b html docs docs/_build/html [] sphinx-build -W -E -b html docs docs/_build/html []