Skip to content

Commit

Permalink
Merge pull request #1085 from junaruga/hotfix/fix-travis-ci
Browse files Browse the repository at this point in the history
Fix Travis CI errors on mysql-5.7 and CentOS cases
  • Loading branch information
sodabrew authored Nov 22, 2019
2 parents 46369c0 + 12a5e96 commit 5f7a271
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ matrix:
- mysql2gem.example.com
- rvm: 2.4
env: DB=mysql57
dist: xenial
addons:
hosts:
- mysql2gem.example.com
Expand Down
5 changes: 5 additions & 0 deletions .travis_setup_centos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ set -eux

MYSQL_TEST_LOG="$(pwd)/mysql.log"

# mysql_install_db uses wrong path for resolveip
# https://jira.mariadb.org/browse/MDEV-18563
# https://travis-ci.org/brianmario/mysql2/jobs/615263124#L2840
ln -s "$(command -v resolveip)" /usr/libexec/resolveip

mysql_install_db \
--log-error="${MYSQL_TEST_LOG}"
/usr/libexec/mysqld \
Expand Down

0 comments on commit 5f7a271

Please sign in to comment.