language: ruby

rvm:
  - 2.0
  - 2.1
  - 2.2
  - ruby-head
  - rbx-19mode

env:
  - "ADAPTER=in_memory"
  - "ADAPTER=yaml"
  - "ADAPTER=sqlite"
  - "ADAPTER=mysql DM_DB_USER=root DM_DB_PASSWORD=''"
  - "ADAPTER=postgres DM_DB_USER=postgres DM_DB_PASSWORD=''"

cache: bundler

sudo: true

services:
  - mysql
  - postgresql

before_install:
  - until sudo apt-get update -qq; do :; done  # retry until successful
  - sudo apt-get install -qq postgresql-server-dev-9.3

bundler_args: --without yard guard metrics benchmarks --retry 3

before_script:
  - mysql -e "create database datamapper_alternate_tests;"
  - mysql -e "create database datamapper_default_tests;"
  - psql  -c "create database datamapper_default_tests;" -U postgres
  - psql  -c "create database datamapper_alternate_tests;" -U postgres

script: "bundle exec rake spec"

matrix:
  allow_failures:
    - rvm: ruby-head
    - rvm: jruby-head
  include:
    - rvm: jruby-19mode
      env: JRUBY_OPTS="$JRUBY_OPTS --debug"
    - rvm: jruby-head
      env: JRUBY_OPTS="$JRUBY_OPTS --debug"

notifications:
  irc: "irc.freenode.org#datamapper"

language: ruby

rvm:
  - 2.0
  - 2.1
  - 2.2
  - ruby-head
  - jruby-19mode
  - jruby-head
  - rbx-19mode

env:
  - "ADAPTER=in_memory"
  - "ADAPTER=yaml"
  - "ADAPTER=sqlite"
  - "ADAPTER=mysql DM_DB_USER=root DM_DB_PASSWORD=''"
  - "ADAPTER=postgres DM_DB_USER=postgres DM_DB_PASSWORD=''"

cache: bundler

sudo: true

services:
  - mysql
  - postgresql

before_install:
  - until sudo apt-get update -qq; do :; done  # retry until successful
  - sudo apt-get install -qq postgresql-server-dev-9.3

bundler_args: --without yard guard metrics benchmarks --retry 3

before_script:
  - mysql -e "create database datamapper_alternate_tests;"
  - mysql -e "create database datamapper_default_tests;"
  - psql  -c "create database datamapper_default_tests;" -U postgres
  - psql  -c "create database datamapper_alternate_tests;" -U postgres

script: "bundle exec rake spec"

matrix:
  allow_failures:
    - rvm: ruby-head
    - rvm: jruby-head

notifications:
  irc: "irc.freenode.org#datamapper"

Move jruby-19mode and jruby-head to rvm matrix
Move jruby-19mode and jruby-head to rvm matrix
