[tox]
envlist = py27,py33,py34,pep8,coverage

[testenv]
deps = -e{toxinidir}[test]
commands = py.test {posargs}

[testenv:pep8]
basepython = python2
deps = flake8
commands = flake8

[testenv:coverage]
basepython = python3
deps = {[testenv]deps}
commands =
    coverage run --source more.jwtauth -m py.test {posargs}
    coverage report -m

[flake8]
max-line-length = 119
exclude = bootstrap-buildout.py

[tox]
envlist = py27,py33,py34,pep8,coverage

[testenv]
deps = -e{toxinidir}[test]
commands = py.test {posargs}

[testenv:pep8]
basepython = python2
deps = flake8
commands = flake8

[testenv:coverage]
basepython = python3
deps = {[testenv]deps}
commands =
    coverage run --source more.jwtauth -m py.test {posargs}
    coverage report -m --fail-under=100

[flake8]
max-line-length = 119
exclude = bootstrap-buildout.py

Make travis coverage test fail when under 100%
Make travis coverage test fail when under 100%
