diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..b2ddda4 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,5 @@ +[report] +omit = + */python?.?/* + */site-packages/nose/* + *__init__* \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 39317a5..423a5aa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,12 @@ language: python python: - "2.7" -# command to install dependencies -install: "pip install -r requirements.txt" -# command to run tests -script: "nosetests -s" +install: + - pip install -r requirements.txt + - pip install coveralls +script: + - nosetests -s --with-coverage services: - - redis-server \ No newline at end of file + - redis-server +after_success: + - coveralls diff --git a/README.md b/README.md index e57f634..91f7d8e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ # acrewstic Music and media repository for your NAS, written in Python + [![Build Status](https://travis-ci.org/carlomorelli/acrewstic.svg?branch=master)](https://travis-ci.org/carlomorelli/acrewstic) +[![Coverage Status](https://coveralls.io/repos/github/carlomorelli/acrewstic/badge.svg?branch=master)](https://coveralls.io/github/carlomorelli/acrewstic?branch=master) + ## About _acrewstic_ is implemented as a RESTful API using Python 2.7 with Flask library (http://flask.pocoo.org/).