From 223d5360147c85e05b8c26c5fad39a4c682d944f Mon Sep 17 00:00:00 2001 From: Peter Hamilton Date: Thu, 1 Oct 2015 17:17:13 -0400 Subject: [PATCH] Adding Travis CI and Coveralls support This change adds Travis CI and Coveralls support to enable integration with third-party testing and coverage statistics reporting services. --- .travis.yml | 15 +++++++++++++++ README.rst | 6 ++++++ tox.ini | 3 +++ 3 files changed, 24 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..b57a192 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,15 @@ +language: python +install: + - pip install tox + - pip install coveralls +script: + - tox +env: + - TOXENV=pep8 + - TOXENV=py26 + - TOXENV=py27 + - TOXENV=py33 + - TOXENV=py34 +after_success: + - coveralls + diff --git a/README.rst b/README.rst index 5a36900..1ae1755 100644 --- a/README.rst +++ b/README.rst @@ -1,6 +1,8 @@ ------ PyKMIP ------ +|coverage-status| + PyKMIP is a Python implementation of the Key Management Interoperability Protocol (KMIP). KMIP is a client/server communication protocol for the storage and maintenance of key, certificate, and secret objects. The standard @@ -243,3 +245,7 @@ For more information on KMIP version 1.1, see the following documentation: .. _Python SSL library documentation: https://docs.python.org/dev/library/ssl.html#socket-creation .. _KMIP Wikipedia page: https://en.wikipedia.org/wiki/Key_Management_Interoperability_Protocol .. _KMIP Technical Committee home page: https://www.oasis-open.org/committees/tc_home.php?wg_abbrev=kmip +.. |coverage-status| image:: https://coveralls.io/repos/OpenKMIP/PyKMIP/badge.svg + :target: https://coveralls.io/github/OpenKMIP/PyKMIP + + diff --git a/tox.ini b/tox.ini index 391c925..2df0983 100644 --- a/tox.ini +++ b/tox.ini @@ -2,8 +2,11 @@ envlist = pep8,py26,py27,py33,py34 [testenv] +passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH + deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt + coveralls commands = coverage run --source=kmip/ --omit=kmip/demos/*,kmip/tests/* -m pytest --strict kmip/tests/unit