-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
32 lines (27 loc) · 779 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
$:.unshift File.expand_path('../lib', __FILE__)
require 'offsite_payments_przelewy24/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#{OffsitePaymentsPrzelewy24::VERSION} -m 'Tagging #{OffsitePaymentsPrzelewy24::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.ruby_opts << '-rrubygems'
t.libs << 'test'
t.verbose = true
end
end