Sha256: ba5ee2852d17bec104234f9697fa8a12d6808234a7176d6f24ee234c80f6bcb1
Contents?: true
Size: 533 Bytes
Versions: 9
Compression:
Stored size: 533 Bytes
Contents
def bundle_check `bundle check` == "Resolving dependencies...\nThe Gemfile's dependencies are satisfied\n" end def execute(command) puts command system command end gemfiles = %w(Gemfile) + Dir['gemfiles/Gemfile*'].reject { |f| f.end_with?('.lock') } results = gemfiles.map do |gemfile| puts "\nBUNDLE_GEMFILE=#{gemfile}" ENV['BUNDLE_GEMFILE'] = File.expand_path("../../#{gemfile}", __FILE__) execute 'bundle install' unless bundle_check execute 'bundle exec ruby -w -Ilib -Itest test/all.rb' end exit results.all?
Version data entries
9 entries across 4 versions & 4 rubygems