From 26287be0dccc51730608475fdde8f0b3f474e20e Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Sun, 12 Jan 2014 23:50:42 -0500 Subject: check if openssl is installed via homebrew on osx. install if not --- .travis/install.sh | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to '.travis/install.sh') diff --git a/.travis/install.sh b/.travis/install.sh index 8d6840f2..fd210d43 100755 --- a/.travis/install.sh +++ b/.travis/install.sh @@ -3,10 +3,17 @@ set -e set -x -if [[ "${OPENSSL}" == "0.9.8" && "$(uname -s)" != "Darwin" ]]; then - sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ lucid main" - sudo apt-get -y update - sudo apt-get install -y --force-yes libssl-dev/lucid +if [[ "${OPENSSL}" == "0.9.8" ]]; then + if [[ "$(uname -s)" != "Darwin" ]]; then + sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ lucid main" + sudo apt-get -y update + sudo apt-get install -y --force-yes libssl-dev/lucid + else + # travis has openssl installed via brew already, but let's be sure + if [[ "$(brew list | grep openssl)" != "openssl" ]]; then + brew install openssl + fi + fi fi if [[ "$(uname -s)" == "Darwin" ]]; then -- cgit v1.2.3