4
envlist = py27, py3, py3-flake8, py3-pylint, py27-pylint, trusty-check, trusty-py27, trusty-py3
7
downloadcache = ~/cache/pip
11
# LC_ALL see https://github.com/gabrielfalcao/HTTPretty/issues/223
12
setenv = VIRTUAL_ENV={envdir}
14
deps = -r{toxinidir}/test-requirements.txt
15
-r{toxinidir}/requirements.txt
16
commands = {envpython} {toxinidir}/tools/noproxy nosetests \
17
{posargs:--with-coverage --cover-erase --cover-branches \
18
--cover-package=curtin --cover-inclusive tests/unittests}
24
basepython = python2.7
26
# tox uses '--pre' by default to pip install. We don't want that, and
27
# 'pip_pre=False' isn't available until tox version 1.9.
28
install_command = pip install {opts} {packages}
32
deps = {[testenv]deps}
34
commands = {envpython} -m flake8 {posargs:curtin}
38
deps = {[testenv]deps}
40
commands = {envpython} -m flake8 {posargs:curtin tests/}
43
# set basepython because tox 1.6 (trusty) does not support generated environments
45
deps = {[testenv]deps}
48
commands = {envpython} -m pylint --errors-only {posargs:curtin tests/vmtests}
51
# set basepython because tox 1.6 (trusty) does not support generated environments
52
basepython = python2.7
53
deps = {[testenv]deps}
55
commands = {envpython} -m pylint --errors-only {posargs:curtin}
58
deps = {[testenv]deps}
62
sphinx-build -b html -d doc/_build/doctrees doc/ doc/_build/html
65
# this environment provides roughly a trusty build environment where
66
# where 'make check' is run during package build. This protects against
67
# package build errors on trusty where pep8 and pyflakes there have subtly
68
# different behavior. Note, we do only run pyflakes3, though.
69
deps = pyflakes==0.8.1
76
[testenv:trusty-check]
77
deps = {[testenv:trusty]deps}
80
{toxinidir}/tools/run-pyflakes3 {posargs}
83
deps = {[testenv:trusty]deps}
84
basepython = python2.7
85
commands = {envpython} {toxinidir}/tools/noproxy nosetests \
86
{posargs:tests/unittests}
89
deps = {[testenv:trusty]deps}
91
commands = {envpython} {toxinidir}/tools/noproxy nosetests \
92
{posargs:tests/unittests}
94
[testenv:tip-pycodestyle]
95
commands = {envpython} -m pycodestyle {posargs:curtin/ tests/ tools/}
98
[testenv:tip-pyflakes]
99
commands = {envpython} -m pyflakes {posargs:curtin/ tests/ tools/}
104
exclude = .venv,.bzr,.tox,dist,doc,*lib/python*,*egg,build