forked from activemerchant/offsite_payments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
37 lines (31 loc) · 845 Bytes
/
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
$:.unshift File.expand_path('../lib', __FILE__)
require 'offsite_payments/version'
begin
require 'bundler'
Bundler.setup
rescue LoadError => e
puts "Error loading bundler (#{e.message}): \"gem install bundler\" for bundler support."
require 'rubygems'
end
require 'bundler/gem_tasks'
require 'rake'
require 'rake/testtask'
task :tag_release do
system "git tag -a v#{OffsitePayments::VERSION} -m 'Tagging #{OffsitePayments::VERSION}'"
system "git push --tags"
end
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.libs << 'test'
t.verbose = true
end
Rake::TestTask.new(:remote) do |t|
t.pattern = 'test/remote/**/*_test.rb'
t.libs << 'test'
t.verbose = true
end
end