flask/tox.ini

74 lines
1.9 KiB
INI
Raw Normal View History

2013-05-18 18:27:49 +02:00
[tox]
envlist =
2018-12-23 23:55:42 +08:00
py{37,36,35,34,27,py}
py{37,27,py}-simplejson
py{37,27,py}-devel
py{37,27,py}-lowest
docs-html
coverage-report
2013-05-18 18:27:49 +02:00
[testenv]
2016-11-02 17:56:59 +01:00
passenv = LANG
deps =
pytest>=3
coverage
2014-09-04 14:34:10 +02:00
greenlet
blinker
2017-07-14 22:37:53 -07:00
python-dotenv
lowest: Werkzeug==0.14
2018-02-06 08:03:09 -08:00
lowest: Jinja2==2.10
lowest: itsdangerous==0.24
lowest: Click==5.1
devel: https://github.com/pallets/werkzeug/archive/master.tar.gz
devel: https://github.com/pallets/markupsafe/archive/master.tar.gz
devel: https://github.com/pallets/jinja/archive/master.tar.gz
devel: https://github.com/pallets/itsdangerous/archive/master.tar.gz
devel: https://github.com/pallets/click/archive/master.tar.gz
simplejson: simplejson
commands =
# the examples need to be installed to test successfully
2018-04-12 11:06:02 -07:00
pip install -q -e examples/tutorial[test]
pip install -q -e examples/javascript[test]
# pytest-cov doesn't seem to play nice with -p
2019-05-16 12:45:03 -07:00
coverage run -p -m pytest --tb=short --junitxml=test-results.xml {posargs:tests examples}
2019-05-04 20:46:33 -04:00
[testenv:future]
2019-05-16 12:45:03 -07:00
# courtesy Python nightly test, don't fail the build in CI
2019-05-04 20:46:33 -04:00
ignore_outcome = true
commands =
pip install -q -e examples/tutorial[test]
pip install -q -e examples/javascript[test]
2019-05-16 12:45:03 -07:00
coverage run -p -m pytest --tb=short --junitxml=test-results.xml {posargs:tests examples}
[testenv:stylecheck]
deps = pre-commit
skip_install = true
commands = pre-commit run --all-files --show-diff-on-failure
[testenv:docs-html]
deps =
2019-01-05 14:59:25 -08:00
-r docs/requirements.txt
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html
[testenv:coverage-report]
deps = coverage
skip_install = true
commands =
coverage combine
coverage report
coverage html
[testenv:codecov]
2019-05-04 20:46:33 -04:00
passenv = CI TRAVIS TRAVIS_* APPVEYOR APPVEYOR_* BUILD_* SYSTEM_* AGENT_* TF_BUILD
deps = codecov
skip_install = true
commands =
coverage combine
coverage report
codecov