Robot now installs bundler if missing

This commit is contained in:
Priit Tark 2015-03-16 13:03:03 +02:00
parent 5810901e68
commit 3a243f7ac6

View file

@ -19,7 +19,12 @@ cp config/application-example.yml config/application.yml
cp config/secrets-example.yml config/secrets.yml cp config/secrets-example.yml config/secrets.yml
cp config/database-robot.yml config/database.yml cp config/database-robot.yml config/database.yml
# under jenkins use rbenv-plugin wrapper # Under jenkins admin interface use rbenv-plugin wrapper
# rbenv does not have bundler by default
if echo gem list --local bundler | grep -q "bundler"
then echo ''
else gem install bundler
fi
bundle install bundle install
RAILS_ENV=test bundle exec rake db:all:drop RAILS_ENV=test bundle exec rake db:all:drop