2014-08-11 22:34:30 +02:00
|
|
|
[tox]
|
2017-01-06 21:05:36 +01:00
|
|
|
envlist = pep8,py26,py27,py33,py34,py35,py36,bandit
|
2014-08-11 22:34:30 +02:00
|
|
|
|
|
|
|
[testenv]
|
2015-10-01 23:17:13 +02:00
|
|
|
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
|
|
|
|
|
2014-08-11 22:34:30 +02:00
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
|
|
|
|
commands =
|
2015-05-14 19:08:02 +02:00
|
|
|
coverage run --source=kmip/ --omit=kmip/demos/*,kmip/tests/* -m pytest --strict kmip/tests/unit
|
|
|
|
coverage report -m
|
|
|
|
coverage html
|
2014-08-11 22:34:30 +02:00
|
|
|
|
|
|
|
[testenv:pep8]
|
2015-05-14 19:08:02 +02:00
|
|
|
commands = flake8 kmip/
|
|
|
|
|
|
|
|
[testenv:integration]
|
|
|
|
# Note: This requires local or remote access to a KMIP appliance or service
|
|
|
|
deps = {[testenv]deps}
|
2015-06-08 18:33:27 +02:00
|
|
|
basepython=python2.7
|
2015-05-14 19:08:02 +02:00
|
|
|
commands =
|
2015-08-20 15:13:20 +02:00
|
|
|
py.test --strict kmip/tests/integration -m "not ignore" {posargs}
|
2014-08-11 22:34:30 +02:00
|
|
|
|
2015-09-28 18:26:12 +02:00
|
|
|
[testenv:bandit]
|
|
|
|
deps = {[testenv]deps}
|
2016-12-02 16:39:38 +01:00
|
|
|
commands = bandit -r kmip -n5 -x kmip/tests
|
2015-09-28 18:26:12 +02:00
|
|
|
|
2016-01-25 23:57:53 +01:00
|
|
|
[testenv:docs]
|
|
|
|
deps = sphinx
|
|
|
|
commands =
|
|
|
|
sphinx-apidoc -o {toxinidir}/docs {toxinidir}/kmip/
|
|
|
|
sphinx-build -b html {toxinidir}/docs {toxinidir}/docs/_build
|
|
|
|
|
2014-08-11 22:34:30 +02:00
|
|
|
[flake8]
|
|
|
|
exclude = .git,.tox,dist,rpmbuild,*.egg-info
|