Rakefile
changeset 5 804e1c2b9a40
parent 1 1d3cfd4837a8
child 11 7fc2d1713795
equal deleted inserted replaced
4:8c4ae0797d5f 5:804e1c2b9a40
   130 end
   130 end
   131 
   131 
   132 
   132 
   133 ### Cruisecontrol task
   133 ### Cruisecontrol task
   134 desc "Cruisecontrol build"
   134 desc "Cruisecontrol build"
   135 task :cruise => [:clean, :coverage, :package] do |task|
   135 task :cruise => [:clean, :coverage, :rdoc, :package] do |task|
   136 	raise "Artifacts dir not set." if ARTIFACTS_DIR.to_s.empty?
   136 	raise "Artifacts dir not set." if ARTIFACTS_DIR.to_s.empty?
   137 	artifact_dir = ARTIFACTS_DIR.cleanpath
   137 	artifact_dir = ARTIFACTS_DIR.cleanpath
   138 	artifact_dir.mkpath
   138 	artifact_dir.mkpath
   139 	
   139 	
   140 	$stderr.puts "Copying coverage stats..."
   140 	$stderr.puts "Copying coverage stats..."
   141 	FileUtils.cp_r( 'coverage', artifact_dir )
   141 	FileUtils.cp_r( 'coverage', artifact_dir )
   142 	
   142 	
       
   143 	$stderr.puts "Copying documentation..."
       
   144 	FileUtils.cp_r( 'docs/api', artifact_dir + 'rdoc' )
       
   145 	
   143 	$stderr.puts "Copying packages..."
   146 	$stderr.puts "Copying packages..."
   144 	FileUtils.cp_r( FileList['pkg/*'].to_a, artifact_dir )
   147 	FileUtils.cp_r( FileList['pkg/*'].to_a, artifact_dir )
   145 end
   148 end
   146 
   149