Files
95212ac725bf74d8f8257f3e03021097aea786a0
swift /tox.ini

161 lines
4.7 KiB
INI
Raw Normal View History

[testenv]
NOSE_COVER_BRANCHES=1
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/test-requirements.txt
find {envdir} -type d -name "__pycache__" -delete
whitelist_externals = find
deps =
-c{toxinidir}/py2-constraints.txt
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
setenv = VIRTUAL_ENV={envdir}
NOSE_WITH_COVERAGE=1
NOSE_COVER_BRANCHES=1
NOSE_COVER_HTML=1
NOSE_COVER_HTML_DIR={toxinidir}/cover
flake8 {posargs:swift test doc setup.py}
flake8 --filename=swift* bin
python ./setup.py check --restructuredtext --strict
basepython = python3
basepython = python3
basepython = python3
SWIFT_TEST_IN_PROCESS_CONF_LOADER=ec
basepython = python3
SWIFT_TEST_IN_PROCESS_CONF_LOADER=encryption
basepython = python2.7
setenv = SWIFT_TEST_IN_PROCESS=1
SWIFT_TEST_IN_PROCESS_CONF_LOADER=encryption
setenv = SWIFT_TEST_IN_PROCESS=1
SWIFT_TEST_IN_PROCESS_CONF_LOADER=ec
commands = {posargs}
commands = sphinx-build -W -b html doc/source doc/build/html
# This environment is called from CI scripts to test and publish
rm -rf api-ref/build
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
deps = -r{toxinidir}/test-requirements.txt
# H101: Use TODO(NAME)
# H202: assertRaises Exception too broad
# H301: one import per line
# H306: imports not in alphabetical order (time, os)
# H404: multi line docstring should start without a leading new line
# H405: multi line docstring summary not separated with an empty line
# H501: Do not use self.__dict__ for string formatting
# changes to enable:
# E402: module level import not at top of file
# E731 do not assign a lambda expression, use a def
# W503: line break before binary operator
# W504: line break after binary operator
[testenv:bindep]
# Do not install any requirements. We want this to be fast and work even if
# system dependencies are missing, since it's used to tell you what system
# dependencies are missing! This also means that bindep must be installed
# separately, outside of the requirements files.
commands = bindep test
[testenv:releasenotes]
[testenv:lower-constraints]
# FIXME(dhellmann): We'll want to uncomment this
# when the full test suite works with python 3.
# basepython = python3
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
[testenv:pdf-docs]
basepython = python3
deps = {[testenv:docs]deps}
whitelist_externals =
make
commands =
sphinx-build -W -b latex doc/source doc/build/pdf
make -C doc/build/pdf