mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-23 02:30:12 +01:00
29 lines
1.3 KiB
Text
29 lines
1.3 KiB
Text
|
|
|
||
|
|
require 'echoe'
|
||
|
|
|
||
|
|
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
|