Merge pull request #3791 from DomT4/cache_ci

diagnostic: guard cache check on Jenkins too
This commit is contained in:
Mike McQuaid 2018-02-12 10:18:56 +00:00 committed by GitHub
commit e904983275
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -837,7 +837,8 @@ module Homebrew
def check_for_large_cache
return unless HOMEBREW_CACHE.exist?
return if ENV["CI"] # CI can be expected to have a large cache.
# CI can be expected to have a large cache.
return if ENV["CI"] || ENV["JENKINS_HOME"]
cache_size = HOMEBREW_CACHE.disk_usage
return unless cache_size > 2_147_483_648
<<~EOS