travis-before_install.sh 389 B

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