language: ruby
cache: bundler
archive: true
rvm:
  - 2.1.2
before_script:
  - cd spec/dummy
  - cp config/database.shippable.yml config/database.yml
  - RAILS_ENV=test bundle exec rake db:schema:load
  - cd ../..
script:
  - CODECLIMATE_REPO_TOKEN=b7d9c971bea2879b81bdf35f600b985bf3a016c6104169b2c29c213a5d2e7142 bundle exec rspec
  - bundle exec rake best_practice_project:run
notifications:
   email: false

language: ruby
cache: bundler
archive: true
rvm:
  - 2.1.2
before_script:
  - mysql -e "CREATE DATABASE IF NOT EXISTS shippa;"
  - cd spec/dummy
  - cp config/database.shippable.yml config/database.yml
  - RAILS_ENV=test bundle exec rake db:schema:load
  - cd ../..
script:
  - CODECLIMATE_REPO_TOKEN=b7d9c971bea2879b81bdf35f600b985bf3a016c6104169b2c29c213a5d2e7142 bundle exec rspec
  - bundle exec rake best_practice_project:run
notifications:
   email: false

Create database if it doesnt already exist
Create database if it doesnt already exist
