forked from scambra/devise_invitable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
31 lines (27 loc) · 801 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
require 'rake'
require 'bundler'
Bundler::GemHelper.install_tasks
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/*_test.rb'
test.verbose = true
test.warning = false
end
desc 'Default: run tests for all ORMs.'
task :default => :tests
desc 'Run Devise tests for all ORMs.'
task :tests do
Dir[File.join(File.dirname(__FILE__), 'test', 'orm', '*.rb')].each do |file|
orm = File.basename(file).split(".").first
system "rake test DEVISE_ORM=#{orm}"
end
end
namespace :gemfiles do
desc 'Run install for every Gemfile'
task :install do
`bundle install`
`for i in gemfiles/Gemfile.*[0-9]; do BUNDLE_GEMFILE=$i bundle install; done`
`BUNDLE_GEMFILE=gemfiles/Gemfile.rails-master bundle install`
end
end