forked from pact-foundation/pact-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
33 lines (28 loc) · 849 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
require 'bundler/gem_helper'
module Bundler
class GemHelper
def install
desc "Build #{name}-#{version}.gem into the pkg directory"
task 'build' do
build_gem
end
desc "Build and install #{name}-#{version}.gem into system gems"
task 'install' do
install_gem
end
GemHelper.instance = self
end
end
end
Bundler::GemHelper.install_tasks
require 'rspec/core/rake_task'
Dir.glob('lib/tasks/**/*.rake').each { |task| load task }
Dir.glob('tasks/**/*.rake').each { |task| load task }
RSpec::Core::RakeTask.new(:spec)
task :default => [:spec, :spec_with_active_support, 'pact:tests']
desc "Release to REA gems host"
task :publish => :build do
gem_file = "pkg/pact-#{Pact::VERSION}.gem"
require 'geminabox-client'
Geminabox::Client.new('http://rea-rubygems').upload(gem_file)
end