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

Version Path
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/i18n-0.6.11/test/run_all.rb
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/i18n-0.6.11/test/run_all.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/i18n-0.6.11/test/run_all.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/i18n-0.6.11/test/run_all.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/i18n-0.6.11/test/run_all.rb
apl-library-0.0.90 vendor/bundle/ruby/1.8/gems/i18n-0.6.11/test/run_all.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.8/gems/i18n-0.6.11/test/run_all.rb
nanumfont-rails-0.1 vendor/bundle/ruby/2.1.0/gems/i18n-0.6.11/test/run_all.rb
i18n-0.6.11 test/run_all.rb