Last active
August 29, 2015 14:02
-
-
Save grahamc/f267d0ee12c867ff463c 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 -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 |
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 -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