From 81ee98c17c96aed21d437457e4917fe6a3a8c47b Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Wed, 29 Jul 2015 00:21:08 +0200 Subject: [travis] Add multi-os build configuration and use a custom build of boost. --- tools/travis-before_install.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 tools/travis-before_install.sh (limited to 'tools/travis-before_install.sh') diff --git a/tools/travis-before_install.sh b/tools/travis-before_install.sh new file mode 100755 index 00000000..fe010945 --- /dev/null +++ b/tools/travis-before_install.sh @@ -0,0 +1,16 @@ +#!/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 -- cgit v1.2.3