4ba2cec05f
Change-Id: I6c2e24c7ee64a94d85f4359d0a1dacf90a22d61b
58 lines
1.8 KiB
INI
58 lines
1.8 KiB
INI
[tox]
|
||
minversion = 2.0
|
||
envlist = py35,py27,pep8,api,functional
|
||
skipsdist = True
|
||
|
||
[testenv]
|
||
deps = -r{toxinidir}/test-requirements.txt
|
||
usedevelop = True
|
||
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
||
commands =
|
||
find . -type f -name "*.py[c|o]" -delete
|
||
ostestr --slowest --regex 'senlin_tempest_plugin.tests.api.*' {posargs}
|
||
|
||
whitelist_externals = find
|
||
|
||
[testenv:api]
|
||
basepython = python3.5
|
||
setenv = VIRTUAL_ENV={envdir}
|
||
PYTHONHASHSEED=0
|
||
OS_TEST_PATH=senlin_tempest_plugin/api
|
||
commands =
|
||
find . -type f -name "*.py[c|o]" -delete
|
||
ostestr --slowest --regex 'senlin_tempest_plugin.tests.functional.*' {posargs}
|
||
|
||
[testenv:functional]
|
||
basepython = python3.5
|
||
setenv = VIRTUAL_ENV={envdir}
|
||
PYTHONHASHSEED=0
|
||
OS_TEST_PATH=senlin_tempest_plugin/functional
|
||
# By default ostestr will set concurrency to ncpu, to specify something else
|
||
# use the concurrency=<n> option.
|
||
# e.g.: 'tox -efunctional -- --concurrency=4'
|
||
commands =
|
||
find . -type f -name "*.py[c|o]" -delete
|
||
ostestr --slowest {posargs}
|
||
|
||
whitelist_externals = find
|
||
|
||
[testenv:pep8]
|
||
commands =
|
||
flake8 senlin_tempest_plugin
|
||
|
||
[testenv:venv]
|
||
commands = {posargs}
|
||
|
||
[testenv:releasenotes]
|
||
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
||
|
||
[flake8]
|
||
# Temporarily disable complaints about docstring for public module/class/method
|
||
# H106 Don’t put vim configuration in source files
|
||
# H203 Use assertIs(Not)None to check for None
|
||
ignore = D100,D101,D102,D103,D104,D105,D200,D201,D202,D204,D205,D300,D301,D400,D401,I100
|
||
enable-extensions=H106,H203
|
||
show-source = true
|
||
exclude=.venv,.git,.tox,*lib/python*,*egg,tools,build,releasenotes
|
||
max-complexity=10
|