Files
deb-python-proliantutils/tox.ini
Debayan Ray 7e1fd5f783 Add py35 to tox environments
To run the unit tests locally added py35 option to tox option

Change-Id: I61ce61200c0f3c13b58fc35936bf7f43830f47a1
Closes-bug: #1641000
2016-11-10 23:54:25 -05:00

40 lines
1018 B
INI

[tox]
envlist = py35,py34,py27,pep8,cover
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
PYTHONDONTWRITEBYTECODE = 1
LANGUAGE=en_US
LC_ALL=en_US.UTF-8
TESTS_DIR=./proliantutils/tests/
deps = -r{toxinidir}/test-requirements.txt
commands = ostestr {posargs}
[testenv:pep8]
basepython = python2.7
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
flake8 proliantutils
[testenv:cover]
# After running this target, visit proliantutils/htmlcov/index.html
# in your browser, to see a nicer presentation report with annotated
# HTML listings detailing missed lines.
basepython = python2.7
deps = {[testenv]deps}
commands = coverage erase
python setup.py testr --coverage --testr-args='{posargs}'
coverage report --omit=*test*
coverage html --omit=*test*
[flake8]
max-complexity=15
[testenv:venv]
setenv = PYTHONHASHSEED=0
commands = {posargs}