You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
507 B
28 lines
507 B
6 years ago
|
#!/usr/bin/env rake
|
||
|
require "bundler/gem_tasks"
|
||
|
|
||
|
task :default => :test
|
||
|
|
||
|
desc "Run the tests."
|
||
|
task :test do
|
||
|
Dir.glob("tests/*_test.rb").each do |f|
|
||
|
system "ruby #{f}"
|
||
|
end
|
||
|
end
|
||
|
|
||
|
desc "Run test coverage."
|
||
|
task :rcov do
|
||
|
system "rcov tests/*_test.rb -i lib/git_http.rb -x rack -x Library -x tests"
|
||
|
system "open coverage/index.html"
|
||
|
end
|
||
|
|
||
|
namespace :grack do
|
||
|
desc "Start Grack"
|
||
|
task :start do
|
||
|
system('./bin/testserver')
|
||
|
end
|
||
|
end
|
||
|
|
||
|
desc "Start everything."
|
||
|
multitask :start => [ 'grack:start' ]
|