diagnostic: also ignore outdated CLT on Travis CI.

This commit is contained in:
Mike McQuaid 2017-04-02 17:24:33 +01:00
parent c5bac087b3
commit a084776f95

View File

@ -81,6 +81,12 @@ module Homebrew
return unless MacOS::CLT.installed?
return unless MacOS::CLT.outdated?
# Travis CI images are going to end up outdated so don't complain when
# `brew test-bot` runs `brew doctor` in the CI for the Homebrew/brew
# repository. This only needs to support whatever CI provider
# Homebrew/brew is currently using.
return if ENV["TRAVIS"]
<<-EOS.undent
A newer Command Line Tools release is available.
#{MacOS::CLT.update_instructions}