Sha256: 87b26842719d1bfb6a92600dead3aa77863f2f91b7e824139deca39732ff36b8

Contents?: true

Size: 1.31 KB

Versions: 24

Compression:

Stored size: 1.31 KB

Contents

require "bundler/gem_tasks"

# When running the release action, we don't want to load all the 'prod' gems
# because they're not installed on the release Docker image

require 'rspec/core/rake_task'
require 'conventional_changelog'

Dir.glob('lib/tasks/**/*.rake').each { |task| load "#{Dir.pwd}/#{task}" }
Dir.glob('tasks/**/*.rake').each { |task| load "#{Dir.pwd}/#{task}" }
RSpec::Core::RakeTask.new(:spec) do | task |
  task.rspec_opts = "--pattern spec/lib/**/*_spec.rb"
end

RSpec::Core::RakeTask.new('spec:providers') do | task |
  task.rspec_opts = "--pattern spec/service_providers/**/*_spec.rb"
end

# Must be run after spec:providers because it relies on the generated pact
RSpec::Core::RakeTask.new('spec:integration') do | task |
  task.rspec_opts = "--pattern spec/integration/**/*_spec.rb"
end

task :default => [:spec, 'spec:providers', 'spec:integration']

task :generate_changelog do
  require 'pact_broker/client/version'
  ConventionalChangelog::Generator.new.generate! version: "v#{PactBroker::Client::VERSION}"
end

desc 'List provider states'
task 'pact:list_provider_states' do
  require 'json'
  puts Dir.glob("spec/pacts/**.json").collect { | pact_file |
    puts pact_file
    JSON.parse(File.read(pact_file))['interactions'].collect{ | interaction| interaction['providerState'] }
  }.flatten.compact.sort.uniq
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
pact_broker-client-1.36.0 Rakefile
pact_broker-client-1.35.0 Rakefile
pact_broker-client-1.34.0 Rakefile
pact_broker-client-1.33.0 Rakefile
pact_broker-client-1.32.0 Rakefile
pact_broker-client-1.31.0 Rakefile
pact_broker-client-1.30.0 Rakefile
pact_broker-client-1.29.1 Rakefile
pact_broker-client-1.29.0 Rakefile
pact_broker-client-1.28.4 Rakefile
pact_broker-client-1.28.3 Rakefile
pact_broker-client-1.28.2 Rakefile
pact_broker-client-1.28.1 Rakefile
pact_broker-client-1.28.0 Rakefile
pact_broker-client-1.27.28 Rakefile
pact_broker-client-1.27.27 Rakefile
pact_broker-client-1.27.26 Rakefile
pact_broker-client-1.27.25 Rakefile
pact_broker-client-1.27.24 Rakefile
pact_broker-client-1.27.23 Rakefile