Permalink
Browse files

Ensure ci:test will run at least locally

  • Loading branch information...
1 parent 1aee2ca commit bd725a3800e84b6ba51900673dd1a2613ab93fe3 @peakpg peakpg committed Oct 26, 2012
Showing with 9 additions and 2 deletions.
  1. +2 −2 Rakefile
  2. +7 −0 lib/tasks/core_tasks.rake
View
@@ -80,8 +80,8 @@ task :test => ['project:ensure_db_exists', 'app:test:prepare'] do
end
# Build and run against MySQL.
-task :test_ci => ['project:setup[mysql]', 'db:drop', 'db:create:all', 'db:install', 'test']
-task :default => :test_ci
+task 'ci:test' => ['project:setup:mysql', 'db:drop', 'db:create:all', 'db:install', 'test']
+task :default => 'ci:test'
require 'yard'
YARD::Rake::YardocTask.new do |t|
@@ -43,6 +43,7 @@ namespace :project do
end
end
+
desc 'Copy database.yml files for running tests'
task :setup, :database do |t, args|
drivers = %w(jdbcmysql mysql postgres sqlite3)
@@ -56,4 +57,10 @@ namespace :project do
end
+
+ namespace :setup do
+ task :mysql do
+ Rake::Task['project:setup'].invoke('mysql')
+ end
+ end
end

0 comments on commit bd725a3

Please sign in to comment.