manila-ui/tox.ini
vponomaryov 9175d98493 Updated requirements and unit tests config
Changes:

1) Updated from global requirements

2) Updated "run_tests.sh" script to be able to run unit tests
using Django 1.8.* removing "--verbosity" opt.

3) Added tox jobs 'py27dj17' and 'py27dj18' to be able to run
unit tests for Django 1.7.* and 1.8.* in separate envs.

Change-Id: I267c8e7a6cb8d67d7331f4f00cb79ad98832d0e7
Closes-Bug: #1496412
2015-09-17 17:38:11 +03:00

56 lines
1.3 KiB
INI

[tox]
minversion = 1.6
envlist = py27,pep8,py27dj14
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=manila_ui.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: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: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