Commit ca203fcd authored by Christian Heimes's avatar Christian Heimes Committed by Simo Sorce

Add automated testing with tox

Signed-off-by: 's avatarChristian Heimes <cheimes@redhat.com>
Reviewed-by: 's avatarSimo Sorce <simo@redhat.com>
Closes #10
parent bd27b622
[run]
branch = True
source =
jwcrypto
tests
[paths]
source =
jwcrypto
.tox/*/lib/python*/site-packages/jwcrypto
[report]
ignore_errors = False
precision = 1
exclude_lines =
pragma: no cover
raise AssertionError
raise NotImplementedError
if 0:
if False:
if __name__ == .__main__.:
if PY3
if not PY3
......@@ -3,3 +3,6 @@ dist/
*.pyc
*.pyo
cscope.out
.tox
.coverage
*.egg-info
[tox]
envlist = py27,py34,doc,sphinx
[testenv]
deps =
pytest
coverage
-r{toxinidir}/requirements.txt
commands =
coverage run -m pytest --capture=no --strict {posargs}
coverage report -m
[testenv:pep8]
basepython = python2.7
deps =
flake8
flake8-import-order
pep8-naming
commands =
flake8 {posargs}
[testenv:py3pep8]
basepython = python3.4
deps =
flake8
flake8-import-order
pep8-naming
commands =
flake8 {posargs}
[testenv:doc]
deps =
doc8
docutils
markdown
basepython = python2.7
commands =
doc8 --allow-long-titles README.md
python setup.py check --restructuredtext --metadata --strict
markdown_py README.md -f {toxworkdir}/README.md.html
[testenv:sphinx]
basepython = python2.7
changedir = docs/source
deps =
sphinx < 1.3.0
-r{toxinidir}/requirements.txt
commands =
sphinx-build -v -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[pytest]
python_files = jwcrypto/test*.py
[flake8]
exclude = .tox,*.egg,dist,build,docs/source
show-source = true
max-line-length = 79
ignore = N802
application-import-names = jwcrypto
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment