Sha256: 7f9ee448866bb28bb86c72d78802fff593f1ebe0d2ff7d6a639803d4828adfb6
Contents?: true
Size: 762 Bytes
Versions: 5
Compression:
Stored size: 762 Bytes
Contents
#!/usr/bin/env rake require "bundler/gem_tasks" require 'rake/testtask' Rake::TestTask.new do |t| t.libs = ["test"] t.pattern = "test/**/*_test.rb" t.ruby_opts = ['-w'] end task :default => :test pwd = File.expand_path('../', __FILE__) gemfiles = %w( activerecord-42 activerecord-50 activerecord-51 ) namespace :test do gemfiles.each do |gemfile| desc "Run Tests by #{gemfile}.gemfile" task gemfile do sh "BUNDLE_GEMFILE='#{pwd}/gemfiles/#{gemfile}.gemfile' bundle install --path #{pwd}/.bundle" sh "BUNDLE_GEMFILE='#{pwd}/gemfiles/#{gemfile}.gemfile' bundle exec rake -t test" end end desc "Run All Tests" task :all do gemfiles.each do |gemfile| Rake::Task["test:#{gemfile}"].invoke end end end
Version data entries
5 entries across 5 versions & 1 rubygems