blob: 6b9e10a785f6de13cf5a0860206320ae9c462b2b [file] [log] [blame]
Alexander Afanasyevdf26b5a2015-01-15 23:30:56 -08001#!/usr/bin/env bash
2set -x
3set -e
4
5IS_OSX=$( python -c "print 'yes' if 'OSX' in '$NODE_LABELS'.strip().split(' ') else 'no'" )
6IS_UBUNTU=$( python -c "print 'yes' if 'Ubuntu' in '$NODE_LABELS'.strip().split(' ') else 'no'" )
7
8if [[ $IS_OSX == "yes" ]]; then
9 brew update
10 brew upgrade
11 brew install boost cryptopp pkg-config libxml2
12 brew link --force libxml2
13 brew cleanup
14fi
15
16if [[ $IS_UBUNTU == "yes" ]]; then
Alexander Afanasyev15db7722015-01-19 17:27:26 -080017 sudo apt-get update -qq -y
18 sudo apt-get -qq -y install build-essential
19 sudo apt-get -qq -y install libssl-dev libsqlite3-dev libcrypto++-dev
Alexander Afanasyevdf26b5a2015-01-15 23:30:56 -080020
21 IS_12_04=$( python -c "print 'yes' if 'Ubuntu-12.04' in '$NODE_LABELS'.strip().split(' ') else 'no'" )
22 if [[ $IS_12_04 == "yes" ]]; then
Alexander Afanasyev15db7722015-01-19 17:27:26 -080023 sudo apt-get install -qq -y python-software-properties
Alexander Afanasyevdf26b5a2015-01-15 23:30:56 -080024 sudo add-apt-repository -y ppa:boost-latest/ppa
Alexander Afanasyev15db7722015-01-19 17:27:26 -080025 sudo apt-get update -qq -y
26 sudo apt-get install -qq -y libboost1.55-all-dev
27 sudo apt-get install -qq -y python-gnomedesktop
Alexander Afanasyevdf26b5a2015-01-15 23:30:56 -080028 else
Alexander Afanasyev15db7722015-01-19 17:27:26 -080029 sudo apt-get install -qq -y libboost-all-dev
Alexander Afanasyevdf26b5a2015-01-15 23:30:56 -080030 fi
31
Alexander Afanasyev15db7722015-01-19 17:27:26 -080032 sudo apt-get install -qq -y python-dev python-pygraphviz python-kiwi
33 sudo apt-get install -qq -y python-pygoocanvas python-gnome2
34 sudo apt-get install -qq -y python-rsvg ipython
Alexander Afanasyevdf26b5a2015-01-15 23:30:56 -080035fi