bilean/tox.ini
lvdongbing 6f880c827b Remove sqlite_db in set_defaults()
Config option sqlite_db was removed from oslo.db[1].  Unit tests will be
failed if this argument is set, so we shouldn't set its default value.

[1]cc64f70105

Change-Id: I0f84690a538544a76d2ee536e2c6378d91055528
2017-06-22 15:27:30 +08:00

43 lines
813 B
INI

[tox]
minversion = 1.6
envlist = py35,py27,pep8
skipsdist = True
[testenv]
usedevelop = True
setenv = VIRTUAL_ENV={envdir}
PYTHONHASHSEED=0
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
install_command = pip install {opts} {packages}
commands =
find . -type f -name "*.pyc" -delete
ostestr --slowest {posargs}
whitelist_externals = bash
find
[testenv:pep8]
commands =
flake8 {posargs}
[testenv:genconfig]
envdir = {toxworkdir}/venv
commands =
{toxinidir}/tools/gen-config
[testenv:venv]
commands = {posargs}
[testenv:docs]
commands = python setup.py build_sphinx
[flake8]
ignore = E731, E402
exclude = .venv,.git,.tox,cover,dist,*lib/python*,*egg,tools,build
max-complexity=20
[hacking]
import_exceptions = bilean.common.i18n