[CI] Fix MySQL

This commit is contained in:
ruan 2020-08-07 19:56:03 +02:00
parent ca586267b4
commit 2df02aee73
2 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,7 @@ services:
variables:
COMPOSER: 'inc/test/composer.json'
# Configure mysql environment variables (https://hub.docker.com/r/_/mysql/)
MYSQL_HOST: '127.0.0.1'
MYSQL_DATABASE: mysql_database
MYSQL_USERNAME: root
MYSQL_PASSWORD: mysql_strong_password

View File

@ -3,6 +3,7 @@
class EnvSettings extends Settings {
public function __construct($connect = true) {
parent::__construct(false);
$this->host = getenv("MYSQL_HOST");
$this->database = getenv("MYSQL_DATABASE");
$this->username = getenv("MYSQL_USERNAME");
$this->password = getenv("MYSQL_PASSWORD");