-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
58 lines (45 loc) · 1.24 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
$:.unshift File.expand_path('../lib', __FILE__)
begin
require 'bundler'
Bundler.setup
rescue LoadError => e
puts "Error loading bundler (#{e.message}): \"gem install bundler\" for bundler support."
require 'rubygems'
end
require 'rake'
require 'rake/testtask'
require 'rubygems/package_task'
# require 'support/gateway_support'
# require 'support/ssl_verify'
# require 'support/outbound_hosts'
desc "Run the unit test suite"
task :default => 'test:units'
task :test => 'test:units'
namespace :test do
Rake::TestTask.new(:units) do |t|
t.pattern = 'test/unit/**/*_test.rb'
t.ruby_opts << '-rubygems'
t.libs << 'test'
t.verbose = true
end
Rake::TestTask.new(:remote) do |t|
t.pattern = 'test/remote/**/*_test.rb'
t.ruby_opts << '-rubygems'
t.libs << 'test'
t.verbose = true
end
end
desc "Delete tar.gz / zip"
task :cleanup => [ :clobber_package ]
spec = eval(File.read('activemerchant-realex3ds.gemspec'))
Gem::PackageTask.new(spec) do |p|
p.gem_spec = spec
end
desc "Release the gems and docs to RubyForge"
task :release => [ 'gemcutter:publish' ]
namespace :gemcutter do
desc "Publish to gemcutter"
task :publish => :package do
sh "gem push pkg/activemerchant-realex3ds-#{spec.version}.gem"
end
end