2013-05-18 18:27:49 +02:00
|
|
|
[tox]
|
2017-05-24 15:41:35 -07:00
|
|
|
envlist =
|
2017-05-28 10:26:07 -07:00
|
|
|
py{36,35,34,33,27,26,py}
|
|
|
|
|
py{36,27,py}-simplejson
|
2017-05-24 15:41:35 -07:00
|
|
|
py{36,33,27,26,py}-devel
|
|
|
|
|
py{36,33,27,26,py}-lowest
|
|
|
|
|
docs-html
|
|
|
|
|
coverage-report
|
2016-06-03 09:29:12 -07:00
|
|
|
|
2013-05-18 18:27:49 +02:00
|
|
|
[testenv]
|
2016-11-02 17:56:59 +01:00
|
|
|
passenv = LANG
|
2017-05-24 15:41:35 -07:00
|
|
|
usedevelop = true
|
|
|
|
|
deps =
|
|
|
|
|
pytest>=3
|
|
|
|
|
coverage
|
2014-09-04 14:34:10 +02:00
|
|
|
greenlet
|
2017-05-24 15:41:35 -07:00
|
|
|
blinker
|
2017-07-14 22:37:53 -07:00
|
|
|
python-dotenv
|
2014-04-26 01:13:19 +02:00
|
|
|
|
2017-05-24 15:41:35 -07:00
|
|
|
lowest: Werkzeug==0.9
|
2014-09-01 16:33:28 +02:00
|
|
|
lowest: Jinja2==2.4
|
2014-09-01 00:30:27 +02:00
|
|
|
lowest: itsdangerous==0.21
|
2017-05-23 16:08:46 -07:00
|
|
|
lowest: Click==4.0
|
|
|
|
|
|
2017-05-24 15:41:35 -07:00
|
|
|
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
|
2017-05-23 16:08:46 -07:00
|
|
|
|
2016-06-03 09:29:12 -07:00
|
|
|
simplejson: simplejson
|
2017-05-24 15:41:35 -07:00
|
|
|
commands =
|
|
|
|
|
# the examples need to be installed to test successfully
|
|
|
|
|
pip install -e examples/flaskr -q
|
|
|
|
|
pip install -e examples/minitwit -q
|
|
|
|
|
pip install -e examples/patterns/largerapp -q
|
|
|
|
|
|
|
|
|
|
# pytest-cov doesn't seem to play nice with -p
|
2017-05-28 10:26:07 -07:00
|
|
|
coverage run -p -m pytest tests examples
|
2017-05-24 15:41:35 -07:00
|
|
|
|
|
|
|
|
[testenv:docs-html]
|
2017-05-28 10:26:07 -07:00
|
|
|
deps = sphinx
|
2017-05-24 15:41:35 -07:00
|
|
|
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html
|
2014-04-26 01:13:19 +02:00
|
|
|
|
2017-05-24 15:41:35 -07:00
|
|
|
[testenv:docs-linkcheck]
|
2014-04-26 01:13:19 +02:00
|
|
|
deps = sphinx
|
|
|
|
|
commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees docs docs/_build/linkcheck
|
2017-05-24 15:41:35 -07:00
|
|
|
|
|
|
|
|
[testenv:coverage-report]
|
|
|
|
|
deps = coverage
|
|
|
|
|
skip_install = true
|
|
|
|
|
commands =
|
|
|
|
|
coverage combine
|
|
|
|
|
coverage report
|
|
|
|
|
coverage html
|
|
|
|
|
|
|
|
|
|
[testenv:codecov]
|
|
|
|
|
passenv = CI TRAVIS TRAVIS_*
|
|
|
|
|
deps = codecov
|
|
|
|
|
skip_install = true
|
|
|
|
|
commands =
|
|
|
|
|
coverage combine
|
|
|
|
|
coverage report
|
|
|
|
|
codecov
|
2017-05-28 10:26:07 -07:00
|
|
|
|
|
|
|
|
[testenv:detox]
|
|
|
|
|
skip_install = true
|
|
|
|
|
deps = detox
|
|
|
|
|
commands =
|
2017-06-28 08:06:18 -07:00
|
|
|
detox -e py{36,35,34,33,27,26,py},py{36,27,py}-simplejson,py{36,33,27,26,py}-devel,py{36,33,27,26,py}-lowest
|
2017-07-14 22:37:53 -07:00
|
|
|
tox -e docs-html,coverage-report
|