Merge "Install rake lint when no Gemfile is found"

This commit is contained in:
Jenkins 2016-03-11 14:01:30 +00:00 committed by Gerrit Code Review
commit 91d4458b0a

View File

@ -328,14 +328,17 @@
cd "$MODULE" cd "$MODULE"
fi fi
fi fi
if [ -f Gemfile ]; then
mkdir .bundled_gems mkdir .bundled_gems
export GEM_HOME=`pwd`/.bundled_gems export GEM_HOME=`pwd`/.bundled_gems
if [ -f Gemfile ]; then
gem install bundler --no-rdoc --no-ri --verbose gem install bundler --no-rdoc --no-ri --verbose
$GEM_HOME/bin/bundle install --without system_tests $GEM_HOME/bin/bundle install --without system_tests
$GEM_HOME/bin/bundle exec rake lint 2>&1 $GEM_HOME/bin/bundle exec rake lint 2>&1
else else
rake lint 2>&1 gem install rake -n ./.bundled_gems/
gem install puppet-lint
gem install puppetlabs_spec_helper
./.bundled_gems/rake lint 2>&1
fi fi
- builder: - builder: