2013-01-24 17:42:57 +00:00
[tox]
2015-12-26 07:54:26 +00:00
envlist = py34,py27,pep8
2013-12-09 14:23:46 +00:00
minversion = 1.6
skipsdist = True
2013-01-24 17:42:57 +00:00
[testenv]
2013-12-09 14:23:46 +00:00
usedevelop = True
2013-12-11 16:50:02 +00:00
install_command = pip install -U {opts} {packages}
2014-01-16 08:43:21 +00:00
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
2013-01-24 17:42:57 +00:00
commands =
2013-09-30 07:56:33 +00:00
python setup.py testr --slowest --testr-args = '{posargs}'
Refactor: block-device handling (local loop)
Block device handling can be somewhat complex - especially
when taking things like md, lvm or encryption into account.
This patch factors out the creation and deletion of the local
loop image device handling into a python library.
The main propose of this patch is to implement the needed
infrastructure. Based on this, more advanced functions can be added.
Example: (advanced) partitioning, LVM, handling different boot
scenarios (BIOS, UEFI, ...), possibility of handling multiple images
(local loop image, iSCSI, physical hard disk, ...), handling of
different filesystems for different partitions / LVs.
Change-Id: Ib626b36a00f8a5dc3dbde8df3e2619a2438eaaf1
Signed-off-by: Andreas Florath <andreas@florath.net>
2016-05-21 19:32:35 +00:00
passenv = ELEMENTS_PATH DIB_RELEASE DIB_DEBUG_TRACE DIB_DEV_USER_USERNAME DIB_DEV_USER_PWDLESS_SUDO DIB_DEV_USER_PASSWORD USER HOME http_proxy https_proxy
2013-01-24 17:42:57 +00:00
[testenv:pep8]
2013-06-20 05:32:55 +00:00
commands =
flake8 {posargs}
2014-03-20 01:56:27 +00:00
dib-lint
2013-01-24 17:42:57 +00:00
[testenv:venv]
commands = {posargs}
2015-09-30 09:55:40 +00:00
[testenv:func]
envdir = {toxworkdir}/venv
commands = {toxinidir}/tests/run_functests.sh {posargs}
2013-01-24 17:42:57 +00:00
[testenv:cover]
setenv = PYTHON=coverage run --source diskimage_builder
commands = bash -c 'if [ ! -d ./.testrepository ] ; then testr init ; fi'
bash -c 'testr run --parallel ; RET = $? ; coverage combine ; coverage html -d ./cover $OMIT && exit $RET'
2015-02-09 20:58:58 +00:00
[testenv:docs]
commands = python setup.py build_sphinx
2016-03-14 03:29:28 +00:00
[testenv:releasenotes]
commands = sphinx-build -a -W -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
2013-06-20 05:32:55 +00:00
[flake8]
2014-11-17 12:19:56 +00:00
ignore = E125,H202,H302,H803
2015-02-07 10:30:02 +00:00
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,conf.py