Try more times to fetch from rubygems.org

Of the last 14 build failures, 6 of them were because of bad_record_mac.
Hopefully retrying more will work around this.
This commit is contained in:
Jordan Sissel 2014-02-28 11:56:43 -08:00
parent fd0073dfef
commit ad6f681486

View file

@ -21,7 +21,7 @@ def install_gem(name, requirement, target)
installer.options[:version] = requirement
installer.options[:args] = [name]
installer.options[:install_dir] = target
# ruby 2.0.0 / rubygems 2.x; disable documentation generation
installer.options[:document] = []
begin
@ -63,7 +63,7 @@ if RUBY_ENGINE == "rbx"
end
# Try installing a few times in case we hit the "bad_record_mac" ssl error during installation.
3.times do
10.times do
begin
Bundler::CLI.start(["install", "--gemfile=tools/Gemfile", "--path", target, "--clean"])
break