-
Notifications
You must be signed in to change notification settings - Fork 36
/
Rakefile
25 lines (21 loc) · 928 Bytes
/
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
require 'echoe'
Echoe.new("ultrasphinx") do |p|
p.project = "fauna"
p.summary = "Ruby on Rails configurator and client to the Sphinx fulltext search engine."
p.rdoc_pattern = /is_indexed.rb|search.rb|spell.rb|ultrasphinx.rb|^README|TODO|DEPLOY|RAKE_TASKS|CHANGELOG|^LICENSE/
p.dependencies = "chronic"
p.test_pattern = ["test/integration/*.rb", "test/unit/*.rb"]
p.rcov_options << '--include-file test\/integration\/app\/vendor\/plugins\/ultrasphinx\/lib\/.*\.rb --include-file '
end
desc "Run all the tests for every database adapter"
task "test_all" do
['mysql', 'postgresql'].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