download_strategy: silence curl on Travis CI.
Use one of the Travis CI default environment variables: http://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables Closes Homebrew/homebrew#44446. Closes https://github.com/travis-ci/travis-ci/issues/4936. Closes Homebrew/homebrew#45561. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
18b2d0150e
commit
68896d14aa
@ -251,7 +251,7 @@ def curl(*args)
|
|||||||
|
|
||||||
args = [flags, HOMEBREW_USER_AGENT, *args]
|
args = [flags, HOMEBREW_USER_AGENT, *args]
|
||||||
args << "--verbose" if ENV["HOMEBREW_CURL_VERBOSE"]
|
args << "--verbose" if ENV["HOMEBREW_CURL_VERBOSE"]
|
||||||
args << "--silent" unless $stdout.tty?
|
args << "--silent" if !$stdout.tty? || ENV["TRAVIS"]
|
||||||
|
|
||||||
safe_system curl, *args
|
safe_system curl, *args
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user