sudo: false
language: ruby
cache: bundler
rvm:
  - 2.3.8
  - 2.4.5
  - 2.5.3
  - 2.6.0
  - ruby-head
before_install:
  - gem update --system
  - gem install bundler --conservative --no-document -v "~> 2.0"
matrix:
  allow_failures:
    - rvm: ruby-head
  include:
    # Run Danger only once, on 2.6.0
    - rvm: 2.6.0
      script: bundle exec danger

sudo: false
language: ruby
cache: bundler
rvm:
  - 2.3.8
  - 2.4.5
  - 2.5.3
  - 2.6.0
  - ruby-head
before_install:
  - gem update --system
  - gem install bundler --conservative --no-document -v "~> 2.0"
  - gem install executable-hooks --conservative --no-document
matrix:
  include:
    # Run Danger only once, on 2.6.0
    - rvm: 2.6.0
      script: bundle exec danger

Work around rvm ruby-head build failures
Work around rvm ruby-head build failures

Currently rvm fails to install ruby-head completely on Travis with
errors like:

    there was an error installing gem gem-wrappers

This leaves the ruby environment in an inconsistent state where binstubs
fail to execute with errors like:

    /usr/bin/env: ruby_executable_hooks: No such file or directory

Manually installing the executable-hooks gem fixes these errors.
