dist: trusty
language: ruby
rvm:
  - 2.3.1
  - 2.5.3

# User container based travis infrastructure which allows caching
# features for open source projects.
sudo: false
cache:
  bundler: true
  directories:
    - node_modules

env:
  - PUBLISH_THEME_DOC=true COVERALLS_PARALLEL=true

services:
  - redis-server

before_install:
  - nvm install stable

before_script:
  - bin/npm ci
  - bin/npm run build
  - bin/rake pageflow:dummy
  - bin/rake app:assets:precompile

script:
  - bin/rspec
  - bin/teaspoon
  - bin/npm test

after_success:
  - bundle exec publish-pageflow-theme-doc

notifications:
  webhooks: https://coveralls.io/webhook?service_name=travis-ci

addons:
  chrome: stable

dist: trusty
language: ruby
rvm:
  - 2.3.1
  - 2.5.3

# User container based travis infrastructure which allows caching
# features for open source projects.
sudo: false
cache:
  bundler: true
  directories:
    - node_modules

env:
  - PUBLISH_THEME_DOC=true COVERALLS_PARALLEL=true

services:
  - redis-server

before_install:
  - nvm install stable
  - gem update bundler

before_script:
  - bin/npm ci
  - bin/npm run build
  - bin/rake pageflow:dummy
  - bin/rake app:assets:precompile

script:
  - bin/rspec
  - bin/teaspoon
  - bin/npm test

after_success:
  - bundle exec publish-pageflow-theme-doc

notifications:
  webhooks: https://coveralls.io/webhook?service_name=travis-ci

addons:
  chrome: stable

Update bundler in Travis build
Update bundler in Travis build

Default bundler cannot handle Ruby version requirements correctly and
just fails if a gem requires a newer version. For example, `capybara`
requires Ruby 2.4 starting with version 3.16. Current version of
bundler handles this correctly and only installs 3.15.1 for Ruby 2.3.
