diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2015-07-31 10:29:51 +0200 |
---|---|---|
committer | Alexis Hildebrandt <afh@surryhill.net> | 2015-07-31 11:43:32 +0200 |
commit | 1ef946a9b9b45698fd0fc603c196c58072fb735c (patch) | |
tree | e3e52e2b198ee3886f6b343bad739c393ce1e019 /tools/travis-before_install.sh | |
parent | e03f6dab61451552403f4f36142e4d4a2e3aece1 (diff) | |
download | ledger-1ef946a9b9b45698fd0fc603c196c58072fb735c.tar.gz ledger-1ef946a9b9b45698fd0fc603c196c58072fb735c.tar.bz2 ledger-1ef946a9b9b45698fd0fc603c196c58072fb735c.zip |
[travis] Fix Travis CI builds
Add multi-os build configuration
and use a custom build of boost.
Diffstat (limited to 'tools/travis-before_install.sh')
-rwxr-xr-x | tools/travis-before_install.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/travis-before_install.sh b/tools/travis-before_install.sh new file mode 100755 index 00000000..a1800021 --- /dev/null +++ b/tools/travis-before_install.sh @@ -0,0 +1,17 @@ +#!/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 + echo "Downloading boost ${BOOST_VERSION}" + 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 |