File: Rakefile

package info (click to toggle)
ruby-html2haml 2.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 288 kB
  • sloc: ruby: 1,577; makefile: 6
file content (24 lines) | stat: -rw-r--r-- 501 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
require "bundler/gem_tasks"
require "rake/clean"
require "rake/testtask"

task :default => :test

CLEAN.replace %w(pkg doc coverage .yardoc)

Rake::TestTask.new do |t|
  t.libs << 'lib' << 'test'
  if RUBY_PLATFORM == 'java'
    t.test_files = FileList["test/**/*_test.rb"]
  else
    t.test_files = FileList["test/**/*_test.rb"].exclude(/jruby/)
  end
  t.verbose = true
end

task :set_coverage_env do
  ENV["COVERAGE"] = "true"
end

desc "Run Simplecov"
task :coverage => [:set_coverage_env, :test]