---
language: ruby
sudo: false
cache:
  - bundler
rvm:
  - 2.0.0
  - 2.1.9
  - 2.2.4
  - 2.3.1
  - jruby
  - rbx
matrix:
  allow_failures:
    - rvm: jruby
    - rvm: rbx
script: rake spec

---
language: ruby
sudo: false
cache:
  - bundler
rvm:
  - 2.0.0
  - 2.1.9
  - 2.2.4
  - 2.3.1
  - jruby
  - rbx
matrix:
  allow_failures:
    - rvm: jruby
    - rvm: rbx
script: bundle exec rake spec

Use `rake` via `bundle exec`
Use `rake` via `bundle exec`

When multiple versions of `rake` is installed, `rake spec` is abort with
the following error:
```
You have already activated rake 10.2.2, but your Gemfile requires rake
11.3.0. Prepending `bundle exec` to your command may solve this.
```

This was occured in [this](https://travis-ci.org/postmodern/spidr/jobs/172926044] build on Travis CI.
