language: ruby
rvm:
  - 2.1.2
  - ruby-head
matrix:
  allow_failures:
    - rvm: ruby-head
addons:
  postgresql: "9.3"
bundler_args: "--without development:production --deployment"
cache: bundler

before_install:
  - gem install coveralls
  - gem install scss-lint

before_script:
  - psql -c 'create database coursemology_test;' -U postgres

script:
  - scss-lint app/assets/stylesheets/
  - bundle exec consistency_fail
  - bundle exec rake test

language: ruby
rvm:
  - 2.1.2
  - ruby-head
matrix:
  allow_failures:
    - rvm: ruby-head
addons:
  postgresql: "9.3"
bundler_args: "--without development:production --deployment"
cache: bundler

before_install:
  - gem install coveralls
  - gem install scss-lint

before_script:
  - psql -c 'create database coursemology_test;' -U postgres
  - bundle exec rake db:setup

script:
  - scss-lint app/assets/stylesheets/
  - bundle exec consistency_fail
  - bundle exec rake test

Set up the database before running any tests.
Set up the database before running any tests.
