From f104d39c460b3391c5bc15f94998fe15697cedc6 Mon Sep 17 00:00:00 2001 From: Jean-Tiare LE BIGOT Date: Tue, 9 Sep 2014 12:13:25 +0200 Subject: [PATCH] travis-ci, coveralls and PyPi integration --- .travis.yml | 10 ++++++++++ README.rst | 10 ++++++++++ requirements-dev.txt | 1 + setup.cfg | 1 + 4 files changed, 22 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..5157596 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,10 @@ +language: python +python: + - "2.7" +install: + - pip install . + - pip install -r requirements-dev.txt +script: nosetests +after_success: + coveralls + diff --git a/README.rst b/README.rst index 8117fcd..ca12ea3 100644 --- a/README.rst +++ b/README.rst @@ -1,6 +1,16 @@ Python-OVH: lightweight wrapper around OVH's APIs ================================================= +.. image:: http://img.shields.io/pypi/v/ovh.svg + :alt: PyPi Version + :target: https://pypi.python.org/pypi/ovh +.. image:: https://travis-ci.org/ovh/python-ovh.svg?branch=master + :alt: Build Status + :target: https://travis-ci.org/ovh/python-ovh +.. image:: https://coveralls.io/repos/ovh/python-ovh/badge.png + :alt: Coverage Status + :target: https://coveralls.io/r/ovh/python-ovh + Thin wrapper around OVH's APIs. Handles all the hard work including credential creation and requests signing. diff --git a/requirements-dev.txt b/requirements-dev.txt index 785ceb6..0eabc2f 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -3,3 +3,4 @@ mock==1.0.1 nose==1.3.3 yanc==0.2.4 Sphinx==1.2.2 +coveralls==0.4.2 diff --git a/setup.cfg b/setup.cfg index 38fbbf5..a91642b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -40,3 +40,4 @@ with-yanc = 1 with-coverage = 1 cover-package = ovh cover-erase = 1 +