Skip to content

Instantly share code, notes, and snippets.

@supertopher
Created June 4, 2015 16:38
Show Gist options
  • Save supertopher/5a1f7a3b7900674f7d6e to your computer and use it in GitHub Desktop.
Save supertopher/5a1f7a3b7900674f7d6e to your computer and use it in GitHub Desktop.
testup.sh
#!/bin/sh
# set -e
cd part-2
bundle
bundle exec rake db:drop
bundle exec rake db:create
bundle exec rake db:migrate
bundle exec rake db:test:prepare
cd ..
cd part-3
bundle
bundle exec rake db:drop
bundle exec rake db:create
bundle exec rake db:migrate
bundle exec rake db:test:prepare
cd ..
echo "-----------------------------------------------------"
echo "--------------START PART 2---------------------------"
cd part-2
bundle exec rspec
cd ..
echo "-----------------------------------------------------"
echo "--------------START PART 3---------------------------"
cd part-3
bundle exec rspec
cd ..
@supertopher
Copy link
Author

to install this to /usr/bin/local download it and run

cp testup /usr/local/bin/
chmod +x /usr/local/bin/testup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment