CLOUDSTACK-7143: fix the fix for rvm/ruby/bundler setup on jenkins

The recommended use of --deployment goes along with the requirement to
check Gemfile.lock into source control, which I don't want to do.
This commit is contained in:
Leo Simons 2014-07-22 15:40:31 +02:00 committed by Rohit Yadav
parent 0570d37106
commit 25bb682cd1
1 changed files with 2 additions and 1 deletions

View File

@ -260,7 +260,8 @@ function setup_ruby() {
# .rvmrc won't get trusted/auto-loaded by jenkins by default
export VAGRANT_HOME=$HOME/.vagrant.d-release-cloudstack
rvm use ruby-1.9.3@vagrant-release-cloudstack --create
bundle_args="--deployment"
# do not use --deployment since that requires Gemfile.lock...and we prefer an up-to-date veewee
bundle_args="--path vendor/bundle"
fi
bundle check || bundle install ${bundle_args}
}