On Github preaction / Getting-The-Most-From-Travis-CI-For-Perl
http://preaction.github.io/Getting-The-Most-From-Travis-CI-For-Perl/
How to get the most out of Travis CI for your Perl project.
language: perl perl: - "5.16" - "5.18" - "5.20" sudo: false before_install: - eval $(curl https://travis-perl.github.io/init) --auto
For performance
50 minutes
apt-get
eval $(curl https://travis-perl.github.io/init) --auto
ExtUtils::MakeMaker
Module::Build et. al.
Dist::Zilla
before_install: - eval $(curl https://travis-perl.github.io/init) --auto
Short version
before_install: - git clone git://github.com/travis-perl/helpers ~/travis-perl-helpers - source ~/travis-perl-helpers/init - build-perl - perl -V - build-dist - cd $BUILD_DIR
Set up build environment
install: - cpan-install --deps - cpan-install --coverage
Install prereqs
before_script: - coverage-setup script: - prove -l -j$(test-jobs) $(test-files) after_success: - coverage-report
Run the build
matrix: include: - perl: 5.18 env: COVERAGE=1
Also free!
before_install: # ... - cpan-install Devel::Hide
Install Devel::Hide
script: # ... - export PERL5OPT="-MDevel::Hide" - export DEVEL_HIDE_VERBOSE=0
Load Devel::Hide for every build
matrix: include: - perl: "5.20" env: DEVEL_HIDE_PM="My::Hidden"
Hide modules in the matrix
Travis comes with Perlbrew
More info:
This talk: