RETIRED, Application Data Protection as a Service in OpenStack
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

98 lines
2.6 KiB

minversion = 2.0
envlist = py27,py37,pypy,pep8
skipsdist = True
usedevelop = True
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:} -U {opts} {packages}
setenv =
deps = -r{toxinidir}/test-requirements.txt
whitelist_externals = sh /bin/rm
commands =
/bin/rm -f .testrepository/times.dbm
stestr run {posargs}
stestr slowest
basepython = python2.7
setenv = OS_TEST_PATH=./karbor/tests/fullstack
commands =
oslo-config-generator --config-file etc/oslo-config-generator/karbor.conf --output-file etc/karbor.conf
stestr --test-path=./karbor/tests/fullstack run '{posargs}'
stestr slowest
basepython = python3
commands = flake8
basepython = python3
commands = {posargs}
basepython = python3
setenv =
PYTHON=coverage run --source karbor --parallel-mode
commands =
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report
basepython = python3
whitelist_externals = sh /bin/rm
commands = /bin/rm -rf doc/build
/bin/rm -rf doc/source/contributor/api
python build_sphinx
basepython = python3
commands = oslo_debug_helper -t karbor/tests/unit {posargs}
basepython = python3
# This environment is called from CI scripts to test and publish
# the API Ref to
whitelist_externals = sh /bin/rm
deps = -r{toxinidir}/test-requirements.txt
commands =
/bin/rm -rf api-ref/build
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html/
basepython = python3
commands = sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
basepython = python3
commands = oslo-config-generator --config-file etc/oslo-config-generator/karbor.conf
basepython = python3
commands = oslopolicy-sample-generator --config-file=etc/karbor-policy-generator.conf
show-source = True
ignore =
builtins = _
import_exceptions = karbor.i18n
basepython = python3
deps =