Rakefile in roo-1.0.2 vs Rakefile in roo-1.1.0
- old
+ new
@@ -104,11 +104,25 @@
end
desc 'Generate and upload website files'
task :website => [:website_generate, :website_upload]
+#-- prey: BEGIN
+require 'fileutils'
+include FileUtils::Verbose
+desc 'Test the local installation'
+task :test_local_installation do
+ # gehe nach $GEM_PATH und starte dort rake test
+ # cd(ENV['GEM_PATH']+"roo-1.1.0") do
+ cd("/usr/lib/ruby/gems/1.8/gems/roo-1.1.0") do
+ sh %{sudo rake test}
+ end
+ puts 'local installation test done'
+end
+#-- prey: END
+
desc 'Release the website and new gem version'
-task :deploy => [:check_log_params, :check_version, :website, :release ] do
+task :deploy => [:check_log_params, :check_version, :test_local_installation, :website, :release ] do
puts "Remember to create SVN tag:"
puts "svn copy svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/trunk " +
"svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/tags/REL-#{VERS} "
puts "Suggested comment:"
puts "Tagging release #{CHANGES}"