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 | |
| 7 | if has OSX $NODE_LABELS; then |
| 8 | if has OSX-10.8 $NODE_LABELS; then |
| 9 | EXTRA_FLAGS=--c++11 |
| 10 | fi |
| 11 | |
| 12 | set -x |
| 13 | brew update |
| 14 | brew upgrade |
Alexander Afanasyev | 67cb75c | 2016-06-15 12:34:58 -0700 | [diff] [blame^] | 15 | brew install boost pkg-config cryptopp openssl $EXTRA_FLAGS |
Alexander Afanasyev | 8e998e4 | 2016-05-18 13:55:33 -0700 | [diff] [blame] | 16 | brew link --force openssl |
Alexander Afanasyev | b346ddb | 2015-06-03 00:52:03 -0400 | [diff] [blame] | 17 | brew cleanup |
| 18 | fi |
| 19 | |
| 20 | if has Ubuntu $NODE_LABELS; then |
Alexander Afanasyev | b346ddb | 2015-06-03 00:52:03 -0400 | [diff] [blame] | 21 | set -x |
Davide Pesavento | e11c8d8 | 2016-04-16 14:32:07 +0200 | [diff] [blame] | 22 | sudo apt-get -qq update |
| 23 | sudo apt-get -qq install build-essential pkg-config libboost-all-dev \ |
Alexander Afanasyev | 67cb75c | 2016-06-15 12:34:58 -0700 | [diff] [blame^] | 24 | libcrypto++-dev libsqlite3-dev libssl-dev |
Alexander Afanasyev | b346ddb | 2015-06-03 00:52:03 -0400 | [diff] [blame] | 25 | fi |