-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
52 lines (43 loc) · 1.38 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
[tox]
envlist = clean, flake8, py27, py34, docs, build, coverage
minversion = 1.9
skipsdist = True
skip_missing_interpreters = true
toxworkdir = /tmp/tox/loadconfig
[testenv]
# Uncomment the following lines to enable pip debugging
# setenv =
# PIP_VERBOSE=1
# PIP_LOG={toxinidir}/pip.log
[testenv:clean]
commands = /usr/bin/env rm -rf .coverage coverage
[flake8]
exclude = .git
ignore = H102,E113,E121,E127,E128,H202,H301,H304,H405,H803
[testenv:flake8]
deps = -rtests/test_requirements.txt
commands = flake8 {toxinidir}
[testenv:py27]
deps = -rrequirements.txt
-rtests/test_requirements.txt
commands = py.test -c tests/pytest.ini {posargs}
[testenv:py34]
deps = -rrequirements.txt
-rtests/test_requirements.txt
commands = py.test -c tests/pytest.ini {posargs}
[testenv:docs]
basepython=python2
deps = -rrequirements.txt
-rtests/test_requirements.txt
-rdocs/doc_requirements.txt
commands = sphinx-build -E -b doctest docs {toxworkdir}/docs
sphinx-build -E -d {toxworkdir}/docs docs html
sphinx-build -E -b pdf -d {toxworkdir}/docs docs pdf
[testenv:build]
deps = -rrequirements.txt
wheel==0.24.0
pbr==0.10.8
commands = pip wheel {toxinidir}
[testenv:coverage]
deps = -rtests/test_requirements.txt
commands = coverage html -d coverage