language: ruby
cache: bundler
rvm:
 - 2.2
 - 2.3.1
 - ruby-head
 - jruby-21mode

before_install:
 - sudo apt-get update -qq
 - sudo apt-get install -qq -y graphicsmagick imagemagick
 - gem install bundler

matrix:
  allow_failures:
    - rvm: ruby-head

language: ruby
cache: bundler
rvm:
 - 2.2
 - 2.3.1
 - ruby-head
 - jruby-9.0.0.0.pre2


before_install:
 - sudo apt-get update -qq
 - sudo apt-get install -qq -y graphicsmagick imagemagick
 - gem install bundler

matrix:
  allow_failures:
    - rvm: ruby-head

Use same jruby version as in ruby-mime-types gem
Use same jruby version as in ruby-mime-types gem

This is the reason why this build fails on jruby