From ceab3f9a29e0635c033cafb3f38975e2401b8d5f Mon Sep 17 00:00:00 2001 From: Griatch Date: Sun, 24 Mar 2019 10:19:26 +0100 Subject: [PATCH] Test to output SHOW VARIABLES as part of travis run --- .travis.yml | 1 + .travis/mysql_settings.py | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index e6a4006243..7970b44c6a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,6 +23,7 @@ before_install: - mysql -u root -e "CREATE DATABASE evennia CHARACTER SET utf8mb4;" - mysql -u root -e "CREATE USER 'evennia'@'localhost' IDENTIFIED BY 'password';" - mysql -u root -e "GRANT ALL ON *.* TO 'evennia'@'localhost' IDENTIFIED BY 'password';" + - mysql -u root -e "SHOW VARIABLES WHERE Variable_name LIKE 'character\_set\_%' OR Variable_name LIKE 'collation%';" install: - pip install psycopg2-binary diff --git a/.travis/mysql_settings.py b/.travis/mysql_settings.py index b58dbcd52a..1ee080a989 100644 --- a/.travis/mysql_settings.py +++ b/.travis/mysql_settings.py @@ -47,12 +47,14 @@ DATABASES = { 'HOST': 'localhost', 'PORT': '', # use default port 'OPTIONS': { - 'read_default_file': '.travis/my.conf' + # 'read_default_file': '.travis/my.conf', + 'charset': 'utf8mb4' }, 'TEST': { 'NAME': 'default', 'OPTIONS': { - 'read_default_file': '.travis/my.conf' + # 'read_default_file': '.travis/my.conf' + 'charset': 'utf8mb4' } } }