Skip to content

Commit b2cfca1

Browse files
committed
Travis CI should run MySQL 5.5 tests on Trusty
1 parent 8c6186b commit b2cfca1

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

.travis.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,11 @@ matrix:
4545
mariadb: 10.2
4646
hosts:
4747
- mysql2gem.example.com
48-
- rvm: 2.0.0
48+
- rvm: 2.4
4949
env: DB=mysql55
50-
dist: precise
5150
addons:
5251
hosts:
5352
- mysql2gem.example.com
54-
apt:
55-
packages:
56-
- mysql-server-5.5
57-
- mysql-client-core-5.5
58-
- mysql-client-5.5
5953
- rvm: 2.4
6054
env: DB=mysql57
6155
addons:
@@ -67,7 +61,7 @@ matrix:
6761
hosts:
6862
- mysql2gem.example.com
6963
- os: osx
70-
rvm: 2.3
64+
rvm: 2.4
7165
env: DB=mysql56
7266
addons:
7367
hosts:
@@ -76,5 +70,5 @@ matrix:
7670
allow_failures:
7771
- rvm: ruby-head
7872
- os: osx
79-
rvm: 2.3
73+
rvm: 2.4
8074
env: DB=mysql56

.travis_mysql55.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
3+
set -eux
4+
5+
apt-get purge -qq '^mysql*' '^libmysql*'
6+
rm -fr /etc/mysql
7+
rm -fr /var/lib/mysql
8+
apt-get install -qq mysql-server-5.5 mysql-client-core-5.5 mysql-client-5.5 libmysqlclient-dev

.travis_setup.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
set -eux
44

5+
# Install MySQL 5.5 if DB=mysql55
6+
if [[ -n ${DB-} && x$DB =~ ^xmysql55 ]]; then
7+
sudo bash .travis_mysql55.sh
8+
fi
9+
510
# Install MySQL 5.7 if DB=mysql57
611
if [[ -n ${DB-} && x$DB =~ ^xmysql57 ]]; then
712
sudo bash .travis_mysql57.sh

0 commit comments

Comments
 (0)