forked from click-contrib/sphinx-click
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
42 lines (35 loc) · 761 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
37
38
39
40
41
42
[tox]
minversion = 2.0
envlist = pep8,docs,py27,py34,py35
[testenv]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
coverage run --source={toxinidir}/sphinx_click -m unittest discover -s tests/
coverage report
[testenv:coverage]
commands =
{[testenv]commands}
coverage {posargs:html}
[testenv:pep8]
deps =
flake8
flake8-import-order
commands =
flake8 {posargs} sphinx_click tests
[flake8]
show-source = True
import-order-style = pep8
[coverage:run]
branch = True
[testenv:docs]
commands =
python setup.py build_sphinx
[testenv:release]
deps =
{[testenv]deps}
twine
commands =
python setup.py -q bdist_wheel sdist
twine upload --skip-existing {toxinidir}/dist/*