Created
September 30, 2016 21:30
-
-
Save DennisDenuto/959a448ee1645f71467d89bb86d0d149 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -xeu | |
cd ~/workspace/ | |
curl -o /usr/local/bin/cred-alert-cli https://s3.amazonaws.com/cred-alert/cli/current-release/cred-alert-cli_darwin | |
chmod +x /usr/local/bin/cred-alert-cli | |
curl -o /tmp/remove_git_hooks.sh https://raw.githubusercontent.com/pivotal-sprout/sprout-git/master/share/remove_git_hooks.sh | |
sed -i '' 's/check_for_project_hooks$/#check_for_project_hooks/' /tmp/remove_git_hooks.sh | |
sed -i '' 's/check_and_remove_project_local_hooks$/#check_and_remove_project_local_hooks/' /tmp/remove_git_hooks.sh | |
bash /tmp/remove_git_hooks.sh | |
set +e | |
brew update | |
/usr/local/bin/brew upgrade git | |
/usr/local/bin/brew install rbenv | |
/usr/local/bin/rbenv install 2.3.1 | |
set -e | |
if [[ ! -d sprout-bosh ]]; then | |
git clone git@github.com:cloudfoundry/sprout-bosh.git | |
fi | |
pushd sprout-bosh | |
git fetch | |
git rebase --autostash | |
rbenv local 2.3.1 | |
gem install bundler | |
bundle | |
bundle exec soloist run_recipe sprout-git::git_hooks_core | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment