Browse Source

first crack at coveralls.io integration

George S. Baugh 11 years ago
parent
commit
004ee64783
2 changed files with 14 additions and 2 deletions
  1. 13 2
      .travis.yml
  2. 1 0
      README.md

+ 13 - 2
.travis.yml

@@ -6,18 +6,29 @@ perl:
    - '5.14'
    - '5.12'
    - '5.10'
+
 matrix:
    fast_finish: true
+
 before_install:
-   - export AUTOMATED_TESTING=1 NONINTERACTIVE_TESTING=1 HARNESS_OPTIONS=j10:c HARNESS_TIMER=1 AUTHOR_TESTING=0
+   - export AUTOMATED_TESTING=1 NONINTERACTIVE_TESTING=1 HARNESS_OPTIONS=j10:c HARNESS_TIMER=1 AUTHOR_TESTING=1
    - git clone git://github.com/haarg/perl-travis-helper
    - source perl-travis-helper/init
    - build-perl
    - perl -V
    - git config --global user.name "TravisCI"
    - git config --global user.email $HOSTNAME":not-for-mail@travis-ci.org"
+
 install:
-    - cpanm --quiet --notest Test::Perl::Critic Test::Spelling Test::NoTabs Test::EOL Carp Clone Data::Validate::URI File::Basename Getopt::Long HTTP::Headers HTTP::Request HTTP::Response IO::Interactive::Tiny Cpanel::JSON::XS JSON::MaybeXS LWP::UserAgent Scalar::Util TAP::Harness TAP::Parser Term::ANSIColor Test::LWP::UserAgent Try::Tiny IO::Capture::Stdout IO::Capture::Stderr TAP::Harness
+    - cpanm --quiet --notest Test::Perl::Critic Test::Spelling Test::NoTabs Test::EOL Carp Clone Data::Validate::URI File::Basename Getopt::Long HTTP::Headers HTTP::Request HTTP::Response IO::Interactive::Tiny Cpanel::JSON::XS JSON::MaybeXS LWP::UserAgent Scalar::Util TAP::Harness TAP::Parser Term::ANSIColor Test::LWP::UserAgent Try::Tiny IO::Capture::Stdout IO::Capture::Stderr TAP::Harness Devel::Cover::Report::Coveralls Devel::Cover
+
 branches:
    only:
       - /^build/
+
+script:
+    - PERL5OPT=-MDevel::Cover=-ignore,"t/",+ignore,"prove",-coverage,statement,branch,condition,path,subroutine prove -lrs t
+    - cover
+
+after_success:
+    - cover -report coveralls

+ 1 - 0
README.md

@@ -4,6 +4,7 @@ TestRail::API
 Perl interface to TestRail's REST API
 
 <img alt="TravisCI Build Status" src="https://travis-ci.org/teodesian/TestRail-Perl.svg"></img>
+<a href='https://coveralls.io/r/teodesian/TestRail-Perl'><img src='https://coveralls.io/repos/teodesian/TestRail-Perl/badge.svg' alt='Coverage Status' /></a>
 
 Doesn't implement every method provided (yet), just the ones *I* needed: