bundler_args: --without development
env:
  global:
    - JRUBY_OPTS="$JRUBY_OPTS --debug"
language: ruby
rvm:
  - 2.1.2
  - 2.1.3
  - jruby-19mode
  - ruby-head
jdk:
  - openjdk7
  - oraclejdk7
matrix:
  exclude:
    - rvm: 1.9.3
      jdk: openjdk7
    - rvm: 2.1.2
      jdk: openjdk7
    - rvm: 2.1.3
      jdk: openjdk7
    - rvm: ruby-head
      jdk: openjdk7
  allow_failures:
    - rvm: ruby-head
  fast_finish: true
before_script:
  - ls -la /usr/share/elasticsearch/bin/elasticsearch
  - echo $PWD
before_install: gem install bundler
script: SERVER=launch TEST_CLUSTER_COMMAND=/usr/share/elasticsearch/bin/elasticsearch TEST_CLUSTER_PARAMS='-Des.default.path.conf=/etc/elasticsearch/ -Des.default.path.logs=/var/log/elasticsearch/' TEST_CLUSTER_PORT=19250 bundle exec rspec

bundler_args: --without development
language: ruby
rvm:
  - 2.1.2
  - 2.1.3
  - ruby-head
matrix:
  allow_failures:
    - rvm: ruby-head
  fast_finish: true
before_script:
  - ls -la /usr/share/elasticsearch/bin/elasticsearch
  - echo $PWD
before_install: gem install bundler
script: SERVER=launch TEST_CLUSTER_COMMAND=/usr/share/elasticsearch/bin/elasticsearch TEST_CLUSTER_PARAMS='-Des.default.path.conf=/etc/elasticsearch/ -Des.default.path.logs=/var/log/elasticsearch/' TEST_CLUSTER_PORT=19250 bundle exec rspec

Stop building against JRuby because the specs depends on the ruby-prof gem through the elasticsearch-extensions gem. JRuby on Travis CI is not equipped with native-extensions support, which is required by the ruby-prof gem.
Stop building against JRuby because the specs depends on the ruby-prof gem through the elasticsearch-extensions gem.
JRuby on Travis CI is not equipped with native-extensions support, which is required by the ruby-prof gem.
