Skip to content

Instantly share code, notes, and snippets.

@jonasbn
Last active December 16, 2016 08:08
Show Gist options
  • Save jonasbn/fecdb0efdd9cfb45ebe0 to your computer and use it in GitHub Desktop.
Save jonasbn/fecdb0efdd9cfb45ebe0 to your computer and use it in GitHub Desktop.
Travis configuration for Github Travis when using Dist::Zilla
sudo: false # Migrating from legacy to container-based infrastructure for Travis
# Ref: http://docs.travis-ci.com/user/migrating-from-legacy/
language: perl
perl:
- "5.22"
- "5.20"
- "5.18"
- "5.16"
- "5.14"
- "5.12"
- "5.10"
before_install:
# Prevent "Please tell me who you are" errors for certain DZIL configs
- git config --global user.name "TravisCI"
install:
# Deal with all of the DZIL dependencies, quickly and quietly
- cpanm --quiet --notest --skip-satisfied Dist::Zilla
# Hack to getting the latest Test::Kwalitee
- cpanm --quiet --notest Test::Kwalitee
# Getting coveralls report
- cpanm --quiet --notest Devel::Cover::Report::Coveralls
# Getting cover command for Dist::Zilla
- cpanm --quiet --notest Dist::Zilla::App::Command::cover
# Getting all the plugins used by Dist::Zilla in this particular setup
- dzil authordeps | grep -vP '[^\w:]' | xargs -n 5 -P 10 cpanm --quiet --notest --skip-satisfied
# Getting all the dependencies requested by author
- dzil listdeps --author | cpanm --quiet --notest --skip-satisfied
- export RELEASE_TESTING=1 AUTOMATED_TESTING=1 AUTHOR_TESTING=1 HARNESS_OPTIONS=j10:c HARNESS_TIMER=1
# Getting all the dependencies requested by distribution
- dzil listdeps | grep -vP '[^\w:]' | cpanm --quiet --notest --skip-satisfied
script:
- dzil smoke --release --author
after_success:
- dzil cover -outputdir cover_db -report coveralls
@jonasbn
Copy link
Author

jonasbn commented Dec 16, 2016

Added perl 5.22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment