539d53cf31
There is not *openstack/common* directory in mistral-dashboard, we should drop it for improving searching efficiency. Change-Id: I0f41e65e78e082cdd0f637ab07fb872b1b195a86
57 lines
1.4 KiB
INI
57 lines
1.4 KiB
INI
[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 =
|
|
find . -type f -name "*.pyc" -delete
|
|
/bin/bash run_tests.sh -N --no-pep8 {posargs}
|
|
whitelist_externals = find
|
|
|
|
[testenv:py27]
|
|
setenv = DJANGO_SETTINGS_MODULE=mistraldashboard.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
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,.ropeproject,tools
|
|
|
|
[testenv:releasenotes]
|
|
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|