forked from lordon/ajax-datatables-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
68 lines (68 loc) · 1.9 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
dist: trusty
language: ruby
sudo: required
cache: bundler
rvm:
- 2.2.9
- 2.3.6
gemfile:
- gemfiles/rails_4.0.13.gemfile
- gemfiles/rails_4.1.16.gemfile
- gemfiles/rails_4.2.10.gemfile
- gemfiles/rails_5.0.6.gemfile
- gemfiles/rails_5.1.5.gemfile
matrix:
include:
- rvm: 2.4.3
gemfile: gemfiles/rails_4.2.10.gemfile
env: DB_ADAPTER=postgresql
- rvm: 2.4.3
gemfile: gemfiles/rails_5.0.6.gemfile
env: DB_ADAPTER=postgresql
- rvm: 2.4.3
gemfile: gemfiles/rails_5.1.5.gemfile
env: DB_ADAPTER=postgresql
- rvm: 2.4.3
gemfile: gemfiles/rails_4.2.10.gemfile
env: DB_ADAPTER=mysql2
- rvm: 2.4.3
gemfile: gemfiles/rails_5.0.6.gemfile
env: DB_ADAPTER=mysql2
- rvm: 2.4.3
gemfile: gemfiles/rails_5.1.5.gemfile
env: DB_ADAPTER=mysql2
- rvm: 2.4.3
gemfile: gemfiles/rails_4.2.10.gemfile
env: DB_ADAPTER=oracle_enhanced
- rvm: 2.4.3
gemfile: gemfiles/rails_5.0.6.gemfile
env: DB_ADAPTER=oracle_enhanced
- rvm: 2.4.3
gemfile: gemfiles/rails_5.1.5.gemfile
env: DB_ADAPTER=oracle_enhanced
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:
- 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=oracle_enhanced