forked from evan/has_many_polymorphs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
46 lines (41 loc) · 1.93 KB
/
Rakefile
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#require 'echoe'
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rcov/rcovtask'
begin
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = %q{has_many_polymorphs}
s.summary = "An ActiveRecord plugin for self-referential and double-sided polymorphic associations."
s.email = %q{}
s.homepage = "http://blog.evanweaver.com/files/doc/fauna/has_many_polymorphs/"
s.description = %q{An ActiveRecord plugin for self-referential and double-sided polymorphic associations.}
s.authors = ["Evan Weaver"]
end
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
#Echoe.new("has_many_polymorphs") do |p|
# p.project = "fauna"
# p.summary = "An ActiveRecord plugin for self-referential and double-sided polymorphic associations."
# p.url = "http://blog.evanweaver.com/files/doc/fauna/has_many_polymorphs/"
# p.docs_host = "blog.evanweaver.com:~/www/bax/public/files/doc/"
# p.dependencies = ["activerecord"]
# p.rdoc_pattern = /polymorphs\/association|polymorphs\/class_methods|polymorphs\/reflection|polymorphs\/autoload|polymorphs\/configuration|README|CHANGELOG|TODO|LICENSE|templates\/migration\.rb|templates\/tag\.rb|templates\/tagging\.rb|templates\/tagging_extensions\.rb/
# p.require_signed = true
# p.clean_pattern += ["**/ruby_sess*", "**/generated_models/**"]
# p.test_pattern = ["test/unit/*_test.rb", "test/integration/*_test.rb", "test/generator/*_test.rb"]
#end
desc "Run all the tests for every database adapter"
task "test_all" do
['mysql', 'postgresql', 'sqlite3'].each do |adapter|
ENV['DB'] = adapter
ENV['PRODUCTION'] = nil
STDERR.puts "#{'='*80}\nDevelopment mode for #{adapter}\n#{'='*80}"
system("rake test:multi_rails:all")
ENV['PRODUCTION'] = '1'
STDERR.puts "#{'='*80}\nProduction mode for #{adapter}\n#{'='*80}"
system("rake test:multi_rails:all")
end
end