ledger/tools/travis-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

22 lines
479 B
Bash
Executable file

#!/usr/bin/env bash
#set -x
set -e
set -o pipefail
if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
for formula in $(echo "${BREWS//,/ }"); do
echo "Checking ${formula} formula"
brew outdated "${formula}" \
|| (brew unlink "${formula}"
brew install "${formula}"
)
done
fi
if [ -d "${BOOST_ROOT}" ]; then
(cd "${BOOST_ROOT}"
./bootstrap.sh --with-libraries="${BOOST_LIBS}"
./b2 threading=multi --prefix="${BOOST_ROOT}" -d0 install
)
fi