Sha256: c43a7ef5c6a53f8b053c44b4b3989aa73b837f2bb3f0b7f2a222d394754fc0bf
Contents?: true
Size: 1003 Bytes
Versions: 1
Compression:
Stored size: 1003 Bytes
Contents
desc "Task to execute builds on a Hudson Continuous Integration Server." task :hudson do Rake::Task["loggable:doc"].invoke Rake::Task["loggable:test"].invoke end namespace :loggable do require 'rake/testtask' Rake::TestTask.new(:test) do |test| test.libs << 'lib' << 'test' test.pattern = 'test/**/*_test.rb' test.verbose = true end # Use yard to build docs begin require 'yard' require 'yard/rake/yardoc_task' project_root = File.expand_path("#{File.dirname(__FILE__)}/../../") doc_destination = File.join(project_root, 'doc') YARD::Rake::YardocTask.new(:doc) do |yt| yt.files = Dir.glob(File.join(project_root, 'lib', '**', '*.rb')) + [ File.join(project_root, 'README.rdoc') ] yt.options = ['--output-dir', doc_destination, '--readme', 'README.rdoc'] end rescue LoadError desc "Generate YARD Documentation" task :doc do abort "Please install the YARD gem to generate rdoc." end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mediashelf-loggable-0.4.10 | lib/tasks/loggable.rake |