forked from datamapper/dm-validations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
51 lines (40 loc) · 1.04 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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:
- 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"