Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions lib/ModulesPerl6/DbBuilder/Dist/PostProcessor/p30METAChecker.pm
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ sub _check_todo_problems {
push @problems, problem 'Missing MANIFEST file', 3
if $dist->{dist_source} eq 'cpan'
and not grep $_ eq 'MANIFEST', @files;
push @problems, $self->_check_todo_problem_travis_yml($dist, \@files);
}
else {
# If we're here that can mean the dist was processed in abridged,
Expand Down Expand Up @@ -107,6 +108,22 @@ sub _check_meta_url {
"HTTP $code when accessing dist source URL ($dist->{url})";
}

sub _check_todo_problem_travis_yml {
my ($self, $dist, $files) = @_;

my ($travisyml) = grep $_->{name} =~ /^.travis.yml/i, @$files
or return;

# If we failed to fetch the travis yml content, return any cached travis
# problems.
return grep $_->{problem} =~ /\bTravis-CI\b/, ($dist->{problems} || [])->@*
if $travisyml->{error};

return unless $travisyml->{content} =~ /\brakudobrew\s+build[- ]panda\b/;
problem 'Travis-CI config asks rakudobrew to build panda.', 3
}


1;

__END__
Expand Down