diff options
author | RJ Catalano <rj@monax.io> | 2017-02-03 08:52:59 +0800 |
---|---|---|
committer | RJ Catalano <rj@monax.io> | 2017-02-10 01:30:57 +0800 |
commit | 00feec567afbedc0b09805d7226c94c1d96c0c2a (patch) | |
tree | 13bd4b8d3d8534f2cd5364c6a6d2b7b31dfffa4a /scripts/install_deps.sh | |
parent | 503cf4eaebabf03b8d541bd8f9c9c833daceec63 (diff) | |
download | dexon-solidity-00feec567afbedc0b09805d7226c94c1d96c0c2a.tar dexon-solidity-00feec567afbedc0b09805d7226c94c1d96c0c2a.tar.gz dexon-solidity-00feec567afbedc0b09805d7226c94c1d96c0c2a.tar.bz2 dexon-solidity-00feec567afbedc0b09805d7226c94c1d96c0c2a.tar.lz dexon-solidity-00feec567afbedc0b09805d7226c94c1d96c0c2a.tar.xz dexon-solidity-00feec567afbedc0b09805d7226c94c1d96c0c2a.tar.zst dexon-solidity-00feec567afbedc0b09805d7226c94c1d96c0c2a.zip |
reorganize deps installation
Signed-off-by: RJ Catalano <rj@monax.io>
Diffstat (limited to 'scripts/install_deps.sh')
-rwxr-xr-x | scripts/install_deps.sh | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/scripts/install_deps.sh b/scripts/install_deps.sh index f21c48d0..869bce35 100755 --- a/scripts/install_deps.sh +++ b/scripts/install_deps.sh @@ -57,7 +57,7 @@ detect_linux_distro() { # extract 'foo' from NAME=foo, only on the line with NAME=foo DISTRO=$(sed -n -e 's/^NAME="\(.*\)\"/\1/p' /etc/os-release) elif [ -f /etc/centos-release ]; then - DISTRO=CentOS + DISTRO=CentOS else DISTRO='' fi @@ -93,19 +93,17 @@ case $(uname -s) in # Check for Homebrew install and abort if it is not installed. brew -v > /dev/null 2>&1 || { echo >&2 "ERROR - solidity requires a Homebrew install. See http://brew.sh."; exit 1; } - brew update - brew upgrade - brew install boost brew install cmake - - # We should really 'brew install' our eth client here, but at the time of writing - # the bottle is known broken, so we will just cheat and use a hardcoded ZIP for - # the time being, which is good enough. The cause of the breaks will go away - # when we commit the repository reorg changes anyway. - curl -L -O https://github.com/bobsummerwill/cpp-ethereum/releases/download/v1.3.0/cpp-ethereum-osx-mavericks-v1.3.0.zip - unzip cpp-ethereum-osx-mavericks-v1.3.0.zip + if ["$CI" = true]; then + brew upgrade cmake + brew tap ethereum/ethereum + brew install cpp-ethereum + brew linkapps cpp-ethereum + else + brew upgrade + fi ;; @@ -207,7 +205,6 @@ case $(uname -s) in # Install "normal packages" sudo apt-get -y update sudo apt-get -y install \ - python-sphinx \ build-essential \ cmake \ g++ \ @@ -311,17 +308,17 @@ case $(uname -s) in sudo apt-get -y update sudo apt-get -y install \ - python-sphinx \ build-essential \ cmake \ git \ libboost-all-dev - - # Install 'eth', for use in the Solidity Tests-over-IPC. - sudo add-apt-repository -y ppa:ethereum/ethereum - sudo add-apt-repository -y ppa:ethereum/ethereum-dev - sudo apt-get -y update - sudo apt-get -y install eth + if [ "$CI" = true ]; then + # Install 'eth', for use in the Solidity Tests-over-IPC. + sudo add-apt-repository -y ppa:ethereum/ethereum + sudo add-apt-repository -y ppa:ethereum/ethereum-dev + sudo apt-get -y update + sudo apt-get -y install eth + fi ;; @@ -397,4 +394,4 @@ case $(uname -s) in echo "If you would like to get your operating system working, that would be fantastic." echo "Drop us a message at https://gitter.im/ethereum/solidity." ;; -esac +esac
\ No newline at end of file |