openstackclient/tox.ini

45 lines
1019 B
INI

[tox]
minversion = 3.1.1
envlist = py27,py37,pep8,docs
[testenv]
deps = -r{toxinidir}/test-requirements.txt
commands = stestr run --slowest {posargs}
[testenv:pep8]
basepython = python3
deps=-r{toxinidir}/test-requirements.txt
commands =
flake8
[testenv:venv]
basepython = python3
commands = {posargs}
[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:osc_plugins]
basepython = python2.7
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
-r{toxinidir}/requirements.txt
../../x/pbrx
whitelist_externals =
bash
commands =
# bash wrapper is required to handle a subshell of find.
bash ./tests/install-siblings.sh
pbr freeze
openstack --version
python tests/check_osc_commands.py
[flake8]
ignore = E123,H405
show-source = True
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,__init__.py