language: ruby
sudo: false
cache: bundler
bundler_args: '--without production development'
rvm:
  - 2.3.0
env: DATABASE_URL=postgres://postgres@localhost/timeoverflow_test
before_script:
  - bundle exec rake db:setup
  # allow elasticsearch to be ready - https://docs.travis-ci.com/user/database-setup/#ElasticSearch
  - sleep 10
services:
  - elasticsearch

language: ruby
sudo: false
cache: bundler
bundler_args: '--without production development'
rvm:
  - 2.3.0
env: DATABASE_URL=postgres://postgres@localhost/timeoverflow_test
before_script:
  - bundle exec rake db:setup
  # allow elasticsearch to be ready - https://docs.travis-ci.com/user/database-setup/#ElasticSearch
  - sleep 10
services:
  - elasticsearch
addons:
  chrome: stable

Install chrome in CI to run spec/features
Install chrome in CI to run spec/features

The headless chromedriver requires Chrome to be installed. See
https://robots.thoughtbot.com/headless-feature-specs-with-chrome#on-ci
for details.
