Add empty series list to metadata.yaml to get around charm-tools now mandating a series list to be present. This list will always be overridden by charms but building the layer is part of our gate and we need to unblock it. Update tox basepython, the build will no longer succeed in the gate with py27. Change-Id: If81441d5fb0ed3b8819c4a2814dc20c5e47a8eff
61 lines
1.7 KiB
INI
61 lines
1.7 KiB
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 /bin/ln
|
|
|
|
[testenv:build]
|
|
# ``charm build`` refuses to output to a subdirectory to the source tree
|
|
# The gate check will look for and validate the built artifacts in the source
|
|
# tree.
|
|
# Build the artifats under /tmp and link back to source directory to alleviate.
|
|
commands =
|
|
/bin/echo 'WARNING: *build* target is for testing only.'
|
|
/bin/mkdir -p {envdir}/tmp
|
|
charm-build --log-level DEBUG -o {envdir}/tmp/build .
|
|
/bin/ln -s {envdir}/tmp/build/builds {envdir}/tmp/build/trusty
|
|
/bin/ln -s {envdir}/tmp/build {toxinidir}/build
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:py27]
|
|
basepython = python2.7
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
# TODO: Need to write unit tests then remove the following command.
|
|
commands = /bin/true
|
|
|
|
[testenv:py34]
|
|
basepython = python3.4
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
# TODO: Need to write unit tests then remove the following command.
|
|
commands = /bin/true
|
|
|
|
[testenv:py35]
|
|
basepython = python3.5
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
# TODO: Need to write unit tests then remove the following command.
|
|
commands = /bin/true
|
|
|
|
[testenv:py36]
|
|
basepython = python3.6
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
# TODO: Need to write unit tests then remove the following command.
|
|
commands = /bin/true
|
|
|
|
[testenv:pep8]
|
|
basepython = python3
|
|
commands = flake8 --ignore=E402 actions/ reactive/
|