Skip to content

Commit

Permalink
Use MySQL/MariaDB latest versions on macOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
junaruga committed Feb 26, 2021
1 parent 1a6e1be commit 6bc631b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,16 @@ jobs:
# `service mysql restart` fails.
- {os: ubuntu-20.04, ruby: 2.4, db: mysql80, allow-failure: true}
- {os: ubuntu-18.04, ruby: 'head', db: '', allow-failure: true}
# db: the DB's brew package name in macOS case.
# db: A DB's brew package name in macOS case.
# Set a name "db: '[email protected]'" when using an old version.
# MariaDB lastet version
# Allow failure due to the following test failures.
# https://github.com/brianmario/mysql2/issues/965
- {os: macos-latest, ruby: 2.4, db: '[email protected]', allow-failure: true}
# Allow failure due to Mysql2::Error: Unknown system variable 'session_track_system_variables'.
- {os: macos-latest, ruby: 2.4, db: '[email protected]', allow-failure: true}
# https://github.com/brianmario/mysql2/issues/1152
- {os: macos-latest, ruby: 2.4, db: mariadb, allow-failure: true}
# MySQL latest version
# Allow failure due to the issue #1165.
- {os: macos-latest, ruby: 2.4, db: mysql, allow-failure: true}
# On the fail-fast: true, it cancels all in-progress jobs
# if any matrix job fails unlike Travis fast_finish.
fail-fast: false
Expand Down
3 changes: 2 additions & 1 deletion .travis_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ if [[ x$OSTYPE =~ ^xdarwin ]]; then
brew search "${KEYWORD}"
done

brew install "$DB" mariadb-connector-c
brew info "$DB"
brew install "$DB"
DB_PREFIX="$(brew --prefix "${DB}")"
export PATH="${DB_PREFIX}/bin:${PATH}"
export LDFLAGS="-L${DB_PREFIX}/lib"
Expand Down

0 comments on commit 6bc631b

Please sign in to comment.