mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
23 lines
496 B
Bash
Executable File
23 lines
496 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
echo "--- Loading environment"
|
|
source ./script/ci/includes.sh
|
|
source /var/lib/jenkins/.rvm/environments/ruby-1.9.3-p392
|
|
if [ ! -f config/application.yml ]; then
|
|
ln -s application.yml.example config/application.yml
|
|
fi
|
|
|
|
echo "--- Verifying branch is based on current master"
|
|
exit_unless_master_merged
|
|
|
|
echo "--- Bundling"
|
|
bundle install
|
|
|
|
echo "--- Preparing test database"
|
|
bundle exec rake db:test:prepare
|
|
|
|
echo "--- Running tests"
|
|
bundle exec rspec spec --format progress
|