tempest-lib/tox.ini
Ghanshyam 152bf3f33b Pass environment variables of proxy to tox
When a development environment is under a proxy, tox is failed even if
environment variables of the proxy are set.

This problem has been solved on Tempest already.
This patch fixes this problem.

Change-Id: Ic0be1f8d6757ea57d8d12e463c467e83d7195794
Closes-Bug: #1465086
2015-12-03 20:20:05 +09:00

37 lines
947 B
INI

[tox]
minversion = 1.6
envlist = py34,py27,pypy,pep8
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
whitelist_externals = bash
setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = ostestr {posargs}
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
[testenv:pep8]
commands = flake8
[testenv:venv]
commands = {posargs}
[testenv:cover]
commands = python setup.py test --coverage --coverage-package-name='tempest_lib' --testr-args='{posargs}'
[testenv:docs]
commands = python setup.py build_sphinx
[flake8]
# E125 skipped as it is invalid PEP-8.
# E123 skipped because it is ignored by default in the default pep8
# E129 skipped because it is too limiting when combined with other rules
show-source = True
ignore = E125,E123,E129
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build