Files
openfoodnetwork/script/run_tests.sh
2015-04-16 14:07:37 +10:00

19 lines
366 B
Bash
Executable File

#!/bin/bash
set -e
echo "--- Loading environment"
source /var/lib/jenkins/.rvm/environments/ruby-1.9.3-p392
if [ ! -f config/application.yml ]; then
ln -s config/application.yml.example config/application.yml
fi
echo "--- Bundling"
bundle install
echo "--- Preparing test database"
bundle exec rake db:test:prepare
echo "--- Running tests"
bundle exec rake