-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
40 lines (33 loc) · 906 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
38
39
40
$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
require 'activemerchant/payrix/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 'rake'
require 'rake/testtask'
require 'bundler/gem_tasks'
task :tag_release do
system "git tag 'v#{ActiveMerchant::Payrix::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 = false
end
desc 'Run all tests that do not require network access'
task local: %w[test:units]
Rake::TestTask.new(:remote) do |t|
t.pattern = 'test/remote/**/*_test.rb'
t.libs << 'test'
t.verbose = true
end
end