Skip to content

Commit

Permalink
[REBUILD] Avoid deleting cached Travis status on each build
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Dec 25, 2015
1 parent 1ff22c1 commit 734f5b3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/ModulesPerl6/DbBuilder/Dist/PostProcessor/TravisCI.pm
Expand Up @@ -21,8 +21,11 @@ sub process {
and not (
$dist->{travis_status} and $dist->{travis_status} eq 'unknown'
);
delete $dist->{travis_status}; # toss cached Travis status
return unless $dist->{_builder}{has_travis};

unless ( $dist->{_builder}{has_travis} ) {
delete $dist->{travis_status}; # toss cached Travis status
return;
}

my ( $user, $repo ) = $dist->{_builder}->@{qw/repo_user repo/};
return unless length $user and length $repo;
Expand Down

0 comments on commit 734f5b3

Please sign in to comment.