Dist-Zilla-PluginBundle-Author-SKIRMESS
view release on metacpan or search on metacpan
lib/Dist/Zilla/Plugin/Author/SKIRMESS/RepositoryBase.pm view on Meta::CPAN
# Automatically generated file
# {{ ref $plugin }} {{ $plugin->VERSION() }}
language: perl
cache:
directories:
- ~/perl5
env:
global:
- AUTOMATED_TESTING=1
matrix:
include:
TRAVIS_YML_1
my %ignore_perl;
@ignore_perl{ @{ $self->travis_ci_ignore_perl } } = ();
my %no_auth;
@no_auth{ @{ $self->travis_ci_no_author_testing_perl } } = ();
my %osx_perl;
@osx_perl{ @{ $self->travis_ci_osx_perl } } = ();
PERL:
for my $perl ( @{ $self->_travis_available_perl } ) {
next PERL if exists $ignore_perl{$perl};
my @os = (undef);
if ( exists $osx_perl{$perl} ) {
push @os, 'osx';
}
for my $os (@os) {
$travis_yml .= " - perl: '$perl'\n";
if ( !exists $no_auth{$perl} ) {
$travis_yml .= " env: AUTHOR_TESTING=1\n";
}
if ( defined $os ) {
$travis_yml .= " os: $os\n";
}
$travis_yml .= "\n";
}
}
$travis_yml .= <<'TRAVIS_YML';
before_install:
- |
case "${TRAVIS_OS_NAME}" in
"linux" )
;;
"osx" )
# TravisCI extracts the broken perl archive with sudo which creates the
# $HOME/perl5 directory with owner root:staff. Subdirectories under
# perl5 are owned by user travis.
sudo chown "$USER" "$HOME/perl5"
# The perl distribution TravisCI extracts on OSX is incomplete
sudo rm -rf "$HOME/perl5/perlbrew"
# Install cpanm and local::lib
curl -L https://cpanmin.us | perl - App::cpanminus local::lib
eval $(perl -I $HOME/perl5/lib/perl5/ -Mlocal::lib)
;;
esac
install:
- |
if [ -n "$AUTHOR_TESTING" ]
then
cpanm --quiet --installdeps --notest --skip-satisfied --with-develop .
else
cpanm --quiet --installdeps --notest --skip-satisfied .
fi
script:
- perl Makefile.PL && make test
- |
if [ -n "$AUTHOR_TESTING" ]
then
prove -lr xt/author
fi
TRAVIS_YML
return $travis_yml;
};
# test header
my $test_header = <<'_TEST_HEADER';
#!perl
use 5.006;
use strict;
use warnings;
# this test was generated with
# {{ ref $plugin }} {{ $plugin->VERSION() }}
_TEST_HEADER
=head2 t/00-load.t
Verifies that all modules and perl scripts can be compiled with require_ok
from L<Test::More|Test::More>.
=cut
$file{q{t/00-load.t}} = sub {
my ($self) = @_;
my %use_lib_args = (
lib => undef,
q{.} => undef,
);
my @modules;
( run in 2.192 seconds using v1.01-cache-2.11-cpan-71847e10f99 )