Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Jenkins - Build - Execute Shell
read -d '' database_yml <<"EOF"
login: &login
adapter: mysql2
host: localhost
username: root
encoding: utf8
collation: utf8_general_ci
test: &test
database: your_db_name
<<: *login
echo "$database_yml" > config/database.yml
source "/usr/local/rvm/scripts/rvm"
rvm use 1.9.3
export RAILS_ENV=test
rake db:create
rake db:migrate
rake db:test:prepare
rake spec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment