yatinkarel
4296ccbff3
https://review.opendev.org/#/c/677029/ moved docs to deploy-guide, let's run job to publish these. Change-Id: Ia587e7537c5e0f70f9004ecb2fdb12a784aab3fb
43 lines
1.1 KiB
INI
43 lines
1.1 KiB
INI
[tox]
|
|
minversion = 2.0
|
|
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]
|
|
basepython = python3
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
basepython = python3
|
|
commands =
|
|
sphinx-build -a -E -W -d doc/build/doctrees -b html doc/source doc/build/html
|
|
|
|
[testenv:pep8]
|
|
basepython = python3
|
|
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,*.egg,build
|
|
|
|
[testenv:deploy-guide]
|
|
basepython = python3
|
|
deps =
|
|
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/doc/requirements.txt
|
|
|
|
commands = sphinx-build -a -E -W -d deploy-guide/build/doctrees -b html deploy-guide/source deploy-guide/build/html
|