9df4c8c868
When a development environment is under a proxy, tox is failed even if environment variables of the proxy are set. This patch fix this problem. Change-Id: I24ca2f991832e5a0689c1051b60caf949d8225a1
49 lines
1.3 KiB
INI
49 lines
1.3 KiB
INI
[tox]
|
|
envlist = py27,py34,pep8,func
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/plugin-requirements.txt
|
|
commands =
|
|
coverage run --branch --include "ironic_inspector*" -m unittest discover ironic_inspector.test
|
|
coverage run --branch --include "ironic_inspector_ramdisk*" -a -m unittest discover ironic_inspector_ramdisk.test
|
|
coverage report -m --fail-under 90
|
|
setenv = PYTHONDONTWRITEBYTECODE=1
|
|
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
|
|
|
[testenv:pep8]
|
|
basepython = python2.7
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/plugin-requirements.txt
|
|
commands =
|
|
flake8 ironic_inspector ironic_inspector_ramdisk
|
|
doc8 README.rst CONTRIBUTING.rst HTTP-API.rst
|
|
|
|
[flake8]
|
|
max-complexity=15
|
|
|
|
[hacking]
|
|
import_exceptions = ironicclient.exceptions,ironic_inspector.common.i18n
|
|
|
|
[testenv:func]
|
|
basepython = python2.7
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/plugin-requirements.txt
|
|
commands =
|
|
python functest/run.py
|
|
|
|
[testenv:genconfig]
|
|
commands =
|
|
oslo-config-generator \
|
|
--output-file example.conf \
|
|
--namespace ironic_inspector \
|
|
--namespace keystonemiddleware.auth_token
|
|
--namespace ironic_inspector.common.swift
|