1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +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
2 changed files with 32 additions and 0 deletions

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