ledger/tools/travis-before_install.sh
Alexis Hildebrandt 81ee98c17c [travis] Add multi-os build configuration
and use a custom build of boost.
2015-07-31 03:30:58 +02:00

16 lines
389 B
Bash
Executable file

#!/usr/bin/env bash
#set -x
set -e
set -o pipefail
if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
brew update
fi
if [ -n "${BOOST_VERSION}" ]; then
mkdir -p $BOOST_ROOT
wget --no-verbose --output-document=- \
http://sourceforge.net/projects/boost/files/boost/${BOOST_VERSION}/boost_${BOOST_VERSION//./_}.tar.bz2/download \
| tar jxf - --strip-components=1 -C "${BOOST_ROOT}"
fi