From 3d6db3261b124bc1705eb647f8c8bea89d936af6 Mon Sep 17 00:00:00 2001 From: Andrea Mattavelli Date: Mon, 6 Mar 2017 14:45:35 +0000 Subject: [Travis-CI] Added support for macOS build --- .travis/testing-utils.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to '.travis/testing-utils.sh') diff --git a/.travis/testing-utils.sh b/.travis/testing-utils.sh index 3d52457f..29295be2 100755 --- a/.travis/testing-utils.sh +++ b/.travis/testing-utils.sh @@ -18,11 +18,16 @@ if [ "${LLVM_VERSION}" != "2.9" ]; then cmake . make # Normally I wouldn't do something like this but hey we're running on a temporary virtual machine, so who cares? - sudo cp lib* /usr/lib/ - sudo cp -r include/gtest /usr/include + if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then + sudo cp lib* /usr/lib/ + sudo cp -r include/gtest /usr/include + else # OSX + sudo cp lib* /usr/local/lib/ + sudo cp -r include/gtest /usr/local/include + fi else # LLVM2.9 on the other hand is a pain - + # We need the version of GoogleTest used in LLVM2.9 # This is a hack old_dir=`pwd` @@ -45,4 +50,3 @@ else cd "${old_dir}" fi - -- cgit 1.4.1