.travis.yml
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=''"
sudo: true
services:
- mysql
- postgresql
before_install:
- gem install bundler
- sudo apt-get update -qq
- sudo apt-get install -y postgresql-server-dev-all
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
bundler_args: --without yard guard metrics benchmarks --retry 3
script: "bundle exec rake spec"
matrix:
allow_failures:
- rvm: rbx-19mode
env: "ADAPTER=yaml"
- rvm: ruby-head
include:
- rvm: jruby-19mode
env: JRUBY_OPTS="$JRUBY_OPTS --debug"
- rvm: jruby-head
env: JRUBY_OPTS="$JRUBY_OPTS --debug"
branches:
only:
- master
- /^release-.*$/
notifications:
irc: "irc.freenode.org#datamapper"
email:
- dan.kubb@gmail.com