jenkins ruby versioning smarter

This commit is contained in:
Devin Howard 2016-02-05 18:02:30 +08:00
parent a1d2ef70b9
commit 9a68a2d3c1

View file

@ -4,7 +4,10 @@
#sudo aptitude -q -y install libpq-dev #sudo aptitude -q -y install libpq-dev
source "$HOME/.rvm/scripts/rvm" source "$HOME/.rvm/scripts/rvm"
rvm use $(cat.ruby-version) || \
rvm install $(cat .ruby-version) rvm install $(cat .ruby-version)
rvm gemset use $(cat .ruby-gemset) || \
rvm gemset create $(cat .ruby-gemset) && \
rvm gemset use $(cat .ruby-gemset) rvm gemset use $(cat .ruby-gemset)
gem install bundler gem install bundler