Skip to content

Commit

Permalink
Travis CI add Percona MySQL 5.1 to the matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
sodabrew committed Jul 4, 2017
1 parent 71b5eab commit f566384
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ matrix:
mariadb: 10.2
hosts:
- mysql2gem.example.com
- rvm: 2.0.0
env: DB=mysql51
dist: precise
addons:
hosts:
- mysql2gem.example.com
- rvm: 2.0.0
env: DB=mysql55
dist: precise
Expand Down Expand Up @@ -105,3 +111,6 @@ matrix:
- os: osx
rvm: system
env: DB=mysql56
- rvm: 2.0.0
env: DB=mysql51
dist: precise
11 changes: 11 additions & 0 deletions .travis_mysql51.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

set -eux

apt-get purge -qq '^mysql*' '^libmysql*'
rm -fr /etc/mysql
rm -fr /var/lib/mysql
apt-key adv --keyserver keys.gnupg.net --recv-keys 8507EFA5
add-apt-repository 'deb http://repo.percona.com/apt precise main'
apt-get update -qq
apt-get install -qq percona-server-server-5.1 percona-server-client-5.1 libmysqlclient16-dev
5 changes: 5 additions & 0 deletions .travis_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

set -eux

# Install MySQL 5.1 if DB=mysql51
if [[ -n ${DB-} && x$DB =~ ^xmysql51 ]]; then
sudo bash .travis_mysql51.sh
fi

# Install MySQL 5.7 if DB=mysql57
if [[ -n ${DB-} && x$DB =~ ^xmysql57 ]]; then
sudo bash .travis_mysql57.sh
Expand Down

0 comments on commit f566384

Please sign in to comment.