dist: trusty sudo: required language: ruby rvm: - 2.3.6 - 2.4.4 - 2.5.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 script: - bundle exec rake gemfile: - gemfiles/activerecord_4.2.gemfile - gemfiles/activerecord_5.0.gemfile - gemfiles/activerecord_5.1.gemfile - gemfiles/activerecord_5.2.gemfile env: matrix: - ACTIVERECORD_MYSQL_RECONNECT_ENGINE=InnoDB - ACTIVERECORD_MYSQL_RECONNECT_ENGINE=MyISAM addons: apt: packages: - mysql-client-core-5.6 - mysql-client-5.6