forked from infused/dbf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
52 lines (43 loc) · 1.03 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
require 'rubygems'
require 'bundler/setup';
Bundler.setup(:default, :development)
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new :spec do |t|
t.rspec_opts = %w(--color)
end
RSpec::Core::RakeTask.new :specdoc do |t|
t.rspec_opts = %w(-fl)
end
task :default => :spec
desc "Open an irb session preloaded with this library"
task :console do
sh "irb -rubygems -I lib -r dbf.rb"
end
# require 'metric_fu'
# MetricFu::Configuration.run do |config|
# config.rcov[:test_files] = ['spec/**/*_spec.rb']
# config.rcov[:rcov_opts] << "-Ispec"
# end
namespace :test do
task :rubies do
require File.expand_path('spec/rvm_ruby_runner', File.dirname(__FILE__))
current_rvm = `rvm info`.lines.to_a[1]
rubies = %w(
ree-1.8.6
ree-1.8.7
jruby-1.6.2
jruby-1.6.3
jruby-1.6.4
jruby-1.6.5
ruby-1.8.6
ruby-1.8.7
ruby-1.9.1
ruby-1.9.2
ruby-1.9.3
)
rubies.each do |version|
puts RvmRubyRunner.run(version)
end
`rvm use #{current_rvm}`
end
end