Show
Ignore:
Timestamp:
01/22/08 19:51:08 (10 months ago)
Author:
drry
Message:

platform/tdiary/Rakefile: 序盤にまとめました。

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • platform/tdiary/Rakefile

    r5288 r5289  
    11# Rakefile for building tdiary-conrib package 
     2require 'rake' 
    23require 'rake/packagetask' 
     4require 'rake/testtask' 
     5require 'spec/rake/spectask' 
    36 
    47package = { 
     
    1215package.freeze 
    1316 
     17Rake::TestTask.new do |t| 
     18  t.libs << File.join(package[:root], 'plugin') 
     19  t.pattern = File.join 'test', '**', '*_test.rb' 
     20end 
     21 
     22Spec::Rake::SpecTask.new do |t| 
     23  t.spec_files = FileList[File.join('spec', '**', '*_spec.rb')] 
     24  t.spec_opts  = ['--options', File.join('spec', 'spec.opts')] 
     25end 
     26 
    1427desc 'Update source and packaging' 
    1528task :default => [:update, :package, :clean] 
    16  
    17 desc 'Run all specs' 
    18 task :spec do 
    19   require 'rake' 
    20   require 'spec/rake/spectask' 
    21   Spec::Rake::SpecTask.new do |t| 
    22     t.spec_files = FileList[File.join('spec', '**', '*_spec.rb')] 
    23     t.spec_opts  = ['--options', File.join('spec', 'spec.opts')] 
    24   end 
    25 end 
    26  
    27 desc 'Run all tests' 
    28 task :test do 
    29   require 'rake/testtask' 
    30   Rake::TestTask.new do |t| 
    31     t.libs << File.join(package[:root], 'plugin') 
    32     t.pattern = File.join 'test', '**', '*_test.rb' 
    33   end 
    34 end 
    3529 
    3630desc 'Update files from Subversion Repository'