forked from Yelp/pyramid_swagger
/
tox.ini
36 lines (31 loc) · 753 Bytes
/
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
[tox]
envlist = py26,py27,py33,py34,py35,{py27,py35}-pyramid15,pep8
[testenv]
deps =
coverage
mock
pytest>=3
ordereddict
webtest
pyramid15: pyramid<=1.5.4
bravado
# Python >= 2.7 is needed by twisted >= 15.5
py26: twisted >= 14.0.0, < 15.5
commands =
coverage run --source=pyramid_swagger/ --omit=pyramid_swagger/__about__.py -m pytest --capture=no --strict {posargs:tests/}
coverage report -m
[testenv:pep8]
deps =
flake8
commands =
flake8 pyramid_swagger
flake8 tests
[flake8]
exclude = .tox,*.egg
max-complexity = 9
[testenv:docs]
deps =
sphinx
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html
sphinx-build -W -b linkcheck docs docs/_build/html