From c3e0c47c4633c61f87cb62c0b89e57eaeeed9cbb Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Wed, 17 Feb 2016 09:13:02 +0100 Subject: [PATCH] Install dependencies on Mac OS X Travis CI --- .travis.yml | 11 ++--------- travis.install_boost.sh | 12 ++++++++++++ 2 files changed, 14 insertions(+), 9 deletions(-) create mode 100755 travis.install_boost.sh diff --git a/.travis.yml b/.travis.yml index cee7d8e0..80ea4285 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,15 +20,8 @@ install: # Detect number of CPU cores - export NUMCORES=`grep -c ^processor /proc/cpuinfo` && if [ ! -n "$NUMCORES" ]; then export NUMCORES=`sysctl -n hw.ncpu`; fi - echo Using $NUMCORES cores -# Install boost -- wget -O boost.tar.bz2 https://sourceforge.net/projects/boost/files/boost/1.56.0/boost_1_56_0.tar.bz2/download -- tar -xf boost.tar.bz2 -- cd boost_1_56_0 -# TODO We should use clang as toolchain for building boost when clang is used for building our code -- ./bootstrap.sh --with-libraries=filesystem,thread,chrono,program_options -- sudo ./b2 -d0 -j$NUMCORES install -- cd .. -- sudo rm -rf boost.tar.bz2 boost_1_56_0 +- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then ./travis.install_boost.sh; fi +- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then brew upgrade boost && brew install cryptopp osxfuse; fi # Install run_with_fuse.sh - mkdir cmake - cd cmake diff --git a/travis.install_boost.sh b/travis.install_boost.sh new file mode 100755 index 00000000..465f2b8c --- /dev/null +++ b/travis.install_boost.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +set -e + +wget -O boost.tar.bz2 https://sourceforge.net/projects/boost/files/boost/1.56.0/boost_1_56_0.tar.bz2/download +tar -xf boost.tar.bz2 +cd boost_1_56_0 +# TODO We should use clang as toolchain for building boost when clang is used for building our code +./bootstrap.sh --with-libraries=filesystem,thread,chrono,program_options +sudo ./b2 -d0 -j$NUMCORES install +cd .. +sudo rm -rf boost.tar.bz2 boost_1_56_0