flask/tox.ini

70 lines
1.7 KiB
INI
Raw Normal View History

2013-05-18 18:27:49 +02:00
[tox]
envlist =
2019-10-19 02:05:55 +03:00
py{38,37,36,35,27,py3,py}
py38-{simplejson,devel,lowest}
2019-11-18 18:57:43 -08:00
docs
2019-05-16 13:53:49 -07:00
coverage
2019-11-18 18:57:43 -08:00
skip_missing_interpreters = true
2013-05-18 18:27:49 +02:00
[testenv]
2016-11-02 17:56:59 +01:00
passenv = LANG
deps =
2019-05-16 13:53:49 -07:00
pytest
coverage
2014-09-04 14:34:10 +02:00
greenlet
blinker
2017-07-14 22:37:53 -07:00
python-dotenv
2019-11-18 18:57:43 -08:00
lowest: Werkzeug==0.15.5
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
coverage run -p -m pytest --tb=short -Werror {posargs:tests examples}
2019-05-16 13:53:49 -07:00
[testenv:nightly]
# courtesy Python nightly test, don't fail the build in CI
ignore_outcome = true
commands =
2019-11-18 18:57:43 -08:00
coverage run -p -m pytest --tb=short -Werror --junitxml=test-results.xml tests
2019-05-16 13:53:49 -07:00
2019-11-18 18:57:43 -08:00
[testenv:style]
2019-05-16 13:53:49 -07:00
deps = pre-commit
skip_install = true
commands = pre-commit run --all-files --show-diff-on-failure
2019-11-18 18:57:43 -08:00
[testenv:docs]
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
2019-05-16 13:53:49 -07:00
[testenv:coverage]
deps = coverage
skip_install = true
commands =
coverage combine
coverage html
2019-05-16 13:53:49 -07:00
coverage report
2019-05-16 13:53:49 -07:00
[testenv:coverage-ci]
2019-06-12 10:35:35 -07:00
deps = coverage
skip_install = true
commands =
coverage combine
2019-05-16 13:53:49 -07:00
coverage xml
coverage report