senlin-tempest-plugin/tox.ini
Doug Hellmann 69945d380b fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: Idc642095f5248afa2ce093a3eb02086c85267f1d
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 19:00:46 -04:00

61 lines
1.9 KiB
INI
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[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.api.*' {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 --regex 'senlin_tempest_plugin.tests.functional.*' {posargs}
whitelist_externals = find
[testenv:pep8]
basepython = python3
commands =
flake8 senlin_tempest_plugin
[testenv:venv]
basepython = python3
commands = {posargs}
[testenv:releasenotes]
basepython = python3
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 Dont 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,I201
enable-extensions=H106,H203
show-source = true
exclude=.venv,.git,.tox,*lib/python*,*egg,tools,build,releasenotes
max-complexity=10