blob: e0a4194c0758e5a5bc87d94916ce8d8a1b9e8594 [file] [log] [blame]
Davide Pesavento0bd37312017-08-20 20:21:13 -04001#!/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
dmcoomesb2ef6ad2018-01-22 16:21:47 -060010 FORMULAE=(boost pkg-config openssl)
Davide Pesavento0bd37312017-08-20 20:21:13 -040011 brew update
12 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[@]}"
Davide Pesavento0bd37312017-08-20 20:21:13 -040022 brew cleanup
23fi
24
25if has Ubuntu $NODE_LABELS; then
26 sudo apt-get -qq update
27 sudo apt-get -qy install build-essential pkg-config libboost-all-dev \
dmcoomesb2ef6ad2018-01-22 16:21:47 -060028 libsqlite3-dev libssl-dev
Davide Pesavento0bd37312017-08-20 20:21:13 -040029
30 if [[ $JOB_NAME == *"code-coverage" ]]; then
31 sudo apt-get -qy install lcov libgd-perl python-setuptools
32 sudo easy_install --upgrade gcovr
33 fi
34fi