public
Created

  • Download Gist
sample_jenkins_job.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#!/bin/bash
 
# source main profile to get at LD_LIBRARY_PATH (lame-ass hack for oracle instantclient
source /etc/profile
 
# source the rvm environment
[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm
 
# use correct ruby@gemset
rvm use "$build_ruby@${JOB_NAME}"
 
# empty gemset and force a full bundle install
rvm --force gemset empty && bundle install || exit 10
 
# copy over sample database.yml to config databases
cp -f config/database.sample.yml config/database.yml
 
# load up the test database
rake db:migrate db:test:load || exit 11
 
time rake spec cucumber

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.