Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Add travis config (copy from dm-types) #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
language: ruby

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

env:
global:
- JRUBY_OPTS="$JRUBY_OPTS -J-Xmx1g --debug"
matrix:
- "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:
- gem install bundler
- travis_retry sudo apt-get update -qq
- sudo apt-get install -qq postgresql-server-dev-all

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-19mode
- rvm: jruby-head

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