require 'rake' begin require 'ci/reporter/rake/test_unit' rescue LoadError # nothing end require 'rake/testtask' Rake::TestTask.new(:test) do |test| test.libs << 'lib' << 'test' test.pattern = 'test/**/test_*.rb' test.verbose = true end task :default => :test begin require 'rcov/rcovtask' Rcov::RcovTask.new do |test| test.libs << 'test' test.pattern = 'test/**/test_*.rb' test.rcov_opts << '--exclude gem' test.verbose = true end rescue LoadError => e task :rcov do puts e abort "rcov is not available. Run: gem install rcov" end end #require 'rake/rdoctask' #Rake::RDocTask.new do |rdoc| # version = File.exist?('VERSION') ? File.read('VERSION') : "" # # rdoc.rdoc_dir = 'rdoc' # rdoc.title = "gelf #{version}" # rdoc.rdoc_files.include('README*') # rdoc.rdoc_files.include('lib/**/*.rb') #end