550fde3c91
Missing conf.py makes gate-bilean-docs fail, this patch fixes this issue, and initialize some docs. Change-Id: I9f74bf4e7391d596a446f21ea4e4bf0247b395ce
43 lines
803 B
INI
43 lines
803 B
INI
[tox]
|
|
minversion = 1.6
|
|
envlist = py34,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 =
|
|
exclude = .venv,.git,.tox,cover,dist,*lib/python*,*egg,tools,build
|
|
max-complexity=20
|
|
|
|
[hacking]
|
|
import_exceptions = bilean.common.i18n
|