Stop using brew if not needed -- fix build on XCode9 image

This commit is contained in:
Martin Hořeňovský 2017-11-27 22:34:44 +01:00
parent e3941a9ad2
commit 20211a33e6

View File

@ -193,13 +193,7 @@ install:
mkdir cmake && travis_retry wget --no-check-certificate --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake
export PATH=${DEPS_DIR}/cmake/bin:${PATH}
elif [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
for pkg in cmake lcov; do
if brew list -1 | grep -q "^${pkg}\$"; then
brew outdated $pkg || brew upgrade $pkg;
else
brew install $pkg;
fi
done
which cmake || brew install cmake;
fi
before_script: