-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
64 lines (52 loc) · 1.01 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
[tox]
envlist = py27, py33, py34, py35, pypy, pypy3, flake8, coverage
[pytest]
addopts = -n8 -vv
[testenv]
deps =
-r{toxinidir}/requirements.txt
pytest
pytest-xdist
pytest-travis-fold
setenv =
PYTHONPATH={toxinidir}/tests
PYTHONUNBUFFERED=yes
passenv =
*
usedevelop = true
commands =
py.test {posargs}
[testenv:coverage]
basepython = python2.7
deps =
{[testenv]deps}
pytest-cov
coveralls
commands =
python setup.py clean --all build_ext --force --inplace
py.test --cov-report xml --cov pwgrep --junitxml=junit-{envname}.xml {posargs}
[testenv:flake8]
basepython = python2.7
deps =
{[testenv]deps}
flake8
commands =
flake8 pwgrep
[testenv:pydocstyle]
basepython = python2.7
deps =
{[testenv]deps}
pydocstyle
commands =
pydocstyle pwgrep
[flake8]
exclude = .svn,CVS,.bzr,.hg,.git,__pycache,.ropeproject
[testenv:coveralls]
deps =
coveralls
skip_install = true
usedevelop = false
commands =
coverage combine
coverage report
coveralls []