Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
Fix .travis.yml for MySQL 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Genki Sugawara committed Nov 2, 2015
1 parent 8ee4c49 commit bcd4eab
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
sudo: false
sudo: true
language: ruby
rvm:
- 2.0.0
script:
- bundle install
- bundle exec rake
env:
- MYSQL_VERSION=5.6.27
install:
- "sudo apt-get -y remove mysql-common mysql-server-5.5 mysql-server-core-5.5 mysql-client-5.5 mysql-client-core-5.5"
- "sudo apt-get -y autoremove"
- "sudo apt-get -y install libaio1"
- "wget -O mysql-$MYSQL_VERSION.deb http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-$MYSQL_VERSION-debian6.0-x86_64.deb/from/http://cdn.mysql.com/"
- "sudo dpkg -i mysql-$MYSQL_VERSION.deb"
- "sudo cp -f /opt/mysql/server-5.6/support-files/mysql.server /etc/init.d/mysql.server"
- "sudo ln -sf /opt/mysql/server-5.6/bin/* /usr/bin/"
- "sudo sed -i'' 's/table_cache/table_open_cache/' /etc/mysql/my.cnf"
- "sudo sed -i'' 's/log_slow_queries/slow_query_log/' /etc/mysql/my.cnf"
- "sudo sed -i'' 's/basedir[^=]\\+=.*$/basedir = \\/opt\\/mysql\\/server-5.6/' /etc/mysql/my.cnf"
- "sudo sed -i'' 's/^socket *=.*$/socket = \\/tmp\\/mysql.sock/' /etc/mysql/my.cnf"
- "sudo /etc/init.d/mysql.server start"

0 comments on commit bcd4eab

Please sign in to comment.