Frode Nordahl 96b969b6c0
Add gate jobs
Set ``toxworkdir`` to avoud charm-tools build recursion.

Change-Id: Ia9ed0f5e8e17d9d0ffdf3e650c76f2c36938244d
2019-03-04 10:41:20 +01:00

32 lines
706 B
INI

[tox]
skipsdist = True
envlist = pep8
toxworkdir = /tmp/tox
[testenv]
basepython = python3
setenv = VIRTUAL_ENV={envdir}
PYTHONHASHSEED=0
TERM=linux
JUJU_REPOSITORY={envdir}/tmp/build
passenv = http_proxy https_proxy
install_command =
pip install {opts} {packages}
deps =
-r{toxinidir}/requirements.txt
whitelist_externals = /bin/true /bin/echo /bin/mkdir
[testenv:build]
commands =
/bin/echo 'WARNING: *build* target is for testing only.'
/bin/mkdir -p {envdir}/tmp
charm-build --log-level DEBUG -o {envdir}/tmp/build .
[testenv:venv]
basepython = python3
commands = {posargs}
[testenv:pep8]
basepython = python3
commands = flake8 --ignore=E402 actions/ reactive/