eb4fcd7bf0
Doc requirements are not needed for unit test runs. This moves doc requirements into the recommended doc/requirements.txt location and updates the tox target to pull from there. Change-Id: I06761a6090d64ae1be5065727f7f56ede14c8d13 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
41 lines
1.1 KiB
INI
41 lines
1.1 KiB
INI
[tox]
|
|
envlist = docs,linters,py35,py37
|
|
minversion = 3.1.0
|
|
skipsdist = True
|
|
ignore_basepython_conflict=true
|
|
|
|
[testenv]
|
|
basepython = python3
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
# NOTE: If py35 fails with "db type could not be determined", delete
|
|
# .testrepository and try again. Running py35 before py27 is OK, but not the
|
|
# other way around. See: https://bugs.launchpad.net/testrepository/+bug/1212909
|
|
commands = stestr run --slowest {posargs}
|
|
|
|
[testenv:linters]
|
|
commands = yamllint configuration.yaml
|
|
flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
deps =
|
|
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/doc/requirements.txt
|
|
commands = sphinx-build -v -W -b html -d doc/build/doctrees doc/source doc/build/html
|
|
|
|
[testenv:ci-checks-review]
|
|
commands = ci-check-all-candidate-files -v -v {posargs:--HEAD}
|
|
|
|
[testenv:ci-checks-election]
|
|
commands = ci-check-all-candidate-files
|
|
|
|
[flake8]
|
|
exclude=.tox,doc/source/conf.py
|