forked from pinnymz/migration_comments
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
32 lines (26 loc) · 621 Bytes
/
Rakefile
File metadata and controls
32 lines (26 loc) · 621 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
require "bundler/gem_tasks"
require "rake/testtask"
task :default => [:test]
Rake::TestTask.new do |t|
t.libs << "test"
t.test_files = FileList['test/*_test.rb']
t.verbose = true
end
namespace :test do
task all: [:postgres, :mysql, :sqlite]
task :postgres do
ENV['DB'] = 'postgres'
puts "\n\nrunning PostgreSQL tests..."
Rake::Task['test'].execute
end
task :mysql do
ENV['DB'] = 'mysql'
puts "\n\nrunning MySQL tests..."
Rake::Task['test'].execute
end
task :sqlite do
ENV['DB'] = 'sqlite'
puts "\n\nrunning SQLite tests..."
Rake::Task['test'].execute
end
end