Skip to content

Instantly share code, notes, and snippets.

@railslove
Created July 5, 2009 12:19
Show Gist options
  • Save railslove/140958 to your computer and use it in GitHub Desktop.
Save railslove/140958 to your computer and use it in GitHub Desktop.
desc "Task to run all required tasks to perform continuos integration with integrity/hudson"
task :cc do
RAILS_ENV = ENV['RAILS_ENV'] = 'test'
Rake::Task["test:move_test_db_config"].invoke
Rake::Task["gems:install"].invoke
Rake::Task["db:drop"].invoke
Rake::Task["db:create"].invoke
Rake::Task["db:migrate"].invoke
Rake::Task["test"].invoke
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment