---
language: ruby
bundler_args: --without development
rvm:
  - 2.2.0

env:
  global:
    - POSTGRES_USER=postgres
    - CAPYBARA_WAIT_TIME=8

branches:
  only:
    - master
    - /^feature-.*$/

before_script:
  - bundle exec rake db:setup

script:
  - bundle exec rspec
  - bundle exec rake spec:javascript

---
language: ruby
bundler_args: --without development production
rvm:
  - 2.2.0

env:
  global:
    - POSTGRES_USER=postgres
    - CAPYBARA_WAIT_TIME=8

branches:
  only:
    - master
    - /^feature-.*$/

before_script:
  - bundle exec rake db:setup

script:
  - bundle exec rspec
  - bundle exec rake spec:javascript

Exclude production gems from Travis build
Exclude production gems from Travis build
