Alexander Afanasyev | df26b5a | 2015-01-15 23:30:56 -0800 | [diff] [blame^] | 1 | #!/usr/bin/env bash |
| 2 | set -x |
| 3 | set -e |
| 4 | |
| 5 | IS_OSX=$( python -c "print 'yes' if 'OSX' in '$NODE_LABELS'.strip().split(' ') else 'no'" ) |
| 6 | IS_UBUNTU=$( python -c "print 'yes' if 'Ubuntu' in '$NODE_LABELS'.strip().split(' ') else 'no'" ) |
| 7 | |
| 8 | if [[ $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 |
| 14 | fi |
| 15 | |
| 16 | if [[ $IS_UBUNTU == "yes" ]]; then |
| 17 | sudo apt-get update -q -y |
| 18 | sudo apt-get -y install build-essential |
| 19 | sudo apt-get -y install libssl-dev libsqlite3-dev libcrypto++-dev |
| 20 | |
| 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 |
| 23 | sudo apt-get install -y python-software-properties |
| 24 | sudo add-apt-repository -y ppa:boost-latest/ppa |
| 25 | sudo apt-get update -q -y |
| 26 | sudo apt-get install -y libboost1.55-all-dev |
| 27 | sudo apt-get install -y python-gnomedesktop |
| 28 | else |
| 29 | sudo apt-get install -y libboost-all-dev |
| 30 | fi |
| 31 | |
| 32 | sudo apt-get install -y python-dev python-pygraphviz python-kiwi |
| 33 | sudo apt-get install -y python-pygoocanvas python-gnome2 |
| 34 | sudo apt-get install -y python-rsvg ipython |
| 35 | fi |