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

bundle install --path "${HOME}/bundles/${JOB_NAME}" --deployment
bundle exec rake stats
bundle exec rake ci:setup:testunit test
RESULT=$?
exit $RESULT
#!/bin/bash -x

set -e

export FACTER_govuk_platform=test
export RAILS_ENV=test
export DISPLAY=":99"
export GOVUK_APP_DOMAIN=dev.gov.uk

bundle install --path "${HOME}/bundles/${JOB_NAME}" --deployment
bundle exec rake stats
bundle exec rake ci:setup:testunit test
bundle exec rake assets:precompile

Check SASS compiles as part of Jenkins test runner
Check SASS compiles as part of Jenkins test runner

* Running asset precompile will catch SASS syntactic/reference errors earlier.
* Use set -e, to immediately fail if any command fails,  rather than than relying
on a manual exit, as we're running more than one 'test' command, more robust.
