forked from jbox-web/ajax-datatables-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (45 loc) · 1.16 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
dist: trusty
language: ruby
sudo: required
cache: bundler
rvm:
- 2.3.7
- 2.4.4
- 2.5.1
gemfile:
- gemfiles/rails_4.2.10.gemfile
- gemfiles/rails_5.0.7.gemfile
- gemfiles/rails_5.1.6.gemfile
- gemfiles/rails_5.2.0.gemfile
after_success:
- bundle exec codeclimate-test-reporter
services:
- postgresql
- mysql
addons:
postgresql: '9.6'
apt:
packages:
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
before_install:
- gem update --system
- gem install bundler
- sh -c "if [ '$DB_ADAPTER' = 'mysql2' ]; then mysql -e 'create database ajax_datatables_rails;'; fi"
- sh -c "if [ '$DB_ADAPTER' = 'postgresql' ]; then psql -c 'create database ajax_datatables_rails;' -U postgres; fi"
- sh -c "if [ '$DB_ADAPTER' = 'oracle_enhanced' ]; then ./spec/install_oracle.sh; fi"
env:
global:
- ORACLE_COOKIE=sqldev
- ORACLE_FILE=oracle11g/xe/oracle-xe-11.2.0-1.0.x86_64.rpm.zip
- ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
- ORACLE_SID=XE
matrix:
- DB_ADAPTER=postgresql
- DB_ADAPTER=mysql2
- DB_ADAPTER=sqlite3
- DB_ADAPTER=oracle_enhanced
matrix:
allow_failures:
- env: DB_ADAPTER=oracle_enhanced