[tox] minversion = 1.6 envlist = py26,py27,py33,pep8 skipsdist = True [testenv] install_command = pip install -U {opts} {packages} setenv = VIRTUAL_ENV={envdir} deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt commands = python setup.py testr --slowest --testr-args='{posargs}' [tox:jenkins] sitepackages = True downloadcache = ~/cache/pip [testenv:pep8] sitepackages = False commands = flake8 {posargs} [testenv:cover] # Also do not run test_coverage_ext tests while gathering coverage as those # tests conflict with coverage. setenv = VIRTUAL_ENV={envdir} commands = python setup.py testr --coverage \ --testr-args='^(?!.*test.*coverage).*$' [testenv:venv] commands = {posargs} [flake8] # TODO(ogelbukh): enforce H306 # We will be ignoring line length limit until we apply for incubation # E501: line too long # H306: imports not in alphabetical order ignore = E501,H306 exclude = .venv,.git,.tox,dist,lib/python*,*egg,build