Hateburo: kazeburo hatenablog

SRE / 運用系小姑 / Goを書くPerl Monger

How to automate CPAN.pm configuration on Travis

I want to automate CPAN.pm configuration on Travis.
I wrote .travis.yaml like this

language: perl
before_install:
  - cpanm -n CPAN
  - (echo y;echo y;echo o conf commit)|cpan
  - cpanm -n Module::Install Module::Install::Repository Module::Install::AuthorTests Module::Install::CPANfile
perl:
  - 5.18
  - 5.16
  - 5.14