Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: cfebe43c87
Fetching contributors…

Cannot retrieve contributors at this time

executable file 22 lines (15 sloc) 0.486 kb
#!/bin/bash
# Making the script more robust
set -e # Exit on errors
set -u # Exit on uninitialized variables
# Test environment
export RAILS_ENV=test
# Configure database access
cp -f config/database.yml.example config/database.yml
# Create databases and sharding tables
mysql -u root < db/create_databases.sql
mysql -u root db_charmer_sandbox_test < db/sharding.sql
# Run migrations
bundle exec rake db:migrate
# Run the build and return its exit code
exec bundle exec rake spec
Jump to Line
Something went wrong with that request. Please try again.