forked from pedromg/bluepill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
38 lines (30 loc) · 893 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
# encoding: utf-8
begin
require 'bundler'
Bundler::GemHelper.install_tasks
rescue LoadError
$stderr.puts "Bundler not installed. You should install it with: gem install bundler"
end
$LOAD_PATH << File.expand_path('./lib', File.dirname(__FILE__))
require 'bluepill/version'
begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new
if RUBY_VERSION >= '1.9'
RSpec::Core::RakeTask.new(:cov) do |t|
ENV['ENABLE_SIMPLECOV'] = '1'
t.ruby_opts = '-w'
t.rcov_opts = %q[-Ilib --exclude "spec/*,gems/*"]
end
end
rescue LoadError
$stderr.puts "RSpec not available. Install it with: gem install rspec-core rspec-expectations rr faker"
end
begin
require 'yard'
YARD::Rake::YardocTask.new do |yard|
yard.options << "--title='bluepill #{Bluepill::VERSION}'"
end
rescue LoadError
$stderr.puts "Please install YARD with: gem install yard"
end