manila-image-elements/tox.ini
George Melikov 36584b81dd Pass env vars into tox buildimage sections
Change-Id: Ia447d5fef7dd09ad6a68c6516a07306f314247e1
Signed-off-by: George Melikov <mail@gmelikov.ru>
2020-05-20 12:54:52 +03:00

52 lines
1.2 KiB
INI

[tox]
envlist = pep8
minversion = 1.6
skipsdist = True
[testenv]
basepython = python3
usedevelop = True
setenv =
VIRTUAL_ENV={envdir}
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
[testenv:bashate]
whitelist_externals = bash
commands = {toxinidir}/tools/run_bashate.sh
[testenv:docs]
commands = sphinx-build -W -d doc/build/doctrees -b html doc/source/ doc/build/html
[testenv:pep8]
commands =
flake8 {posargs}
{toxinidir}/tools/run_bashate.sh
[testenv:venv]
commands = {posargs}
[testenv:buildimage]
commands = manila-image-create {posargs}
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
passenv = *
[testenv:buildimage-docker]
commands = {toxinidir}/tools/docker_builder.sh
passenv = *
[flake8]
show-source = true
builtins = _
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools
[testenv:lower-constraints]
deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt