|
|
@ -1,9 +1,14 @@ |
|
|
|
[tox] |
|
|
|
minversion = 2.0 |
|
|
|
envlist = py27,py37,pep8 |
|
|
|
minversion = 3.1.0 |
|
|
|
envlist = py37,pep8 |
|
|
|
skipsdist = True |
|
|
|
# Automatic envs (pyXX) will only use the python version appropriate to that |
|
|
|
# env and ignore basepython inherited from [testenv] if we set |
|
|
|
# ignore_basepython_conflict. |
|
|
|
ignore_basepython_conflict = True |
|
|
|
|
|
|
|
[testenv] |
|
|
|
basepython = python3 |
|
|
|
usedevelop = True |
|
|
|
install_command = pip install {opts} {packages} |
|
|
|
# Install also sitemap scraping tool, not installed by default |
|
|
@ -15,7 +20,6 @@ deps = scrapy>=1.0.0 |
|
|
|
commands = stestr run --slowest {posargs} |
|
|
|
|
|
|
|
[testenv:pep8] |
|
|
|
basepython = python3 |
|
|
|
commands = |
|
|
|
flake8 |
|
|
|
# Run doc8 to check .rst and .txt files. |
|
|
@ -27,7 +31,6 @@ commands = |
|
|
|
bashate bin/doc-tools-check-languages bin/doc-tools-build-rst |
|
|
|
|
|
|
|
[testenv:releasenotes] |
|
|
|
basepython = python3 |
|
|
|
commands = |
|
|
|
sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html |
|
|
|
|
|
|
@ -35,11 +38,9 @@ commands = |
|
|
|
# commands = functional test command goes here |
|
|
|
|
|
|
|
[testenv:venv] |
|
|
|
basepython = python3 |
|
|
|
commands = {posargs} |
|
|
|
|
|
|
|
[testenv:docs] |
|
|
|
basepython = python3 |
|
|
|
commands = |
|
|
|
sphinx-build -W --keep-going -b html -d doc/build/doctrees doc/source doc/build/html |
|
|
|
|
|
|
@ -50,7 +51,6 @@ commands = |
|
|
|
# separately, outside of the requirements files, and develop mode disabled |
|
|
|
# explicitly to avoid unnecessarily installing the checked-out repo too (this |
|
|
|
# further relies on "tox.skipsdist = True" above). |
|
|
|
basepython = python3 |
|
|
|
deps = bindep |
|
|
|
commands = bindep test |
|
|
|
usedevelop = False |
|
|
@ -64,7 +64,6 @@ max-complexity=29 |
|
|
|
ignore = H101 |
|
|
|
|
|
|
|
[testenv:lower-constraints] |
|
|
|
basepython = python3 |
|
|
|
# Install also sitemap scraping tool, not installed by default |
|
|
|
# therefore not in requirements file |
|
|
|
deps = |
|
|
|