
Move the job definitions in-tree, updating them when needed. This lead to several changes: - update tox.ini and setup.cfg to align it to the newest standards (including newer python classifiers); - no more python 2.x jobs; - bump hacking requirements to make the pep8 job work with the newest python releases; - ignore a few spurious flake8 warnings; - switch to stestr as test runner; - update cryptography dependency. The old barbican simple-crypto job name is still available as an alias for a while, but it is time to switch away from it, so directly use the new job. Depends-On: https://review.opendev.org/771443 Change-Id: Iba7b4106c49e4b492c97097648c7b8f599a2ca4b
59 lines
1.4 KiB
INI
59 lines
1.4 KiB
INI
[tox]
|
|
minversion = 3.1.0
|
|
envlist = py38,py36,pep8
|
|
skipsdist = True
|
|
# this allows tox to infer the base python from the environment name
|
|
# and override any basepython configured in this file
|
|
ignore_basepython_conflict=true
|
|
|
|
[testenv]
|
|
basepython = python3
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
stestr run {posargs}
|
|
stestr slowest
|
|
|
|
[testenv:pep8]
|
|
commands = flake8 {posargs}
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
setenv =
|
|
{[testenv]setenv}
|
|
PYTHON=coverage run --source cinder --parallel-mode
|
|
commands =
|
|
stestr run {posargs}
|
|
coverage combine
|
|
coverage html -d cover
|
|
coverage xml -o cover/coverage.xml
|
|
|
|
[testenv:docs]
|
|
deps =
|
|
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
|
-r{toxinidir}/doc/requirements.txt
|
|
commands =
|
|
rm -fr doc/build/html doc/build/doctrees
|
|
sphinx-build -W -j auto -b html -d doc/build/doctrees doc/source doc/build/html
|
|
whitelist_externals = rm
|
|
|
|
[testenv:releasenotes]
|
|
deps = {[testenv:docs]deps}
|
|
commands =
|
|
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
|
|
|
[testenv:debug]
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
[flake8]
|
|
|
|
show-source = True
|
|
ignore = H301,W504
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|