From a084776f95d6bb94985cc6f74757b40e4e4ba57b Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 2 Apr 2017 17:24:33 +0100 Subject: diagnostic: also ignore outdated CLT on Travis CI. --- Library/Homebrew/extend/os/mac/diagnostic.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Library') diff --git a/Library/Homebrew/extend/os/mac/diagnostic.rb b/Library/Homebrew/extend/os/mac/diagnostic.rb index c7dabde2b..fb6b30836 100644 --- a/Library/Homebrew/extend/os/mac/diagnostic.rb +++ b/Library/Homebrew/extend/os/mac/diagnostic.rb @@ -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} -- cgit v1.2.3