notifications:
  email: false
language: ruby
rvm:
  - 2.2.4
addons:
  postgresql: '9.4'
env:
  - DB=postgresql
  - TRAVIS_NODE_VERSION="6"
cache:
  bundler: true
  directories:
    - vendor/bundle
    - node_modules
    - $HOME/.rvm/gems
    - tmp/cache/assets/test/sprockets
install:
  - bundle install
  - npm install
before_script:
  - cp config/database.yml.travis config/database.yml
  - psql -c 'CREATE DATABASE travis_ci_test' -U postgres
script:
  - npm run style
  - npm run unit-test
  - RAILS_ENV=test bundle exec rake db:migrate --trace
  - RAILS_ENV=test bundle exec rake db:seed
  - RAILS_ENV=test bundle exec rspec

notifications:
  email: false
language: ruby
rvm:
  - 2.2.4
addons:
  postgresql: '9.4'
env:
  - DB=postgresql
  - TRAVIS_NODE_VERSION="6"
cache:
  bundler: true
  directories:
    - vendor/bundle
    - node_modules
    - $HOME/.rvm/gems
    - tmp/cache/assets/test/sprockets
install:
  - bundle install
  - npm install
before_script:
  - cp config/database.yml.travis config/database.yml
  - psql -c 'CREATE DATABASE travis_ci_test' -U postgres
script:
  - npm run style
  - npm run unit-test
  - RAILS_ENV=test bundle exec rake db:migrate --trace
  - RAILS_ENV=test bundle exec rspec
  - RAILS_ENV=test bundle exec rake db:seed

Revert "Run seeds before rspec"
Revert "Run seeds before rspec"

This reverts commit 47a6f4ea4f2c103f50703ff79b23f7c6d844a9e5.
