Commit 732a3ee8 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Merge branch 'sh-check-gemfile' into 'master'

Check for existence of gitaly-ruby Gemfile

See merge request gitlab-org/gitlab!21340
parents 7ac547b6 980783d2
......@@ -56,6 +56,14 @@ module GitalyTest
end
def check_gitaly_config!
puts "Checking gitaly-ruby Gemfile..."
unless File.exist?(gemfile)
message = "#{gemfile} does not exist."
message += "\n\nThis might have happened if the CI artifacts for this build were destroyed." if ENV['CI']
abort message
end
puts 'Checking gitaly-ruby bundle...'
abort 'bundle check failed' unless system(env, 'bundle', 'check', chdir: File.dirname(gemfile))
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