language: ruby
sudo: false
cache: bundler
services:
  - redis-server
rvm:
  - 2.1
  - 2.0.0
  - 2.2
  - 2.3
  - 2.4
  - jruby
  - jruby-head
  - rbx-2
env:
  - SIDEKIQ='~> 3.5'
  - SIDEKIQ='~> 4.0'
  - SIDEKIQ='~> 5.0'
matrix:
  allow_failures:
    - rvm: rbx-2
    - rvm: jruby-head

language: ruby
sudo: false
cache: bundler
services:
  - redis-server
rvm:
  - 2.1
  - 2.0.0
  - 2.2
  - 2.3
  - 2.4
  - jruby
  - jruby-head
  - rbx-2
env:
  - SIDEKIQ='~> 3.5'
  - SIDEKIQ='~> 4.0'
  - SIDEKIQ='~> 5.0'
matrix:
  exclude:
    - rvm: 2.1
      env: SIDEKIQ='~> 5.0'
    - rvm: 2.0.0
      env: SIDEKIQ='~> 5.0'
  allow_failures:
    - rvm: rbx-2
    - rvm: jruby-head

Exclude MRI 2.0.0 / 2.1 for Sidekiq 5.x tests
Exclude MRI 2.0.0 / 2.1 for Sidekiq 5.x tests

Sidekiq 5.0 requires ruby >= 2.2.2.
