Skip to content

Instantly share code, notes, and snippets.

@prathamesh-sonpatki
Created May 4, 2013 06:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prathamesh-sonpatki/5516512 to your computer and use it in GitHub Desktop.
Save prathamesh-sonpatki/5516512 to your computer and use it in GitHub Desktop.
source $HOME/.bashrc
rvm use 1.9.3
bundle install
read -d '' database_yml <<"EOF"
login: &login
adapter: "postgresql"
encoding: utf8
username: "postgres"
password: "postgres"
test: &test
database: ci_database
<<: *login
EOF
echo "$database_yml" > config/database.yml
RAILS_ENV=test bundle exec rake db:create
RAILS_ENV=test bundle exec rake db:migrate
RAILS_ENV=test bundle exec rake db:test:prepare
RAILS_ENV=test bundle exec rake db:seed
RAILS_ENV=test bundle exec rake --trace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment