You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by as...@apache.org on 2009/03/14 04:23:35 UTC

svn commit: r753595 - in /buildr/trunk/rakelib: doc.rake rspec.rake

Author: assaf
Date: Sat Mar 14 03:23:35 2009
New Revision: 753595

URL: http://svn.apache.org/viewvc?rev=753595&view=rev
Log:
Tested: building nad publishing site.

Modified:
    buildr/trunk/rakelib/doc.rake
    buildr/trunk/rakelib/rspec.rake

Modified: buildr/trunk/rakelib/doc.rake
URL: http://svn.apache.org/viewvc/buildr/trunk/rakelib/doc.rake?rev=753595&r1=753594&r2=753595&view=diff
==============================================================================
--- buildr/trunk/rakelib/doc.rake (original)
+++ buildr/trunk/rakelib/doc.rake Sat Mar 14 03:23:35 2009
@@ -62,7 +62,7 @@
 end
 
 desc "Build a copy of the Web site in the ./_site"
-task :site=>['_site', :rdoc, :spec, :coverage, 'buildr.pdf'] do
+task :site=>['_site', :rdoc, '_reports/specs.html', '_reports/coverage', 'buildr.pdf'] do
   cp_r 'rdoc', '_site'
   fail 'No RDocs in site directory' unless File.exist?('_site/rdoc/files/lib/buildr_rb.html')
   cp '_reports/specs.html', '_site'
@@ -75,7 +75,7 @@
 end
 
 # Publish prerequisites to Web site.
-task :upload_site=>:site do
+task 'publish'=>:site do
   target = "people.apache.org:/www/#{spec.name}.apache.org/"
   puts "Uploading new site to #{target} ..."
   sh 'rsync', '--progress', '--recursive', '--delete', '_site/', target

Modified: buildr/trunk/rakelib/rspec.rake
URL: http://svn.apache.org/viewvc/buildr/trunk/rakelib/rspec.rake?rev=753595&r1=753594&r2=753595&view=diff
==============================================================================
--- buildr/trunk/rakelib/rspec.rake (original)
+++ buildr/trunk/rakelib/rspec.rake Sat Mar 14 03:23:35 2009
@@ -24,6 +24,7 @@
     task.spec_opts = %w{--format specdoc --format failing_examples:failed --format html:_reports/specs.html --loadby mtime --backtrace}    
     task.spec_opts << '--colour' if $stdout.isatty
   end
+  file('_reports/specs.html') { task(:spec).invoke }
 
   desc 'Run all failed examples from previous run'
   Spec::Rake::SpecTask.new :failed do |task|
@@ -39,8 +40,10 @@
     task.spec_opts << '--colour' if $stdout.isatty
     task.rcov = true
     task.rcov_dir = '_reports/coverage'
-    task.rcov_opts = '--exclude / --include-file ^lib --text-summary'
+    task.rcov_opts = %w{--exclude / --include-file ^lib --text-summary}
   end
+  file('_reports/coverage') { task(:coverage).invoke }
+
 
   # Useful for testing with JRuby when using Ruby and vice versa.
   namespace :spec do