manila-image-elements/tox.ini
Alexey Ovchinnikov b8ce11524a Add tox job for building Docker image
Add new job 'buildimage-docker' which produces a compressed
image from which a Docker container can be started. This
container is designed to run Samba.

Change-Id: I499fa1850d3ad197cab5f742bfca1a9f074e9a8b
2016-04-15 15:09:07 +03:00

45 lines
869 B
INI

[tox]
envlist = pep8
minversion = 1.6
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
[testenv:bashate]
whitelist_externals = bash
commands = {toxinidir}/tools/run_bashate.sh
[testenv:docs]
commands = python setup.py build_sphinx
[testenv:pep8]
commands =
flake8 {posargs}
{toxinidir}/tools/run_bashate.sh
[testenv:venv]
commands = {posargs}
[testenv:buildimage]
commands = manila-image-create
deps =
-r{toxinidir}/requirements.txt
[testenv:buildimage-docker]
commands = {toxinidir}/tools/docker_builder.sh
[testenv:buildimage-lxd]
commands = manila-image-create lxd
[flake8]
show-source = true
builtins = _
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools