---
machine:
  environment:
    DB: postgres
  services:
    - postgresql
  ruby:
    version: 2.4.2
dependencies:
  override:
    - bundle check --path=vendor/bundle || bundle install --path=vendor/bundle
    - bundle update
    - ./build-ci.rb install
  pre:
    - curl -L -o google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
    - sudo dpkg -i google-chrome.deb
    - sudo sed -i 's|HERE/chrome\"|HERE/chrome\" --disable-setuid-sandbox|g' /opt/google/chrome/google-chrome
    - rm google-chrome.deb
    - wget https://chromedriver.storage.googleapis.com/2.35/chromedriver_linux64.zip
    - unzip chromedriver_linux64.zip
    - sudo cp chromedriver /usr/local/bin/chromedriver
    - gem uninstall bundler -x -a
    - gem install bundler -v 1.14.6
test:
  override:
    - './build-ci.rb test':
       parallel: true

---
machine:
  environment:
    DB: postgres
  services:
    - postgresql
  ruby:
    version: 2.4.2
dependencies:
  override:
    - bundle check --path=vendor/bundle || bundle install --path=vendor/bundle
    - bundle update
    - ./build-ci.rb install
  pre:
    - curl -L -o google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
    - sudo dpkg -i google-chrome.deb
    - sudo sed -i 's|HERE/chrome\"|HERE/chrome\" --disable-setuid-sandbox|g' /opt/google/chrome/google-chrome
    - rm google-chrome.deb
    - wget https://chromedriver.storage.googleapis.com/2.35/chromedriver_linux64.zip
    - unzip chromedriver_linux64.zip
    - sudo cp chromedriver /usr/local/bin/chromedriver
test:
  override:
    - './build-ci.rb test':
       parallel: true

Use newest available bundler version on Circle CI
Use newest available bundler version on Circle CI
