Skip to content

Commit

Permalink
fixed coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Bertrand committed Jan 7, 2016
1 parent 397e833 commit 1b42f0e
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,32 @@ perl:

os:
- linux

before_install:
- git clone git://github.com/travis-perl/helpers ~/travis-perl-helpers
- source ~/travis-perl-helpers/init
- build-perl
- perl -V
- build-dist
- cd $BUILD_DIR # $BUILD_DIR is set by the build-dist command

install:
- cpan-install Devel::Cover
- cpan-install --deps # installs prereqs, including recommends
- cpan-install --coverage # installs coverage prereqs, if enabled
- cpan-install --coverage # installs converage prereqs, if enabled

before_script:
- coverage-setup

script:
- perl Makefile.PL # or Build.PL if it exists
- make # or ./Build
- make test
- PERL5OPT=-MDevel::Cover=-coverage,statement,branch,condition,path,subroutine prove -lrv t
- cover

after_success:
- cover -report coveralls
- coverage-report

matrix:
include:
- perl: 5.20
env: COVERAGE=1

0 comments on commit 1b42f0e

Please sign in to comment.