forked from release-engineering/pubtools-iib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
94 lines (80 loc) · 1.5 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
[tox]
envlist =
py27,
py37,
pycodestyle
coverage
docs,
[testenv]
commands =
py.test -v tests
[py]
deps=
-r requirements.txt
mock
requests_mock
pytest
pytest-pylint
pytest-cov
[pep8]
show-source=True
statistics=True
exclude=.svn,CVS,.bzr,.hg,.git,__pycache__,.tox,setup.py,docs
[testenv:py27]
deps=
{[py]deps}
basepython = python2.7
commands = python -m pytest -v --cov=pubtools --cov-report=html
[testenv:py37]
deps=
{[py]deps}
basepython = python3.7
commands = python -m pytest -v --cov=pubtools --cov-report=html
[testenv:pypy]
deps=
{[py]deps}
basepython = pypy
[testenv:pypy3]
deps=
{[py]deps}
basepython = pypy3
[testenv:pycodestyle]
deps=
{[py]deps}
pycodestyle
black
basepython = python3.7
commands =
pycodestyle --config=.pycodestyle --first pubtools
black --check .
exclude=.svn,cvs,.bzr,.hg,.git,__pycache__,.tox,setup.py,docs
[testenv:pydocstyle]
deps=
pydocstyle
commands = pydocstyle pubtools
basepython = python3.7
exclude=.svn,CVS,.bzr,.hg,.git,__pycache__,.tox,setup.py,docs
[testenv:docs]
deps=
Sphinx
sphinx_rtd_theme
sphinx-argparse
commands = python setup.py build_sphinx
[testenv:coverage]
deps=
coverage
commands = coverage report --fail-under 98
[testenv:cov-travis]
passenv = TRAVIS TRAVIS_*
deps=
{[py]deps}
pytest-cov
coveralls
usedevelop=true
commands=
pytest --cov=pubtools {posargs}
coveralls
[testenv:pidiff]
deps=pidiff
skip_install=true
commands=pidiff pubtools-iib .