#!/bin/bash -x
export DISPLAY=:99
bundle install --path "${HOME}/bundles/${JOB_NAME}" --deployment
bundle exec rake db:create db:migrate db:test:prepare && RAILS_ENV=test bundle exec rake test test:cleanup --trace && RAILS_ENV=production bundle exec rake assets:precompile

#!/bin/bash -x
export DISPLAY=:99
bundle install --path "${HOME}/bundles/${JOB_NAME}" --deployment
bundle exec rake db:create db:migrate db:test:prepare && RAILS_ENV=test bundle exec rake test test:cleanup --trace

Revert "The Jenkins build should fail if production asset precompilation fails."
Revert "The Jenkins build should fail if production asset precompilation fails."

For some crazy reason the assets:precompile rake task needs to access
the database. Since there is no production database configured on the
Jenkins machine this task fails catastrophically. We need a rethink. In
the meantime, I'm reverting the commit to get the build passing again.

This reverts commit 3c594f41c92de7dc1826041f389b5b1d599b0a6b.
