Skip to content

Commit

Permalink
Wire up deploy to do a local install and test the gem before releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
duelinmarkers committed Nov 3, 2007
1 parent df854c9 commit f2505a9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion spec/renum_spec.rb
@@ -1,5 +1,9 @@
require File.expand_path(File.dirname(__FILE__) + '/spec_helper.rb')
require File.expand_path(File.dirname(__FILE__) + '/../lib/renum')
if ENV['USE_GEM']
require 'renum'
else
require File.expand_path(File.dirname(__FILE__) + '/../lib/renum')
end

enum :Status, [ :NOT_STARTED, :IN_PROGRESS, :COMPLETE ]

Expand Down
2 changes: 1 addition & 1 deletion tasks/deployment.rake
@@ -1,5 +1,5 @@
desc 'Release the website and new gem version'
task :deploy => [:check_version, :website, :release] do
task :deploy => [:check_version, :install_gem, :spec_gem, :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} "
Expand Down
5 changes: 5 additions & 0 deletions tasks/rspec.rake
Expand Up @@ -19,3 +19,8 @@ Spec::Rake::SpecTask.new do |t|
t.spec_opts = ['--options', "spec/spec.opts"]
t.spec_files = FileList['spec/*_spec.rb']
end

task :spec_gem do
ENV['USE_GEM'] = 'y'
Rake::Task[:spec].invoke
end

0 comments on commit f2505a9

Please sign in to comment.