3da7042c24
* Move _custom & _templates at root, so both doc/ and deploy-guide/ can use it. * Update tox.ini to generate deploy-guide. * Very basic structure of deploy-guide. * Removing duplicated _templates parameter from config.py. Change-Id: Id7b4c22d188fd4f2646ec25194767c3a7afa97c7
32 lines
755 B
INI
32 lines
755 B
INI
[tox]
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
envlist = docs,pep8
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/requirements.txt
|
|
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:pep8]
|
|
whitelist_externals = bash
|
|
# We fail pretty horribly on bashate right now
|
|
#commands = bash -c "find scripts -type f | xargs bashate -v"
|
|
# flake8
|
|
commands = flake8
|
|
|
|
[flake8]
|
|
show-source = True
|
|
exclude = .tox,dist,doc,*.egg,build
|
|
|
|
[testenv:deploy-guide]
|
|
commands = sphinx-build -a -E -W -d deploy-guide/build/doctrees -b html deploy-guide/source deploy-guide/build/html
|