.travis.yml
before_script:
- |
echo -e "[mysqld]
character_set_server=utf8mb4
collation_server=utf8mb4_unicode_ci
innodb_large_prefix=ON
innodb_file_format=Barracuda
innodb_file_format_max=Barracuda" | sudo tee /etc/mysql/conf.d/travis.cnf
- sudo /etc/init.d/mysql restart
/etc/mysql/conf.d/
以下はMySQL 5.6のパス。標準の5.5で同じかは試してない。たぶんいける?