gh-103 Add lines to .travis.yml to produce coveralls code coverage

This commit is contained in:
Jaisen Mathai 2016-04-12 00:52:04 -07:00
parent 9bdb451c86
commit 5c3c87e1da
No known key found for this signature in database
GPG Key ID: 054172834C952A76
2 changed files with 6 additions and 2 deletions

View File

@ -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"

View File

@ -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)
<p align="center"><img src ="creative/logo@300x.png" /></p>