2014-06-10 18:41:02 +07:00
|
|
|
[tox]
|
|
|
|
minversion = 1.6
|
2015-07-05 23:07:08 +08:00
|
|
|
envlist = pep8,py27,py27dj14,py27dj15,py27dj16
|
2014-06-10 18:41:02 +07:00
|
|
|
skipsdist = True
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
usedevelop = True
|
2015-07-05 23:07:08 +08:00
|
|
|
install_command = pip install -U {opts} {packages}
|
|
|
|
setenv =
|
|
|
|
VIRTUAL_ENV={envdir}
|
2014-06-10 18:41:02 +07:00
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
2015-12-08 14:16:03 +09:00
|
|
|
commands =
|
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
/bin/bash run_tests.sh -N --no-pep8 {posargs}
|
|
|
|
whitelist_externals = find
|
2015-07-05 23:07:08 +08:00
|
|
|
|
|
|
|
[testenv:py27]
|
|
|
|
setenv = DJANGO_SETTINGS_MODULE=mistraldashboard.test.settings
|
2014-06-10 18:41:02 +07:00
|
|
|
|
|
|
|
[testenv:pep8]
|
2015-07-05 23:07:08 +08:00
|
|
|
commands = flake8
|
2014-06-10 18:41:02 +07:00
|
|
|
|
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
|
|
|
|
2015-07-05 23:07:08 +08:00
|
|
|
[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}'
|
|
|
|
|
2014-06-10 18:41:02 +07:00
|
|
|
[testenv:docs]
|
|
|
|
commands = python setup.py build_sphinx
|
|
|
|
|
2015-07-05 23:07:08 +08:00
|
|
|
[testenv:debug]
|
|
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
|
2014-06-10 18:41:02 +07:00
|
|
|
[flake8]
|
2015-07-05 23:07:08 +08:00
|
|
|
show-source = True
|
2016-11-05 19:06:21 +05:30
|
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,.ropeproject,tools
|
2016-10-05 12:04:11 +05:30
|
|
|
|
|
|
|
[testenv:releasenotes]
|
|
|
|
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|