Commit 97f60b49 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'gitaly-bundle-gemfile' into 'master'

Unset BUNDLE_GEMFILE when installing Gitaly

See merge request !13378
parents 143b5293 56845280
...@@ -21,7 +21,7 @@ namespace :gitlab do ...@@ -21,7 +21,7 @@ namespace :gitlab do
create_gitaly_configuration create_gitaly_configuration
# In CI we run scripts/gitaly-test-build instead of this command # In CI we run scripts/gitaly-test-build instead of this command
unless ENV['CI'].present? unless ENV['CI'].present?
Bundler.with_original_env { run_command!(%w[/usr/bin/env -u RUBYOPT] + [command]) } Bundler.with_original_env { run_command!(%w[/usr/bin/env -u RUBYOPT -u BUNDLE_GEMFILE] + [command]) }
end end
end end
end end
......
...@@ -41,7 +41,7 @@ describe 'gitlab:gitaly namespace rake task' do ...@@ -41,7 +41,7 @@ describe 'gitlab:gitaly namespace rake task' do
end end
describe 'gmake/make' do describe 'gmake/make' do
let(:command_preamble) { %w[/usr/bin/env -u RUBYOPT] } let(:command_preamble) { %w[/usr/bin/env -u RUBYOPT -u BUNDLE_GEMFILE] }
before(:all) do before(:all) do
@old_env_ci = ENV.delete('CI') @old_env_ci = ENV.delete('CI')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment