dist: trusty language: ruby sudo: required cache: bundler rvm: - 2.2.7 - 2.3.4 gemfile: - gemfiles/rails_4.0.13.gemfile - gemfiles/rails_4.1.15.gemfile - gemfiles/rails_4.2.8.gemfile - gemfiles/rails_5.0.3.gemfile - gemfiles/rails_5.1.1.gemfile matrix: include: - rvm: 2.4.1 gemfile: gemfiles/rails_4.2.8.gemfile env: DB_ADAPTER=postgresql - rvm: 2.4.1 gemfile: gemfiles/rails_5.0.3.gemfile env: DB_ADAPTER=postgresql - rvm: 2.4.1 gemfile: gemfiles/rails_5.1.1.gemfile env: DB_ADAPTER=postgresql - rvm: 2.4.1 gemfile: gemfiles/rails_4.2.8.gemfile env: DB_ADAPTER=mysql2 - rvm: 2.4.1 gemfile: gemfiles/rails_5.0.3.gemfile env: DB_ADAPTER=mysql2 - rvm: 2.4.1 gemfile: gemfiles/rails_5.1.1.gemfile env: DB_ADAPTER=mysql2 - rvm: 2.4.1 gemfile: gemfiles/rails_4.2.8.gemfile env: DB_ADAPTER=oracle_enhanced - rvm: 2.4.1 gemfile: gemfiles/rails_5.0.3.gemfile env: DB_ADAPTER=oracle_enhanced - rvm: 2.4.1 gemfile: gemfiles/rails_5.1.1.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