compose/tox.ini

54 lines
866 B
INI
Raw Normal View History

2014-01-06 03:53:26 +01:00
[tox]
envlist = py27,py34,pre-commit
2014-01-06 03:53:26 +01:00
[testenv]
usedevelop=True
passenv =
LD_LIBRARY_PATH
DOCKER_HOST
DOCKER_CERT_PATH
DOCKER_TLS_VERIFY
DOCKER_VERSION
SWARM_SKIP_*
SWARM_ASSUME_MULTINODE
setenv =
HOME=/tmp
deps =
-rrequirements.txt
-rrequirements-dev.txt
2014-01-06 03:53:26 +01:00
commands =
py.test -v \
--cov=compose \
--cov-report html \
--cov-report term \
--cov-config=tox.ini \
{posargs:tests}
[testenv:pre-commit]
skip_install = True
deps =
pre-commit
commands =
pre-commit install
pre-commit run --all-files
# Coverage configuration
[run]
branch = True
[report]
show_missing = true
[html]
directory = coverage-html
# end coverage configuration
[flake8]
max-line-length = 105
# Set this high for now
max-complexity = 11
exclude = compose/packages
[pytest]
addopts = --tb=short -rxs