File: Rakefile

package info (click to toggle)
ruby-grack 2.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 188 kB
  • sloc: ruby: 566; sh: 41; makefile: 6
file content (27 lines) | stat: -rw-r--r-- 507 bytes parent folder | download | duplicates (2)
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
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' ]