manila-image-elements/tox.ini
vponomaryov a07f17734e Fix buildimage job
Job named "buildimage" fails with following error:

E: Package 'kpartx' has no installation candidate

So, execute "apt-get update" before required dependencies installation.
Also, do not install dependencies specified in 'test-requirements.txt'
as redundant.

Change-Id: Ic4beaa6be81eb50bafa1dd029722ec84288e6f20
Closes-Bug: #1537011
2016-01-25 15:48:13 +02:00

39 lines
732 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
[flake8]
show-source = true
builtins = _
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools