Sha256: cbdb4e513167ae3e443c07f7ba04f5bd48665e4ffe5e875245af055e74fa19bd

Contents?: true

Size: 688 Bytes

Versions: 1

Compression:

Stored size: 688 Bytes

Contents

require 'bundler/gem_tasks'
require 'bundler/setup'
require 'pathname'

# Note: if you get this error: "Bundler could not find compatible versions for gem ..."
# try deleting Gemfile.lock (usually happens when switching branches).

task default: :appraise_all

task :appraise_all do
  success_map = {}
  Pathname.glob('gemfiles/*.gemfile').each do |f|
    appraise_def = f.basename('.gemfile').to_s
    success = system('appraisal', appraise_def, 'rspec', 'spec')
    success_map[appraise_def] = success
  end
  puts "\n===== Test Summary ====="
  success_map.each do |appraise_def, success|
    puts "#{appraise_def}: #{success ? 'no failures (but check pending)' : 'failed'}"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cobranding-1.3.0 Rakefile