https://codecov.io | @codecov | hello@codecov.io |
---|
This repository serves as an Example on how to use Devel::Cover::Report::Codecov for Perl.
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
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
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
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
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