forked from pallets-eco/flask-sqlalchemy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
50 lines (46 loc) · 1.07 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
[tox]
envlist =
# All supported Python versions. If you update this, please update docs/index.rst.
py{37,36,35,27,py}
# Don't need to test all Python versions against lowest requirements.
py{37,27}-lowest
docs
coverage-report
# This will only apply on a dev machine. We set this false for CI.
skip_missing_interpreters = true
[testenv]
deps =
pytest
coverage
blinker
mock
lowest: flask==1.0.4
lowest: sqlalchemy==1.2
commands = coverage run -p -m pytest --tb=short --basetemp={envtmpdir} {posargs}
[testenv:docs]
deps =
Sphinx
Pallets-Sphinx-Themes
sphinx-issues
setuptools
twine
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html
# readme
python setup.py sdist
twine check dist/*
[testenv:coverage-report]
deps = coverage
skip_install = true
commands =
coverage combine
coverage html
coverage report
[testenv:codecov]
passenv = CI TRAVIS TRAVIS_* APPVEYOR APPVEYOR_*
deps = codecov
skip_install = true
commands =
coverage combine
codecov
coverage report