Sha256: c8a8325fba3e0a9e924b24bb5f6156965dc60e8916423628b1a1f2e3932d5ede
Contents?: true
Size: 1.21 KB
Versions: 9
Compression:
Stored size: 1.21 KB
Contents
require 'bundler/gem_tasks' require 'pact_broker/client/tasks' require 'rspec/core/rake_task' require_relative './spec/support/pact_config' RSpec::Core::RakeTask.new(:spec) task default: :spec task :console do require 'pry' require 'quiz_api_client' def reload! files = $LOADED_FEATURES.select { |feat| feat =~ %r{/\/quiz_api_client/} } files.each { |file| load file } end ARGV.clear Pry.start end # see https://github.com/pact-foundation/pact_broker-client/blob/master/README.md namespace :broker do PactBroker::Client::PublicationTask.new(:local) do |task| prepare_pact_files_for_publishing(task) end PactBroker::Client::PublicationTask.new(:jenkins_post_merge) do |task| prepare_pact_files_for_publishing(task) end def prepare_pact_files_for_publishing(task) task.pattern = 'pacts/*.json' task.pact_broker_base_url = PactConfig.broker_host task.pact_broker_basic_auth = { username: PactConfig.broker_username, password: PactConfig.broker_password } task.consumer_version = PactConfig.consumer_version puts "Consumer version: #{task.consumer_version}" task.tag = PactConfig.consumer_tag puts "Pact file tagged with: #{task.tag}" end end
Version data entries
9 entries across 9 versions & 1 rubygems