No description or website provided.
Perl
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
t
.gitignore
.travis.yml
Build.PL
META.json
README.md
circle.yml
cpanfile

README.md

Codecov's Perl Example

https://codecov.io @codecov hello@codecov.io

This repository serves as an Example on how to use Devel::Cover::Report::Codecov for Perl.

Usage

ExtUtils::MakeMaker

Try this commands as following if you use ExtUtils::MakeMaker.

$ cpanm --quiet --notest --skip-satisfied Devel::Cover Devel::Cover::Report::Codecov
$ perl Build.PL
$ ./Build build
$ cover -test -report codecov

Prove

Try this commands as following if you use prove direct.

$ cpanm --quiet --notest --skip-satisfied Devel::Cover Devel::Cover::Report::Codecov
$ cover -delete
$ HARNESS_PERL_SWITCHES="-MDevel::Cover=+ignore,^local/|^t/" prove -r t
$ cover -report codecov

travis-org Travis CI Build Status

Append to your .travis.yml

before_script:
  - cpanm --quiet --notest --skip-satisfied Devel::Cover Devel::Cover::Report::Codecov

script:
  - perl Build.PL
  - ./Build build
  - cover -test

after_success:
  - cover -report codecov

Start testing with Travis

codeship Codeship Codeship Status for pine613/example-perl

Append to your Setup Commands

curl -L https://cpanmin.us | perl - App::cpanminus
export PATH=~/perl5/bin:$PATH
cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
cpanm --quiet --installdeps --notest .
cpanm --quiet --notest --skip-satisfied Devel::Cover Devel::Cover::Report::Codecov

Append to your Test Commands

perl Build.PL
./Build build
cover -test -report codecov

Append to your Environment Variables

CODECOV_TOKEN=<YOUR_UPLOAD_TOKEN>

Start testing with Codeship

circleci Circle CI Circle CI

Append to your circle.yml file

machine:
  environment:
    PATH: ~/perl5/bin:$PATH

dependencies:
  pre:
    - curl -L https://cpanmin.us | perl - App::cpanminus
    - cpanm --local-lib=~/perl5 local::lib && echo "eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)" >> ~/.bashrc
    - cpanm --quiet --notest --skip-satisfied Devel::Cover Devel::Cover::Report::Codecov

test:
  override:
    - perl Build.PL
    - ./Build build
    - cover -test

  post:
    - cover -report codecov

Append to your Environment Variables

CODECOV_TOKEN=<YOUR_UPLOAD_TOKEN>

Start testing with Circle CI