1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
[tox]
project = elastalert
envlist = py36,docs
[testenv]
deps = -rrequirements-dev.txt
commands =
coverage run --source=elastalert/,tests/ -m pytest --strict {posargs}
coverage report -m
flake8 .
[testenv:lint]
deps = {[testenv]deps}
pylint
commands =
pylint --rcfile=.pylintrc elastalert
pylint --rcfile=.pylintrc tests
[testenv:devenv]
envdir = virtualenv_run
commands =
[pytest]
norecursedirs = .* virtualenv_run docs build venv env
[testenv:docs]
deps = {[testenv]deps}
sphinx==1.6.6
changedir = docs
commands = sphinx-build -b html -d build/doctrees -W source build/html
|