File: Rakefile.rb

package info (click to toggle)
libfeedtools-ruby 0.2.29%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,004 kB
  • ctags: 1,385
  • sloc: ruby: 18,815; sql: 39; makefile: 6
file content (33 lines) | stat: -rw-r--r-- 931 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
28
29
30
31
32
33
require 'rake'
require 'hoe'
require 'lib/html5/version'

Hoe.new("html5", HTML5::VERSION) do |p|
  p.name = "html5"
  p.description = p.paragraphs_of('README', 2..5).join("\n\n")
  p.summary = "HTML5 parser/tokenizer."

  p.author   = ['Ryan King'] # TODO: add more names
  p.email    = 'ryan@theryanking.com'
  p.url      = 'http://code.google.com/p/html5lib'
  p.need_zip = true

  p.extra_deps << ['chardet', '>= 0.9.0']
  p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
end

require 'rcov/rcovtask'

namespace :test do 
  namespace :coverage do
    desc "Delete aggregate coverage data."
    task(:clean) { rm_f "coverage.data" }
  end
  desc 'Aggregate code coverage for unit, functional and integration tests'
  Rcov::RcovTask.new(:coverage => "test:coverage:clean") do |t|
    t.libs << "tests"
    t.test_files = FileList["tests/test_*.rb"]
    t.output_dir = "tests/coverage/"
    t.verbose = true
  end
end