Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: RFC: Continuous Integration (CI) for your CPAN modules (for free!)

by jeffa (Bishop)
on Jan 15, 2016 at 18:57 UTC ( #1152886=note: print w/replies, xml ) Need Help??


in reply to RFC: Continuous Integration (CI) for your CPAN modules (for free!)

Very nice write up. I hope others adopt this style as well. I do have a couple of comments however.

The first is that your travis.yml is very involved and perhaps a simpler example is less daunting up front. For example, this is what i tend to use

language: perl before_install: - cpanm --notest Test::Pod Test::Pod::Coverage #other dependencie +s you have perl: - "5.22" - "5.18" - "5.14" - "5.8"
Travi-CI tends to allocate 4 workers at a time, so specifying more than 4 Perls will significantly increase the time it takes to complete the entire job. Just something to consider. More here: https://docs.travis-ci.com/user/speeding-up-the-build/, but i have tried none of those examples. I am quite happy with the amount of time it takes, this is a free service after all. :)

The second comment i have regards the adding of badges to POD. I do not recommend this. Instead I recommend adding any and all badges to your Github readme file and specify the Github repository in your distribution's Makefile:

META_ADD => { resources => { homepage => 'https://github.com/user/Foo-Bar, repository => 'https://github.com/user/Foo-Bar.git', }, }
... or your Build file. Consult the docs for more. The reason i say not to put build badges inside your CPAN distros is because they reflect the state of the Github repo, not the distro on CPAN. You can also add a badge to your Github readme file that points to your (already registered) CPAN module. :)
[![CPAN Version](https://badge.fury.io/pl/Foo-Bar.svg)](https://metacp +an.org/pod/Foo::Bar)

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

Replies are listed 'Best First'.
Re^2: RFC: Continuous Integration (CI) for your CPAN modules (for free!)
by stevieb (Abbot) on Jan 15, 2016 at 19:05 UTC

    Thanks for the feedback jeffa.

    I'll play around with your suggestions over the weekend and update the post if necessary.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1152886]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2019-05-22 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (140 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!