specs/tox.ini
Chris Friesen 6b6a3407b7 Build docs by default as part of tox
Since most people will want to build the docs for the specs to verify
formatting, change the defaults so that just running "tox" will build
both linters and docs.

Change-Id: I59f0974af2d978461080913711ec782a5175f901
2018-10-15 13:26:27 -06:00

30 lines
752 B
INI

[tox]
envlist = linters,docs
minversion = 2.3
skipsdist = True
[testenv]
basepython = python3
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
OS_STDOUT_CAPTURE=1
OS_STDERR_CAPTURE=1
OS_TEST_TIMEOUT=60
deps = -r{toxinidir}/test-requirements.txt
[testenv:docs]
basepython = python3
deps = -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -a -E -W -d doc/build/doctrees -b html doc/source doc/build/html
[testenv:linters]
whitelist_externals = bash
commands =
bash -c "find {toxinidir} \
\( -name .tox -prune \) \
-o -type f -name '*.yaml' \
-print0 | xargs -0 yamllint"
[testenv:venv]
commands = {posargs}