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
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