Permalink
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (24 sloc) 717 Bytes
require 'appraisal'
require 'bundler/gem_tasks'
require 'bundler/setup'
require 'rake/testtask'
require_relative 'test/support/tests/current_bundle'
Rake::TestTask.new('test:acceptance') do |t|
t.libs << 'test'
# t.ruby_opts += ['-w', '-r', './test/report_warnings']
t.ruby_opts += ['-w']
t.pattern = 'test/acceptance/**/*_test.rb'
t.verbose = false
end
task :default do
if Tests::CurrentBundle.instance.appraisal_in_use?
sh 'rake test:acceptance --trace'
else
if ENV['CI']
exec "appraisal install && appraisal rake --trace"
else
appraisal = Tests::CurrentBundle.instance.latest_appraisal
exec "appraisal install && appraisal #{appraisal} rake --trace"
end
end
end