Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris Slobodin committed Jun 4, 2014
1 parent 1650c72 commit 5d5380c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,25 @@ rescue LoadError => e
require 'rubygems'
end

require 'bundler/gem_tasks'
require 'rake'
require 'rake/testtask'

task :gem => :build
task :build do
raise "Please set a private key to sign the gem" unless ENV['GEM_PRIVATE_KEY']
system "gem build activemerchant.gemspec"
system "gem build offsite_payments.gemspec"
end

task :install => :build do
system "gem install activemerchant-#{ActiveMerchant::VERSION}.gem"
system "gem install offsite_payments-#{OffsitePayments::VERSION}.gem"
end

task :release => :build do
system "git tag -a v#{ActiveMerchant::VERSION} -m 'Tagging #{ActiveMerchant::VERSION}'"
system "git tag -a v#{OffsitePayments::VERSION} -m 'Tagging #{OffsitePayments::VERSION}'"
system "git push --tags"
system "gem push activemerchant-#{ActiveMerchant::VERSION}.gem"
system "rm activemerchant-#{ActiveMerchant::VERSION}.gem"
system "gem push offsite_payments-#{OffsitePayments::VERSION}.gem"
system "rm offsite_payments-#{OffsitePayments::VERSION}.gem"
end

desc "Run the unit test suite"
Expand Down
1 change: 1 addition & 0 deletions shipit.rubygems.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# using the default shipit config

0 comments on commit 5d5380c

Please sign in to comment.