mistral-dashboard/tox.ini
Jeremy Liu 24852cd0b3 Fix oslo_debug_helper not running
Specify test directory so that tox won't complain
`ImportError: Start directory is not importable`.
Also fix a warning when running debug.

Change-Id: I7111c553bef110130abcd23f1e402d35868e3852
Closes-Bug: #1666560
2017-03-05 21:22:36 +08:00

44 lines
1.2 KiB
INI

[tox]
minversion = 1.6
envlist = pep8,py27
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
http://tarballs.openstack.org/horizon/horizon-master.tar.gz
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:cover]
commands = python setup.py testr --coverage --testr-args='{posargs}'
[testenv:docs]
commands = python setup.py build_sphinx
[testenv:debug]
whitelist_externals = oslo_debug_helper
commands = oslo_debug_helper -t mistraldashboard/test {posargs}
[flake8]
show-source = True
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,.ropeproject,tools,horizon
[testenv:releasenotes]
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html