da45205cb0
Change-Id: I8c2ad414d300357a80652e495f4fb7da28ab401c
35 lines
975 B
INI
35 lines
975 B
INI
[tox]
|
|
minverson = 1.6
|
|
envlist = py34, py27, pep8, docs
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
setenv = LANGUAGE=en_US
|
|
LC_ALL=en_US.utf-8
|
|
SURVEIL_INTEGRATION_TESTS=False
|
|
SURVEIL_FUNCTIONAL_MONGOMOCK=False
|
|
usedevelop = True
|
|
install_command = pip install -U --force-reinstall {opts} {packages}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
commands = python setup.py testr --slowest --testr-args='--parallel --concurrency=1'
|
|
|
|
[testenv:integration]
|
|
setenv = SURVEIL_INTEGRATION_TESTS=True
|
|
SURVEIL_INTEGRATION_TESTS_BACKEND=DOCKER
|
|
commands = python setup.py testr --slowest --testr-args='--parallel --concurrency=1 --isolated'
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[flake8]
|
|
exclude = .venv,.git,.tox,env,dist,*openstack/common*,*lib/python*/,*egg,build,*doc/conf.py,surveil/cmd/pack_upload.py,surveil/cmd/surveil_from_nagios.py
|
|
|