summaryrefslogtreecommitdiff
path: root/tools/travis-before_install.sh
blob: fe010945cb3f0b21573d4f8289b6a69a2a3f163d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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