trove-dashboard/tox.ini
Duk Loi 66c6a2ad58 Remove install of horizon from test-requirements
The entry to install horizon in the test requirements is problematic
when installing in devstack.  Users have reported issues with
multiple requirements for horizon or a problem with not being able
to access git on some machines to pull down the horizon code.

However, the tox tests still require the horizon code so that the
unit tests can run against the horizon code.

The solution is to remove the horizon entry in the
test-requirements.txt.

Also added the pip-install.sh script (which is "borrowed" from
Sahara to which we express our most heartfelt thanks) to perform the
pip install along with the pull of the horizon code from git.

Finally, invoked the pip-install.sh script in the tox.ini file.

Change-Id: Idb5edf32a461ada99aa1f189635ef34e9cbe1a58
Closes-Bug: #1562081
2016-03-25 21:21:28 -04:00

55 lines
1.4 KiB
INI

[tox]
minversion = 1.6
envlist = py27,pep8,py27dj17
skipsdist = True
[testenv]
usedevelop = True
install_command = {toxinidir}/tools/pip_install.sh unconstrained {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=trove_dashboard.test.settings
[testenv:pep8]
commands = flake8
[testenv:venv]
commands = {posargs}
[testenv:py27dj17]
basepython = python2.7
commands = pip install django>=1.7,<1.8
/bin/bash run_tests.sh -N --no-pep8 {posargs}
# Django-1.8 is LTS
[testenv:py27dj18]
basepython = python2.7
commands = pip install django>=1.8,<1.9
/bin/bash run_tests.sh -N --no-pep8 {posargs}
[testenv:py27integration]
basepython = python2.7
commands = /bin/bash run_tests.sh -N --integration --selenium-headless {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
# E123, E125 skipped as they are invalid PEP-8.
# H405 multi line docstring summary not separated with an empty line
ignore = E123,E125,H405
builtins = _
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,.ropeproject,tools