#!/bin/bash -xe
export RAILS_ENV=test
export DISPLAY=":99"

bundle install --path "/home/jenkins/bundles/${JOB_NAME}" --deployment
bundle exec rake db:schema:load
bundle exec rake assets:clean assets:precompile
bundle exec rake
bundle exec rake check_for_bad_time_handling

#!/bin/bash -xe
export RAILS_ENV=test
export DISPLAY=":99"

bundle install --path "/home/jenkins/bundles/${JOB_NAME}" --deployment
bundle exec rake db:reset
bundle exec rake assets:clean assets:precompile
bundle exec rake
bundle exec rake check_for_bad_time_handling

Drop and recreate the database each time in CI
Drop and recreate the database each time in CI

db:schema:load isn't able to keep the schema completely as it is
in the schema file, which is particularly a problem for branch
builds. Dropping the database each time is cleaner and ensures that
tests are running with only the specified tables in the database.
Now that we are enabling pgcrypto as part of db:create, db:reset
can do this for us.
