Skip to content

Commit

Permalink
Add rake file for test and doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
akiko-pusu committed Jul 1, 2012
1 parent 67dab4a commit b360c66
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'

desc 'Default: run unit tests.'
task :default => :test

desc 'Test the redmine_banner plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end

desc 'Generate documentation for the redmine_banner plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Redmine Banner'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('app/**/*.rb')
rdoc.rdoc_files.include('lib/**/*.rb')
rdoc.options = ["--charset", "utf-8"]
end

0 comments on commit b360c66

Please sign in to comment.