rvm:
  - 2.2
  - 2.3.2
  - 2.4.0-preview1
  - ruby-head  

cache:
  directories:
  - $HOME/gnatsd

before_install:
  - bash ./scripts/install_gnatsd.sh

before_script:
  - export PATH=$HOME/gnatsd:$PATH

sudo: required
dist: trusty


rvm:
  - 2.2
  - 2.3.2

cache:
  directories:
  - $HOME/gnatsd

before_install:
  - bash ./scripts/install_gnatsd.sh

before_script:
  - export PATH=$HOME/gnatsd:$PATH

sudo: required
dist: trusty

matrix:
  include:
    - rvm: jruby
      env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false' JAVA_OPTS='-Djava.security.egd=file:///dev/urandom'
      jdk: openjdk7
    - rvm: jruby
      env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false' JAVA_OPTS='-Djava.security.egd=file:///dev/urandom'
      jdk: oraclejdk7
    - rvm: jruby
      env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false' JAVA_OPTS='-Djava.security.egd=file:///dev/urandom'
      jdk: openjdk8
    - rvm: jruby
      env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false' JAVA_OPTS='-Djava.security.egd=file:///dev/urandom'
      jdk: oraclejdk8
    - rvm: 2.3.2
      env: EVENTMACHINE_LIBRARY="pure_ruby"
  allow_failures:
    - rvm: jruby
      env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false' JAVA_OPTS='-Djava.security.egd=file:///dev/urandom'
      jdk: openjdk7
    - rvm: jruby
      env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false' JAVA_OPTS='-Djava.security.egd=file:///dev/urandom'
      jdk: oraclejdk7
    - rvm: jruby
      env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false' JAVA_OPTS='-Djava.security.egd=file:///dev/urandom'
      jdk: openjdk8
    - rvm: jruby
      env: JRUBY_OPTS='--server -Xcompile.invokedynamic=false' JAVA_OPTS='-Djava.security.egd=file:///dev/urandom'
      jdk: oraclejdk8
    - rvm: ruby-head
    - rvm: 2.4.0-preview1

Add jruby to testing matrix
Add jruby to testing matrix
