1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

Merge pull request #6014 from rxu/ticket/16538

[ticket/16538] Add MySQL 8 tests
This commit is contained in:
Marc Alexander
2020-10-25 16:21:01 +01:00
13 changed files with 91 additions and 7 deletions

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

@@ -0,0 +1,20 @@
#!/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
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

View File

@@ -14,6 +14,7 @@ set -x
DB=$1
TRAVIS_PHP_VERSION=$2
NOTESTS=$3
MYSQL8=$4
if [ "$NOTESTS" == '1' ]
then
@@ -26,6 +27,11 @@ then
travis/setup-mariadb.sh
fi
if [ "$MYSQL8" == '1' ]
then
travis/setup-mysql8.sh
fi
if [ "$NOTESTS" != '1' ]
then
travis/setup-php-extensions.sh