Skip to content

Instantly share code, notes, and snippets.

@foca
Created January 15, 2009 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save foca/962e6ccd1e0389265e70 to your computer and use it in GitHub Desktop.
Save foca/962e6ccd1e0389265e70 to your computer and use it in GitHub Desktop.
echo "Testing against postgres";
sudo gem uninstall pg;
sudo gem install postgres;
rake blah:blah:blah # run activerecord tests against postgres
POSTGRES_RESULT=$?
# ... same for every lib and dependency you need
$POSTGRES_RESULT && $PG_RESULT && $MYSQL_RESULT && ....
# as long as the script ends by returning the "correct" status code
# you can run whatever you need inside of it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment