Install dependencies on Mac OS X Travis CI

This commit is contained in:
Sebastian Messmer 2016-02-17 09:13:02 +01:00
parent 009e5b7b9f
commit c3e0c47c46
2 changed files with 14 additions and 9 deletions

View File

@ -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

12
travis.install_boost.sh Executable file
View File

@ -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