equal
deleted
inserted
replaced
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 |