Skip to content

Commit 24e318a

Browse files
committed
Allow passing specific BUNDLE_GEMFILE from the main test:* Rake tasks
1 parent c973874 commit 24e318a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Rakefile

+6-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ namespace :test do
6161
Rake::Task['test:ci_reporter'].invoke if ENV['CI']
6262
subprojects.each do |project|
6363
puts '-'*80
64-
sh "cd #{__current__.join(project)} && unset BUNDLE_GEMFILE && bundle exec rake test:integration"
64+
sh "cd #{__current__.join(project)} && unset BUNDLE_GEMFILE &&" +
65+
%Q| #{ ENV['TEST_BUNDLE_GEMFILE'] ? "BUNDLE_GEMFILE=#{ENV['TEST_BUNDLE_GEMFILE']}" : '' }| +
66+
" bundle exec rake test:integration"
6567
puts "\n"
6668
end
6769
Rake::Task['test:coveralls'].invoke if ENV['CI'] && defined?(RUBY_VERSION) && RUBY_VERSION > '1.9'
@@ -72,7 +74,9 @@ namespace :test do
7274
Rake::Task['test:ci_reporter'].invoke if ENV['CI']
7375
subprojects.each do |project|
7476
puts '-'*80
75-
sh "cd #{__current__.join(project)} && unset BUNDLE_GEMFILE && bundle exec rake test:all"
77+
sh "cd #{__current__.join(project)} && unset BUNDLE_GEMFILE &&" +
78+
%Q| #{ ENV['TEST_BUNDLE_GEMFILE'] ? "BUNDLE_GEMFILE=#{ENV['TEST_BUNDLE_GEMFILE']}" : '' }| +
79+
" bundle exec rake test:all"
7680
puts "\n"
7781
end
7882
end

0 commit comments

Comments
 (0)