From 5c3c87e1da2a2d7946f4546d49aaffab00b93e6d Mon Sep 17 00:00:00 2001 From: Jaisen Mathai Date: Tue, 12 Apr 2016 00:52:04 -0700 Subject: [PATCH] gh-103 Add lines to .travis.yml to produce coveralls code coverage --- .travis.yml | 6 +++++- Readme.md | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 38d5530..cefc58c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,9 +8,13 @@ before_install: - "sudo apt-get install python-dev python-pip python-pyexiv2 libimage-exiftool-perl -y" install: - "sudo pip install -r elodie/tests/requirements.txt" + - "sudo pip install coveralls" # command to run tests # test mapquest key before_script: - "mkdir ~/.elodie" - "sed 's/your-api-key-goes-here/x8wQLqGhW7qK3sFpjYtVTogVtoMK0S8s/g' config.ini-sample > ~/.elodie/config.ini" -script: "nosetests -w elodie/tests" +after_success: + - "coveralls" +script: + - "nosetests --with-coverage --cover-package=elodie -w elodie/tests" diff --git a/Readme.md b/Readme.md index e15d9eb..1947036 100644 --- a/Readme.md +++ b/Readme.md @@ -1,7 +1,7 @@ # Hello, I'm Elodie ~~ *Your Personal EXIF-based Photo, Video and Audio Assistant* ~~ -[![Build Status](https://travis-ci.org/jmathai/elodie.svg?branch=master)](https://travis-ci.org/jmathai/elodie) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/jmathai/elodie/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/jmathai/elodie/?branch=master) +[![Build Status](https://travis-ci.org/jmathai/elodie.svg?branch=master)](https://travis-ci.org/jmathai/elodie) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/jmathai/elodie/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/jmathai/elodie/?branch=master) [![Coverage Status](https://coveralls.io/repos/github/jmathai/elodie/badge.svg?branch=coveralls-test)](https://coveralls.io/github/jmathai/elodie?branch=coveralls-test)