-
Notifications
You must be signed in to change notification settings - Fork 136
/
Rakefile
40 lines (32 loc) · 850 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
require 'bundler'
Bundler::GemHelper.install_tasks
require 'rspec/core'
require 'rspec/core/rake_task'
require 'rdoc/task'
RSpec::Core::RakeTask.new(:spec)
task default: 'spec'
namespace :spec do
mappers = %w[
rails-3-2-stable
rails-4-1-stable
rails-4-2-stable
rails-5-2-stable
rails-6-0-stable
rails-6-1-stable
]
mappers.each do |gemfile|
desc "Run Tests against #{gemfile}"
task gemfile do
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle -j 4 --quiet"
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle exec rake -t spec"
end
end
desc 'Run Tests against all ORMs'
task all: mappers
end
RDoc::Task.new do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'SimpleNavigation'
rdoc.options << '--inline-source'
rdoc.rdoc_files.include('README.md', 'lib/**/*.rb')
end