From c87989448bd35f6b42005ea867f191dc69a47dd4 Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Tue, 29 Mar 2016 23:31:46 +0200 Subject: Add coverage to travis --- .travis.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9cd55f8..dd344b4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,11 +15,7 @@ env: sudo: required install: - sudo bash t/travis-deps/install.sh - - cpanm Text::Diff Capture::Tiny Test::Output -script: bash -c 'PROVE=`which prove`; sudo $PROVE -v t/*.t' -notifications: - irc: - channels: - - "chat.freenode.net#sbotools" - on_success: change - on_failure: change + - cpanm Text::Diff Capture::Tiny Test::Output Devel::Cover +script: + - bash -c 'export PERL5OPT=-MDevel::Cover=-coverage,statement,branch,condition,path,subroutine; PROVE=`which prove`; sudo -E $PROVE -v t/*.t;' + - cover -report text -- cgit v1.2.3