Skip to content

Commit bbea9e6

Browse files
committed
Merge pull request #550 from zizkovrb/mysql57-ci
Add MySQL 5.7 test to CI.
2 parents e953f0c + 05c7875 commit bbea9e6

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ script:
44
- bundle exec rake spec
55
before_install:
66
- gem --version
7+
- |
8+
bash -c " # Install MySQL 5.7 if DB=mysql57
9+
if [[ x$DB =~ mysql57 ]]; then
10+
bash .travis_mysql57.sh
11+
fi
12+
"
713
- |
814
bash -c " # Install MariaDB if DB=mariadb
915
if [[ x$DB =~ xmariadb ]]; then
@@ -34,12 +40,15 @@ rvm:
3440
- ree
3541
matrix:
3642
allow_failures:
43+
- env: DB=mysql57
3744
- rvm: rbx-2
3845
include:
3946
- rvm: 2.0.0
4047
env: DB=mariadb55
4148
- rvm: 2.0.0
4249
env: DB=mariadb10
50+
- rvm: 2.0.0
51+
env: DB=mysql57
4352
- rvm: rbx-2
4453
env: RBXOPT=-Xgc.honor_start=true
4554
- rvm: 2.0.0

.travis_mysql57.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
sudo apt-get remove --purge "^mysql.*"
2+
sudo apt-get autoremove
3+
sudo apt-get autoclean
4+
sudo rm -rf /var/lib/mysql
5+
sudo rm -rf /var/log/mysql
6+
echo mysql-apt-config mysql-apt-config/enable-repo select mysql-5.7-dmr | sudo debconf-set-selections
7+
wget http://dev.mysql.com/get/mysql-apt-config_0.2.1-1ubuntu12.04_all.deb
8+
sudo dpkg --install mysql-apt-config_0.2.1-1ubuntu12.04_all.deb
9+
sudo apt-get update -q
10+
sudo apt-get install -q -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" mysql-server ruby libmysqlclient-dev

0 commit comments

Comments
 (0)