Commit 6dd89059 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'gitaly-test-no-deployment' into 'master'

Fix slow gitaly dev test bundle

See merge request gitlab-org/gitlab-ce!15508
parents 15cb13ee 6f1e9f7e
......@@ -17,9 +17,7 @@ namespace :gitlab do
_, status = Gitlab::Popen.popen(%w[which gmake])
command = status.zero? ? ['gmake'] : ['make']
if Rails.env.test?
command += %W[BUNDLE_PATH=#{Bundler.bundle_path}]
end
command << 'BUNDLE_FLAGS=--no-deployment' if Rails.env.test?
Dir.chdir(args.dir) do
create_gitaly_configuration
......
......@@ -57,7 +57,7 @@ describe 'gitlab:gitaly namespace rake task' do
it 'calls gmake in the gitaly directory' do
expect(Gitlab::Popen).to receive(:popen).with(%w[which gmake]).and_return(['/usr/bin/gmake', 0])
expect(main_object).to receive(:run_command!).with(command_preamble + %w[gmake BUNDLE_PATH=/fake/bundle_path]).and_return(true)
expect(main_object).to receive(:run_command!).with(command_preamble + %w[gmake BUNDLE_FLAGS=--no-deployment]).and_return(true)
run_rake_task('gitlab:gitaly:install', clone_path)
end
......@@ -70,7 +70,7 @@ describe 'gitlab:gitaly namespace rake task' do
end
it 'calls make in the gitaly directory' do
expect(main_object).to receive(:run_command!).with(command_preamble + %w[make BUNDLE_PATH=/fake/bundle_path]).and_return(true)
expect(main_object).to receive(:run_command!).with(command_preamble + %w[make BUNDLE_FLAGS=--no-deployment]).and_return(true)
run_rake_task('gitlab:gitaly:install', clone_path)
end
......
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