Add 3 retries when the installation fails for lint test

Change-Id: I9ae31a3934d10eb37509f9889381377cef94df0a
This commit is contained in:
ZhongShengping 2018-03-28 15:14:18 +08:00
parent 9916f3eef4
commit 8e9c4794ce

View File

@ -20,7 +20,7 @@
export GEM_HOME=`pwd`/.bundled_gems
if [ -f Gemfile ]; then
gem install bundler --no-rdoc --no-ri --verbose
$GEM_HOME/bin/bundle install --without system_tests
$GEM_HOME/bin/bundle install --without system_tests --retry 3
$GEM_HOME/bin/bundle exec rake lint 2>&1
else
gem install rake -n ./.bundled_gems/