1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-22 16:51:56 +02:00

[ticket/16538] Add MySQL 8 tests

PHPBB3-16538
This commit is contained in:
rxu 2020-06-26 11:22:36 +07:00
parent 7d18ecd1bf
commit 55d9154b01
No known key found for this signature in database
GPG Key ID: 8EF9758E0A54D19E
2 changed files with 32 additions and 0 deletions

View File

@ -21,6 +21,8 @@ matrix:
env: DB=mysqli
- php: 7.4
env: DB=mysqli
- php: 7.4
env: DB=mysqli;MYSQL8=1
- php: nightly
env: DB=mysqli
allow_failures:
@ -33,6 +35,9 @@ services:
- mysql
- memcached
before_install:
- travis/setup-mysql8.sh $MYSQL8
install:
- travis/setup-phpbb.sh $DB $TRAVIS_PHP_VERSION $NOTESTS

27
travis/setup-mysql8.sh Executable file
View File

@ -0,0 +1,27 @@
#!/bin/bash
#
# This file is part of the phpBB Forum Software package.
#
# @copyright (c) phpBB Limited <https://www.phpbb.com>
# @license GNU General Public License, version 2 (GPL-2.0)
#
# For full copyright and license information, please see
# the docs/CREDITS.txt file.
#
set -e
set -x
MYSQL8=$1
if [ "$MYSQL8" != '1' ]
then
exit 0
fi
wget https://repo.mysql.com//mysql-apt-config_0.8.15-1_all.deb
sudo dpkg -i mysql-apt-config_0.8.15-1_all.deb
sudo apt-get update -q
sudo apt-get install -q -y --allow-unauthenticated -o Dpkg::Options::=--force-confnew mysql-server
sudo systemctl restart mysql
sudo mysql_upgrade
mysql --version