Skip to content

Instantly share code, notes, and snippets.

@grahamc
Last active August 29, 2015 14:02
Show Gist options
  • Save grahamc/f267d0ee12c867ff463c to your computer and use it in GitHub Desktop.
Save grahamc/f267d0ee12c867ff463c to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
vagrant ssh -c "bundle install"
vagrant ssh -c "rake db:test:prepare"
vagrant ssh -c "rspec spec/"
vagrant ssh -c "cucumber features/"
exit 0
#!/bin/bash
#set -x
for i in `vagrant ssh -c "bundle outdated" | grep '*' | cut -d' ' -f4`; do
vagrant ssh -c "bundle update --source ${i}"
if ./test.sh; then
git add Gemfile.lock
git commit -m "Updated gem: ${i}"
else
echo "Gem failed: ${i}"
git reset --hard
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment