blob: 6146177c132979107778768ae8630a9985b58bd8 [file] [log] [blame]
Junxiao Shi439d9722015-03-20 15:08:44 -07001#!/usr/bin/env bash
2set -e
3
4JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
5source "$JDIR"/util.sh
6
Davide Pesavento956ac312016-09-20 19:11:30 +02007set -x
8
Junxiao Shi439d9722015-03-20 15:08:44 -07009if has OSX $NODE_LABELS; then
Junxiao Shi439d9722015-03-20 15:08:44 -070010 brew update
11 brew upgrade
Davide Pesavento956ac312016-09-20 19:11:30 +020012 brew install boost pkg-config cryptopp openssl
Junxiao Shi439d9722015-03-20 15:08:44 -070013 brew cleanup
14fi
15
16if has Ubuntu $NODE_LABELS; then
Davide Pesavento0e8edde2016-05-03 18:08:39 +020017 sudo apt-get -qq update
18 sudo apt-get -qq install build-essential pkg-config libboost-all-dev \
Davide Pesavento956ac312016-09-20 19:11:30 +020019 libcrypto++-dev libsqlite3-dev libssl-dev \
20 libpcap-dev
Davide Pesavento931dfe82017-04-29 20:33:45 -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
Junxiao Shi439d9722015-03-20 15:08:44 -070026fi