45 lines
1.1 KiB
INI
45 lines
1.1 KiB
INI
# Source charm: ./tox.ini
|
|
# This file is managed centrally by release-tools and should not be modified
|
|
# within individual charm repos.
|
|
[tox]
|
|
envlist = pep8,py37
|
|
skipsdist = True
|
|
# NOTE(beisner): Avoid build/test env pollution by not enabling sitepackages.
|
|
sitepackages = False
|
|
# NOTE(beisner): Avoid false positives by not skipping missing interpreters.
|
|
skip_missing_interpreters = False
|
|
|
|
[testenv]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
PYTHONHASHSEED=0
|
|
TERM=linux
|
|
LAYER_PATH={toxinidir}/layers
|
|
INTERFACE_PATH={toxinidir}/interfaces
|
|
JUJU_REPOSITORY={toxinidir}/build
|
|
passenv = http_proxy https_proxy
|
|
install_command =
|
|
pip install {opts} {packages}
|
|
|
|
[testenv:build]
|
|
basepython = python3
|
|
commands =
|
|
charm-build --log-level DEBUG -o {toxinidir}/build src {posargs}
|
|
|
|
[testenv:py35]
|
|
basepython = python3.5
|
|
whitelist_externals = true
|
|
commands = true
|
|
|
|
[testenv:pep8]
|
|
basepython = python3
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
commands = flake8 {posargs} hooks
|
|
|
|
[testenv:venv]
|
|
basepython = python3
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
ignore = E402,E226
|
|
exclude = */charmhelpers
|