Junxiao Shi | 439d972 | 2015-03-20 15:08:44 -0700 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | set -e |
| 3 | |
| 4 | JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) |
| 5 | source "$JDIR"/util.sh |
| 6 | |
Davide Pesavento | 956ac31 | 2016-09-20 19:11:30 +0200 | [diff] [blame] | 7 | set -x |
| 8 | |
Junxiao Shi | 439d972 | 2015-03-20 15:08:44 -0700 | [diff] [blame] | 9 | if has OSX $NODE_LABELS; then |
Junxiao Shi | 439d972 | 2015-03-20 15:08:44 -0700 | [diff] [blame] | 10 | brew update |
| 11 | brew upgrade |
Davide Pesavento | 956ac31 | 2016-09-20 19:11:30 +0200 | [diff] [blame] | 12 | brew install boost pkg-config cryptopp openssl |
Junxiao Shi | 439d972 | 2015-03-20 15:08:44 -0700 | [diff] [blame] | 13 | brew cleanup |
| 14 | fi |
| 15 | |
| 16 | if has Ubuntu $NODE_LABELS; then |
Davide Pesavento | 0e8edde | 2016-05-03 18:08:39 +0200 | [diff] [blame] | 17 | sudo apt-get -qq update |
| 18 | sudo apt-get -qq install build-essential pkg-config libboost-all-dev \ |
Davide Pesavento | 956ac31 | 2016-09-20 19:11:30 +0200 | [diff] [blame] | 19 | libcrypto++-dev libsqlite3-dev libssl-dev \ |
| 20 | libpcap-dev |
Davide Pesavento | 931dfe8 | 2017-04-29 20:33:45 -0400 | [diff] [blame^] | 21 | |
| 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 Shi | 439d972 | 2015-03-20 15:08:44 -0700 | [diff] [blame] | 26 | fi |