[tox] minversion = 1.6 envlist = pep8,py27,py27dj14,py27dj15,py27dj16 skipsdist = True [testenv] usedevelop = True install_command = pip install -U {opts} {packages} setenv = VIRTUAL_ENV={envdir} deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt commands = /bin/bash run_tests.sh -N --no-pep8 {posargs} [testenv:py27] setenv = DJANGO_SETTINGS_MODULE=spanner.test.settings [testenv:pep8] commands = flake8 [testenv:venv] commands = {posargs} [testenv:py27dj14] basepython = python2.7 commands = pip install django>=1.4,<1.5 /bin/bash run_tests.sh -N --no-pep8 {posargs} [testenv:py27dj15] basepython = python2.7 commands = pip install django>=1.5,<1.6 /bin/bash run_tests.sh -N --no-pep8 {posargs} [testenv:py27dj16] basepython = python2.7 commands = pip install django>=1.6,<1.7 /bin/bash run_tests.sh -N --no-pep8 {posargs} [testenv:cover] commands = python setup.py testr --coverage --testr-args='{posargs}' [testenv:docs] commands = python setup.py build_sphinx [testenv:debug] commands = oslo_debug_helper {posargs} [flake8] show-source = True builtins = _ exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,.ropeproject,tools