forked from andreapavoni/panoramic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
33 lines (26 loc) · 716 Bytes
/
Rakefile
File metadata and controls
33 lines (26 loc) · 716 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
33
# encoding: UTF-8
begin
require 'bundler'
require 'bundler/setup'
rescue LoadError
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end
require 'rspec/core'
require 'rspec/core/rake_task'
Bundler::GemHelper.install_tasks
RSpec::Core::RakeTask.new(:spec)
ORMS = %w(active_record)
task :default => "spec:all"
namespace :spec do
ORMS.each do |orm|
desc "Run Tests against #{orm}"
task orm do
sh "BUNDLE_GEMFILE='gemfiles/#{orm}.gemfile' bundle --quiet"
sh "BUNDLE_GEMFILE='gemfiles/#{orm}.gemfile' bundle exec rake -t spec"
end
end
desc "Run Tests against all ORMs"
task :all do
ORMS.each { |orm| Rake::Task["spec:#{orm}"].invoke }
end
end