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
|
[tox]
envlist = lint, packaging, py26, py27, py33, py34, py35, py36, py37
skip_missing_interpreters = true
[testenv]
deps= -r{toxinidir}/dev-requirements.txt
commands=
coverage run -m pytest tests/
coverage report -m
coverage html
passenv = TRAVIS APPVEYOR
[testenv:py26]
# Additional dependency on unittest2 for Python 2.6
deps=
{[testenv]deps}
unittest2
[testenv:lint]
commands =
python -m pip install flake8
flake8 --max-line-length 100 rfc6555.py
[testenv:packaging]
commands =
check-manifest --ignore *.yml,.mention-bot,.appveyor*,.travis*,.github*
python setup.py check --metadata --restructuredtext --strict
|