forked from campaignmonitor/createsend-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
24 lines (20 loc) · 560 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
$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
require "bundler/version"
require "rake/testtask"
require "./lib/createsend"
desc "Run tests"
Rake::TestTask.new(:test) do |test|
test.ruby_opts = ["-rubygems"] if defined? Gem
test.libs << "lib" << "test"
test.pattern = "test/**/*_test.rb"
puts "running tests."
end
desc "Build the gem"
task :build do
system "gem build createsend.gemspec"
end
desc "Build and release the gem"
task :release => :build do
system "gem push createsend-#{CreateSend::VERSION}.gem"
end
task :default => :test