Files
charm-cinder-three-par/tox.ini
2021-04-07 14:30:51 +02:00

58 lines
1.4 KiB
INI

[tox]
skipsdist = True
envlist = pep8,py3
# NOTE: Avoid build/test env pollution by not enabling sitepackages.
sitepackages = False
# NOTE: Avoid false positives by not skipping missing interpreters.
skip_missing_interpreters = False
[testenv]
setenv = VIRTUAL_ENV={envdir}
PYTHONHASHSEED=0
CHARM_DIR={envdir}
install_command =
pip install {opts} {packages}
commands = stestr run --slowest {posargs}
passenv = HOME TERM CS_* OS_* TEST_*
deps = -r{toxinidir}/requirements-dev.txt
[testenv:build]
basepython = python3
commands =
charmcraft build --log-level DEBUG -o {toxinidir}/build
[testenv:py3]
basepython = python3
deps = -r{toxinidir}/requirements-dev.txt
commands = stestr run --slowest {posargs}
[testenv:py35]
basepython = python3.5
deps = -r{toxinidir}/requirements-dev.txt
commands = stestr run --slowest {posargs}
[testenv:py36]
basepython = python3.6
deps = -r{toxinidir}/requirements-dev.txt
commands = stestr run --slowest {posargs}
[testenv:py37]
basepython = python3.7
deps = -r{toxinidir}/requirements-dev.txt
commands = stestr run --slowest {posargs}
[testenv:py38]
basepython = python3.8
deps = -r{toxinidir}/requirements-dev.txt
commands = stestr run --slowest {posargs}
[testenv:venv]
basepython = python3
commands = {posargs}
[testenv:pep8]
basepython = python3
# Charmcraft builds with requirements-dev instead of test-requirements
deps = -r{toxinidir}/requirements-dev.txt
commands = flake8 {posargs} src unit_tests