summaryrefslogtreecommitdiff
path: root/tools/travis-before_install.sh
diff options
context:
space:
mode:
authorCraig Earls <enderw88@gmail.com>2015-08-06 19:38:39 -0700
committerCraig Earls <enderw88@gmail.com>2015-08-06 19:38:39 -0700
commit0e82bd0d63bd0a6e9a9c77f0ef55e332b357368c (patch)
treefea3628fe67824069641f517a659cd88287ffdfc /tools/travis-before_install.sh
parent254d82e5eb123feaf87e3f7096a1f8389bac60b3 (diff)
parent3c2d228ddc74b75122b07a87bbd06263092a9661 (diff)
downloadfork-ledger-0e82bd0d63bd0a6e9a9c77f0ef55e332b357368c.tar.gz
fork-ledger-0e82bd0d63bd0a6e9a9c77f0ef55e332b357368c.tar.bz2
fork-ledger-0e82bd0d63bd0a6e9a9c77f0ef55e332b357368c.zip
Merge commit '3c2d228ddc74b75122b07a87bbd06263092a9661' into next
Diffstat (limited to 'tools/travis-before_install.sh')
-rwxr-xr-xtools/travis-before_install.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/travis-before_install.sh b/tools/travis-before_install.sh
new file mode 100755
index 00000000..fe010945
--- /dev/null
+++ b/tools/travis-before_install.sh
@@ -0,0 +1,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