dist: trusty sudo: required language: ruby rvm: - 2.1.9 - 2.2.5 - 2.3.1 before_install: - docker-compose up -d - function mysql_ping { mysqladmin -u root -h 127.0.0.1 -ppassword ping > /dev/null 2> /dev/null; } - for i in {1..60}; do mysql_ping && break; sleep 1; done - gem install bundler - docker-compose stop - sudo rm -rf /tmp/mysql_for_ar_mysql_reconn script: - bundle exec rake gemfile: - gemfiles/activerecord_4.2.gemfile - gemfiles/activerecord_5.0.gemfile env: matrix: - ACTIVERECORD_MYSQL_RECONNECT_ENGINE=InnoDB - ACTIVERECORD_MYSQL_RECONNECT_ENGINE=MyISAM matrix: exclude: - rvm: 2.1.9 gemfile: gemfiles/activerecord_5.0.gemfile addons: apt: packages: - mysql-client-core-5.6 - mysql-client-5.6