Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Do not consider "not set up" Travis statuses as cached
  • Loading branch information
zoffixznet committed Dec 25, 2015
1 parent 6f828ed commit 1ff22c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ModulesPerl6/DbBuilder/Dist/PostProcessor/TravisCI.pm
Expand Up @@ -13,9 +13,11 @@ sub process {

# Fetch travis status only for dists that had new commits in the past 24hr.
# Unless their cached status is 'unknown' which likely indicates
# the author did not enable the dist on travis yet
# the author did not enable the dist on travis yet and the cached status
# actually exists and not "not set up"
return if ($dist->{date_updated}//0) < (time - 60*60*24)
and not $dist->{_builder}{is_fresh} and not $ENV{FULL_REBUILD}
and $dist->{travis_status}
and not (
$dist->{travis_status} and $dist->{travis_status} eq 'unknown'
);
Expand Down

0 comments on commit 1ff22c1

Please sign in to comment.