blob: 95c244798f1c0bfddcddbefb708e016e02b85b2f [file] [log] [blame]
Alexander Afanasyevf3192eb2016-12-19 17:11:20 -08001#!/usr/bin/env bash
2set -e
3
4JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
5source "$JDIR"/util.sh
6
7set -x
8
9if has OSX $NODE_LABELS; then
Davide Pesavento7ef57e22017-10-28 16:58:43 -040010 FORMULAE=(boost openssl pkg-config)
Alexander Afanasyevf3192eb2016-12-19 17:11:20 -080011 brew update
Davide Pesavento7ef57e22017-10-28 16:58:43 -040012 if [[ -n $TRAVIS ]]; then
13 # travis images come with a large number of brew packages
14 # pre-installed, don't waste time upgrading all of them
15 for FORMULA in "${FORMULAE[@]}"; do
16 brew outdated $FORMULA || brew upgrade $FORMULA
17 done
18 else
19 brew upgrade
20 fi
21 brew install "${FORMULAE[@]}"
Alexander Afanasyevf3192eb2016-12-19 17:11:20 -080022 brew cleanup
23fi
24
25if has Ubuntu $NODE_LABELS; then
26 sudo apt-get -qq update
Davide Pesavento7ef57e22017-10-28 16:58:43 -040027 sudo apt-get -qy install build-essential pkg-config libboost-all-dev \
28 libsqlite3-dev libssl-dev
Alexander Afanasyevf3192eb2016-12-19 17:11:20 -080029fi