blob: 6b9e10a785f6de13cf5a0860206320ae9c462b2b [file] [log] [blame]
#!/usr/bin/env bash
set -x
set -e
IS_OSX=$( python -c "print 'yes' if 'OSX' in '$NODE_LABELS'.strip().split(' ') else 'no'" )
IS_UBUNTU=$( python -c "print 'yes' if 'Ubuntu' in '$NODE_LABELS'.strip().split(' ') else 'no'" )
if [[ $IS_OSX == "yes" ]]; then
brew update
brew upgrade
brew install boost cryptopp pkg-config libxml2
brew link --force libxml2
brew cleanup
fi
if [[ $IS_UBUNTU == "yes" ]]; then
sudo apt-get update -qq -y
sudo apt-get -qq -y install build-essential
sudo apt-get -qq -y install libssl-dev libsqlite3-dev libcrypto++-dev
IS_12_04=$( python -c "print 'yes' if 'Ubuntu-12.04' in '$NODE_LABELS'.strip().split(' ') else 'no'" )
if [[ $IS_12_04 == "yes" ]]; then
sudo apt-get install -qq -y python-software-properties
sudo add-apt-repository -y ppa:boost-latest/ppa
sudo apt-get update -qq -y
sudo apt-get install -qq -y libboost1.55-all-dev
sudo apt-get install -qq -y python-gnomedesktop
else
sudo apt-get install -qq -y libboost-all-dev
fi
sudo apt-get install -qq -y python-dev python-pygraphviz python-kiwi
sudo apt-get install -qq -y python-pygoocanvas python-gnome2
sudo apt-get install -qq -y python-rsvg ipython
fi