valet/plugins/tox.ini
2017-05-05 12:07:42 -05:00

56 lines
1.0 KiB
INI

[tox]
#minversion = 2.0
envlist = py27
#py27-constraints, pep8-constraints
#py34-constraints,py27-constraints,pypy-constraints,pep8-constraints
#skipsdist = True
[testenv]
usedevelop = True
install_command =
pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
OS_TEST_PATH=valet_plugins/tests/unit/
commands =
find . -type f -name "*.pyc" -delete
ostestr --slowest '{posargs}'
deps = -r{toxinidir}/test-requirements.txt
whitelist_externals =
bash
find
[testenv:pep8]
commands = flake8
#commands = flake8 {posargs}
[testenv:venv]
commands = {posargs}
[testenv:cover]
commands =
coverage erase
python setup.py test --slowest --coverage --coverage-package-name 'valet_plugins' --testr-args='{posargs}'
coverage report
[testenv:docs]
commands = python setup.py build_sphinx
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
ignore = E123,E125,E501,H401,H501,H301
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,*egg-info