blob: 6146177c132979107778768ae8630a9985b58bd8 [file] [log] [blame]
Alexander Afanasyevb81cff92015-07-09 09:45:09 +08001#!/usr/bin/env bash
2set -e
3
4JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
5source "$JDIR"/util.sh
6
Davide Pesaventoe0edc4c2016-09-13 18:29:52 +00007set -x
Alexander Afanasyevb81cff92015-07-09 09:45:09 +08008
Davide Pesaventoe0edc4c2016-09-13 18:29:52 +00009if has OSX $NODE_LABELS; then
Alexander Afanasyevb81cff92015-07-09 09:45:09 +080010 brew update
11 brew upgrade
Davide Pesaventoe0edc4c2016-09-13 18:29:52 +000012 brew install boost pkg-config cryptopp openssl
Alexander Afanasyevb81cff92015-07-09 09:45:09 +080013 brew cleanup
14fi
15
16if has Ubuntu $NODE_LABELS; then
Davide Pesaventocc7bee72016-04-22 02:21:13 +020017 sudo apt-get -qq update
18 sudo apt-get -qq install build-essential pkg-config libboost-all-dev \
Davide Pesavento231ddd72016-09-02 22:20:00 +000019 libcrypto++-dev libsqlite3-dev libssl-dev \
20 libpcap-dev
Davide Pesavento8d61c032017-04-29 20:06:33 -040021
22 if [[ $JOB_NAME == *"code-coverage" ]]; then
23 sudo apt-get -qq install lcov libgd-perl python-setuptools
24 sudo easy_install --upgrade gcovr
25 fi
Alexander Afanasyevb81cff92015-07-09 09:45:09 +080026fi