forked from bergholdt/metric_fu
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRakefile
More file actions
27 lines (22 loc) · 750 Bytes
/
Rakefile
File metadata and controls
27 lines (22 loc) · 750 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
#!/usr/bin/env rake
using_git = File.exist?(File.expand_path('../.git/', __FILE__))
if using_git
require 'bundler/setup'
end
require 'rake'
require 'simplecov'
Dir['./gem_tasks/*.rake'].each do |task|
import(task)
end
require 'rspec/core/rake_task'
desc "Run all specs in spec directory"
RSpec::Core::RakeTask.new(:spec) do |t|
t.verbose = false
t.pattern = "spec/**/_spec.rb"
# we require spec_helper so we don't get an RSpec warning about
# examples being defined before configuration.
t.ruby_opts = "-I./spec -r./spec/capture_warnings -rspec_helper"
t.rspec_opts = %w[--format progress] if (ENV['FULL_BUILD'] || !using_git)
end
require File.expand_path File.join(File.dirname(__FILE__),'lib/metric_fu')
task :default => :spec