Only used brew if osx is defined

This commit is contained in:
Xawotihs
2017-09-04 20:16:31 +02:00
committed by GitHub
parent 068a69c80b
commit 55f8a8a1d0

View File

@@ -94,7 +94,8 @@ install:
mkdir -p cmake && travis_retry wget --no-check-certificate --quiet -O - "${CMAKE_URL}" | tar --strip-components=1 -xz -C cmake
fi
export PATH="${DEPS_DIR}/cmake/bin:${PATH}"
else
fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
if ! brew ls --version cmake &>/dev/null; then brew install cmake; fi
fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then