language: ruby
rvm:
  - jruby
  - 2.0.0
  - 2.1
  - 2.2
  - 2.3.0

env:
  global:
    - JRUBY_OPTS="--2.0"

gemfile:
  - Gemfile
  - gemfiles/active_record-rails40.gemfile
  - gemfiles/active_record-rails41.gemfile
  - gemfiles/active_record-rails42.gemfile

before_script:
  - mysql -e 'create database sorcery_test;'

before_install:
  - rvm get stable --auto-dotfiles
  - gem update bundler

matrix:
  allow_failures:
    - rvm: jruby

  exclude:
    - rvm: 2.0.0
      gemfile: gemfiles/active_record-rails42.gemfile

    - rvm: jruby
      gemfile: Gemfile

    - rvm: 2.2
      gemfile: gemfiles/active_record-rails40.gemfile

    - rvm: 2.3.0
      gemfile: gemfiles/active_record-rails40.gemfile

language: ruby
rvm:
  - jruby
  - 2.0.0
  - 2.1
  - 2.2
  - 2.3.0

env:
  global:
    - JRUBY_OPTS="--2.0"

gemfile:
  - Gemfile
  - gemfiles/active_record-rails40.gemfile
  - gemfiles/active_record-rails41.gemfile
  - gemfiles/active_record-rails42.gemfile

before_script:
  - mysql -e 'create database sorcery_test;'

before_install:
  - rvm get stable --auto-dotfiles
  - gem update bundler

matrix:
  allow_failures:
    - rvm: jruby

  exclude:
    - rvm: 2.0.0
      gemfile: gemfiles/active_record-rails42.gemfile

    - rvm: 2.0.0
      gemfile: Gemfile

    - rvm: 2.1
      gemfile: Gemfile

    - rvm: jruby
      gemfile: Gemfile

    - rvm: 2.2
      gemfile: gemfiles/active_record-rails40.gemfile

    - rvm: 2.3.0
      gemfile: gemfiles/active_record-rails40.gemfile

Exclude ruby 2.0.0 and 2.1 on rails 5
Exclude ruby 2.0.0 and 2.1 on rails 5
