blob: 468075a843ad45179100c8ef20f85928818668c5 [file] [log] [blame]
Alexander Afanasyevb346ddb2015-06-03 00:52:03 -04001#!/usr/bin/env bash
2set -e
3
4JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
5source "$JDIR"/util.sh
6
Davide Pesavento09348882016-09-17 02:39:44 +02007set -x
Alexander Afanasyevb346ddb2015-06-03 00:52:03 -04008
Davide Pesavento09348882016-09-17 02:39:44 +02009if has OSX $NODE_LABELS; then
Alexander Afanasyevb346ddb2015-06-03 00:52:03 -040010 brew update
11 brew upgrade
Davide Pesavento09348882016-09-17 02:39:44 +020012 brew install boost pkg-config cryptopp openssl
Alexander Afanasyevb346ddb2015-06-03 00:52:03 -040013 brew cleanup
14fi
15
16if has Ubuntu $NODE_LABELS; then
Davide Pesaventoe11c8d82016-04-16 14:32:07 +020017 sudo apt-get -qq update
18 sudo apt-get -qq install build-essential pkg-config libboost-all-dev \
Alexander Afanasyev67cb75c2016-06-15 12:34:58 -070019 libcrypto++-dev libsqlite3-dev libssl-dev
Davide Pesaventoc44cc832017-04-03 22:11:48 -040020
21 if [[ $JOB_NAME == *"code-coverage" ]]; then
22 sudo apt-get -qq install lcov libgd-perl python-setuptools
23 sudo easy_install --upgrade gcovr
24 fi
Alexander Afanasyevb346ddb2015-06-03 00:52:03 -040025fi