aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2018-02-12 19:34:44 +0000
committerGitHub2018-02-12 19:34:44 +0000
commit602696bcb8823e8a24aa87d646aef8c6a108ce4b (patch)
tree4b7f0a7f3138fe155eca015908cafa68ea419d64
parente904983275eb17cde115f8f586a8e6502a9126d4 (diff)
parenta30c74987a1b10fbc5ab7b600e8f8769a34344f7 (diff)
downloadbrew-602696bcb8823e8a24aa87d646aef8c6a108ce4b.tar.bz2
Merge pull request #3792 from MikeMcQuaid/tweak-ci-variable-checks
brew, diagnostic: tweak CI variable checks.
-rw-r--r--Library/Homebrew/diagnostic.rb4
-rwxr-xr-xbin/brew4
2 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb
index 8516f2b63..178758347 100644
--- a/Library/Homebrew/diagnostic.rb
+++ b/Library/Homebrew/diagnostic.rb
@@ -788,7 +788,7 @@ module Homebrew
EOS
end
- return if ENV["CI"] || ENV["JENKINS_HOME"]
+ return if ENV["CI"]
branch = coretap_path.git_branch
return if branch.nil? || branch =~ /master/
@@ -838,7 +838,7 @@ module Homebrew
def check_for_large_cache
return unless HOMEBREW_CACHE.exist?
# CI can be expected to have a large cache.
- return if ENV["CI"] || ENV["JENKINS_HOME"]
+ return if ENV["CI"]
cache_size = HOMEBREW_CACHE.disk_usage
return unless cache_size > 2_147_483_648
<<~EOS
diff --git a/bin/brew b/bin/brew
index 881ace1ec..34c28056b 100755
--- a/bin/brew
+++ b/bin/brew
@@ -66,9 +66,9 @@ then
FILTERED_ENV=()
# Filter all but the specific variables.
- for VAR in HOME SHELL PATH TERM LOGNAME USER CI TRAVIS SSH_AUTH_SOCK SUDO_ASKPASS \
+ for VAR in HOME SHELL PATH TERM LOGNAME USER CI TRAVIS TRAVIS_SUDO SSH_AUTH_SOCK SUDO_ASKPASS \
http_proxy https_proxy ftp_proxy no_proxy all_proxy HTTPS_PROXY FTP_PROXY ALL_PROXY \
- "${!HOMEBREW_@}" "${!TRAVIS_@}" "${!JENKINS_@}"
+ "${!HOMEBREW_@}"
do
# Skip if variable value is empty.
[[ -z "${!VAR}" ]] && continue