2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-13 19:27:48 +00:00
pyghmi/tox.ini
Riccardo Pittau d5213a7369 Drop old Python versions
Python 2.6 is dead since a while and we should move out from
Python 3.5 in favor of Python 3.6 and Python 3.7

Change-Id: I36ff0e1bc1db018bb7cce00a741682125aca4ac4
2019-11-22 12:19:11 +01:00

54 lines
1.1 KiB
INI

[tox]
minversion = 2.8.1
envlist = py27,py3,pep8
[testenv]
basepython = python3
setenv = VIRTUAL_ENV={envdir}
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_ALL=C
TESTS_DIR=./pyghmi/tests/unit/
OS_LOG_CAPTURE={env:OS_LOG_CAPTURE:true}
OS_STDOUT_CAPTURE={env:OS_STDOUT_CAPTURE:true}
OS_STDERR_CAPTURE={env:OS_STDERR_CAPTURE:true}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = stestr run {posargs}
stestr slowest
[tox:jenkins]
sitepackages = True
[testenv:pep8]
whitelist_externals = bash
[testenv:cover]
setenv =
{[testenv]setenv}
PYTHON=coverage run --source pyghmi --parallel-mode
commands =
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
[testenv:docs]
commands = python setup.py build_sphinx
[testenv:venv]
commands = {posargs}
[flake8]
exclude = .venv,.tox,dist,doc,*.egg,build
show-source = true
[pep8]
ignore = E731,E226,E123
[testenv:lower-constraints]
deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt