-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (31 loc) · 1011 Bytes
/
.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
language: ruby
cache: bundler
bundler_args: --without production development test
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y postgresql-server-dev-all
addons:
postgresql: "9.4"
rvm:
- "1.9.3"
- "2.1.0"
env:
- DB=mysql DATABASE_URL="mysql://@localhost/test"
- DB=pgsql DATABASE_URL="postgres://postgres@localhost/test"
- DB=sqlite DATABASE_URL="sqlite::memory:"
- JS=true
matrix:
exclude:
- rvm: "1.9.3"
env: DB=mysql DATABASE_URL="mysql://@localhost/test"
- rvm: "1.9.3"
env: DB=pgsql DATABASE_URL="postgres://postgres@localhost/test"
- rvm: "1.9.3"
env: JS=true
before_script:
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS test;' -U postgres; fi"
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'create database test;' -U postgres; fi"
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS test;'; fi"
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
script: rake travis