Alexander Afanasyev | b346ddb | 2015-06-03 00:52:03 -0400 | [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 | 0934888 | 2016-09-17 02:39:44 +0200 | [diff] [blame] | 7 | set -x |
Alexander Afanasyev | b346ddb | 2015-06-03 00:52:03 -0400 | [diff] [blame] | 8 | |
Davide Pesavento | 0934888 | 2016-09-17 02:39:44 +0200 | [diff] [blame] | 9 | if has OSX $NODE_LABELS; then |
Alexander Afanasyev | b346ddb | 2015-06-03 00:52:03 -0400 | [diff] [blame] | 10 | brew update |
| 11 | brew upgrade |
Davide Pesavento | 0934888 | 2016-09-17 02:39:44 +0200 | [diff] [blame] | 12 | brew install boost pkg-config cryptopp openssl |
Alexander Afanasyev | b346ddb | 2015-06-03 00:52:03 -0400 | [diff] [blame] | 13 | brew cleanup |
| 14 | fi |
| 15 | |
| 16 | if has Ubuntu $NODE_LABELS; then |
Davide Pesavento | e11c8d8 | 2016-04-16 14:32:07 +0200 | [diff] [blame] | 17 | sudo apt-get -qq update |
| 18 | sudo apt-get -qq install build-essential pkg-config libboost-all-dev \ |
Alexander Afanasyev | 67cb75c | 2016-06-15 12:34:58 -0700 | [diff] [blame] | 19 | libcrypto++-dev libsqlite3-dev libssl-dev |
Davide Pesavento | c44cc83 | 2017-04-03 22:11:48 -0400 | [diff] [blame] | 20 | |
| 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 Afanasyev | b346ddb | 2015-06-03 00:52:03 -0400 | [diff] [blame] | 25 | fi |