Browse files

Added coverage

  • Loading branch information...
1 parent 935b670 commit a14c032b11f6db32854c320bc40ef84a8bbb459f @davorg committed Jul 1, 2014
Showing with 14 additions and 0 deletions.
  1. +12 −0 .travis.yml
  2. +2 −0 README.md
View
12 .travis.yml
@@ -10,3 +10,15 @@ before_script:
- mysql -e 'create database lystyng;'
- mysql -D lystyng < db/lystyng.sql
+install:
+ - export RELEASE_TESTING=1 AUTOMATED_TESTING=1 AUTHOR_TESTING=1 HARNESS_OPTIONS=c HARNESS_TIMER=1
+ - cpanm --quiet --notest Devel::Cover::Report::Coveralls
+ - cpanm --quiet --notest --installdeps .
+
+script:
+ - PERL5OPT=-MDevel::Cover=-coverage,statement,branch,condition,path,subroutine prove -lrsv t
+ - cover
+
+after_success:
+ - cover -report coveralls
+
View
2 README.md
@@ -1,3 +1,5 @@
Code for lystyng.com.
Here's our current build status, which is hopefully green: [![Build Status](https://travis-ci.org/davorg/lystyng.png?branch=master)](http://travis-ci.org/davorg/lystyng)
+
+Here's our test coverage: [![Coverage Status](https://img.shields.io/coveralls/davorg/lystyng.svg)](https://coveralls.io/r/davorg/lystyng)

0 comments on commit a14c032

Please sign in to comment.