forked from rkh/bithug
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
35 lines (30 loc) · 842 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
$LOAD_PATH.unshift("lib", *Dir.glob("vendor/*/lib"))
task :default do
sh "git submodule init -q && git submodule update"
Rake::Task["spec"].invoke
end
begin
require "spec/rake/spectask"
Spec::Rake::SpecTask.new('spec') do |t|
t.spec_files = Dir.glob 'spec/**/*_spec.rb'
t.spec_opts = %w[-c -f progress --loadby mtime --reverse -b]
end
rescue LoadError
$stderr.puts "please install rspec"
end
begin
require "big_band/integration/rake"
include BigBand::Integration::Rake
RoutesTask.new { |t| t.source = "lib/**/*.rb" }
rescue LoadError
$stderr.puts "please install big_band"
end
begin
require "yard"
require "big_band/integration/yard"
YARD::Rake::YardocTask.new("doc") do |t|
t.options = %w[--main README.rdoc --backtrace]
end
rescue LoadError
$stderr.puts "please install big_band and yard"
end