goal-tools/tox.ini
Doug Hellmann 629fedafcd test python 3.6 by default
Set tox so that when a developer just runs 'tox' the py36 tests are run
instead of py35.

Change-Id: I9624d144f632177907d219a74d396167f6c0a57e
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-08-21 11:02:49 -04:00

35 lines
600 B
INI

[tox]
minversion = 2.0
envlist = py36,pep8
[testenv]
basepython = python3
install_command = pip install {opts} {packages}
usedevelop = True
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
setenv =
PYTHON=coverage run --source goal_tools --parallel-mode
passenv =
ZUUL_CACHE_DIR
commands =
stestr run {posargs}
stestr slowest
coverage combine
coverage report -m
[testenv:pep8]
deps =
flake8
commands =
flake8
[testenv:venv]
commands = {posargs}
[flake8]
show-source = True
enable-extensions = H203,H106
exclude = .tox,dist,doc,*.egg,build