travis-install.sh 479 B

1234567891011121314151617181920212223
  1. #!/usr/bin/env bash
  2. #set -x
  3. set -e
  4. set -o pipefail
  5. if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
  6. for formula in $(echo "${BREWS//,/ }"); do
  7. echo "Checking ${formula} formula"
  8. brew outdated "${formula}" \
  9. || (brew unlink "${formula}"
  10. brew install "${formula}"
  11. )
  12. done
  13. fi
  14. if [ -d "${BOOST_ROOT}" ]; then
  15. (cd "${BOOST_ROOT}"
  16. ./bootstrap.sh --with-libraries="${BOOST_LIBS}"
  17. ./b2 threading=multi --prefix="${BOOST_ROOT}" -d0 install
  18. )
  19. fi