45 lines
1.0 KiB
INI
45 lines
1.0 KiB
INI
[tox]
|
|
skipsdist = True
|
|
envlist = pep8,unit-tests
|
|
skip_missing_interpreters = True
|
|
|
|
[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 USER
|
|
install_command =
|
|
pip install {opts} {packages}
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
[testenv:build]
|
|
basepython = python2.7
|
|
commands =
|
|
charm-build --log-level DEBUG -o {toxinidir}/build . {posargs}
|
|
|
|
[testenv:pep8]
|
|
basepython = python3
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
commands = flake8 --exclude build {posargs} .
|
|
|
|
[testenv:unit-tests]
|
|
basepython = python3
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
commands = ostestr {posargs}
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
# E402 ignore necessary for path append before sys module import in actions
|
|
ignore = E402
|
|
|
|
[testenv:charm-proof]
|
|
basepython = python2.7
|
|
toxworkdir = {toxinidir}/build/builds/vault
|
|
commands = charm-proof
|