-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
61 lines (51 loc) · 1.45 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
[tox]
envlist = lint2,lint3,py27,py34,py35,py36,docs
minversion = 2.0
toxworkdir = build/tox
distdir = build/dist
[testenv]
passenv = PYTEST_ADDOPTS
deps =
pytest
pytest-cov
pytest-xdist
[testenv:py27]
basepython = python2.7
commands = pytest {posargs:--cov=python2.shared --cov=python2.server \
tests/shared/ tests/server/}
[testenv:py34]
basepython = python3.4
commands = pytest {posargs:--cov=python2.shared --cov=python2.client \
tests/shared/ tests/client/}
[testenv:py35]
basepython = python3.5
commands = pytest {posargs:--cov=python2.shared --cov=python2.client \
tests/shared/ tests/client/}
[testenv:py36]
basepython = python3.6
commands = pytest {posargs:--cov=python2.shared --cov=python2.client \
tests/shared/ tests/client/}
[testenv:lint2]
basepython = python2
skip_install = True
deps = flake8
commands = flake8 python2/shared/ python2/server/ tests/shared/ tests/server/
[testenv:lint3]
basepython = python3
skip_install = True
deps = flake8
commands = flake8 python2/shared/ python2/client/ \
tests/shared/ tests/client/ tests/integration
[testenv:docs]
basepython = python3
skip_install = True
deps = docutils
; Test that the README/CHANGELOG are valid RST
; To actually generate HTML, use the docs.sh script
commands =
rst2html.py --report=info --exit-status=warning README.rst /dev/null
rst2html.py --report=info --exit-status=warning CHANGES.rst /dev/null
[pytest]
testpaths = tests/
[coverage:run]
branch = True