Guest User

Untitled

a guest
Jan 23rd, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # source main profile to get at LD_LIBRARY_PATH (lame-ass hack for oracle instantclient
  4. source /etc/profile
  5.  
  6. # source the rvm environment
  7. [[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm
  8.  
  9. # use correct ruby@gemset
  10. rvm use "$build_ruby@${JOB_NAME}"
  11.  
  12. # empty gemset and force a full bundle install
  13. rvm --force gemset empty && bundle install || exit 10
  14.  
  15. # copy over sample database.yml to config databases
  16. cp -f config/database.sample.yml config/database.yml
  17.  
  18. # load up the test database
  19. rake db:migrate db:test:load || exit 11
  20.  
  21. time rake spec cucumber
Add Comment
Please, Sign In to add comment