before_script:
  - cp spec/dummy/config/database.yml.travis spec/dummy/config/database.yml
  - rake db:setup
language: ruby
matrix:
  allow_failures:
    # Rubinius.mri_backtrace primitive failed (PrimitiveFailure)
    - rvm: 'rbx-2.2'
rvm:
  - '1.9.3'
  - '2.0'
  - '2.1'
  - 'jruby-19mode'
  - 'rbx-2.2'

before_script:
  - cp spec/dummy/config/database.yml.travis spec/dummy/config/database.yml
  - rake db:setup
language: ruby
matrix:
  allow_failures:
    # Validation failed: Data is not in the NTLMHash data format of
    # <LAN Manager hex digest>:<NT LAN Manager hex digest>, where each hex digest is 32 lowercase hexadecimal
    # characters.
    - rvm: 'jruby-19mode'
    # Rubinius.mri_backtrace primitive failed (PrimitiveFailure)
    - rvm: 'rbx-2.2'
rvm:
  - '1.9.3'
  - '2.0'
  - '2.1'
  - 'jruby-19mode'
  - 'rbx-2.2'

Allow JRuby builds to fail
Allow JRuby builds to fail

JRuby is having problems with the NTLMHash hash calculations and
validations and we don't have time to fix them now.  Additionally,
metasploit-credential only support JRuby because metasploit_data_models
did from a community RFE, so JRuby support isn't critical to
metasploit-credential release.
