#!/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 db:create assets:precompile --trace

#!/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 pre-compilation fails."
Revert "The Jenkins build should fail if production asset pre-compilation fails."

This reverts commit d019529416bf9cf1fea8499c4076d06bf15f0ab8.
