language: ruby
sudo: false
rvm:
  - 2.2.2
script:
  - bundle exec rake spec
  - bundle exec teaspoon
before_script:
  - cp config/database.yml.travis config/database.yml
  - psql -c 'create database test;' -U postgres
  - ! 'RAILS_ENV=test bundle exec rake db:schema:load || :'
addons:
  postgresql: "9.3"
env:
  FOG_DIRECTORY=empirical-core-travis-test
  PROGRESS_REPORT_FOG_DIRECTORY=empirical-progress-report-travis-test

language: ruby
sudo: false
rvm:
  - 2.2.2
script:
  - bundle exec rake spec
  - bundle exec teaspoon
before_script:
  - cp config/database.yml.travis config/database.yml
  - psql -c 'create database test;' -U postgres
  - bundle exec rake db:migrate
addons:
  postgresql: "9.3"
env:
  FOG_DIRECTORY=empirical-core-travis-test
  PROGRESS_REPORT_FOG_DIRECTORY=empirical-progress-report-travis-test

Add bundle exec to before script
Add bundle exec to before script
