From 790ef4fcac55f03c69e9b0d859535fb23f21968c Mon Sep 17 00:00:00 2001 From: Michael Moravec Date: Thu, 14 Jun 2018 23:33:13 +0200 Subject: [PATCH 1/2] Borrowed MySQL in Docker configuration from #3407 --- tests/travis/mysql.docker.travis.xml | 49 +++++++++++++++++++++++++++ tests/travis/mysqli.docker.travis.xml | 49 +++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 tests/travis/mysql.docker.travis.xml create mode 100644 tests/travis/mysqli.docker.travis.xml diff --git a/tests/travis/mysql.docker.travis.xml b/tests/travis/mysql.docker.travis.xml new file mode 100644 index 00000000000..21fae6f35e9 --- /dev/null +++ b/tests/travis/mysql.docker.travis.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + ../Doctrine/Tests/DBAL + + + + + + ../../lib/Doctrine + + + + + + + + + + performance + locking_functional + + + diff --git a/tests/travis/mysqli.docker.travis.xml b/tests/travis/mysqli.docker.travis.xml new file mode 100644 index 00000000000..935815e9cf4 --- /dev/null +++ b/tests/travis/mysqli.docker.travis.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + ../Doctrine/Tests/DBAL + + + + + + ../../lib/Doctrine + + + + + + + + + + performance + locking_functional + + + From 68e1ffa5bd74ee7d58d95782388ae98dba93416f Mon Sep 17 00:00:00 2001 From: Sergei Morozov Date: Thu, 13 Dec 2018 21:58:29 -0800 Subject: [PATCH 2/2] Fixed test failures in case of a non-standard MySQL port --- .../Tests/DBAL/Functional/Driver/Mysqli/ConnectionTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Doctrine/Tests/DBAL/Functional/Driver/Mysqli/ConnectionTest.php b/tests/Doctrine/Tests/DBAL/Functional/Driver/Mysqli/ConnectionTest.php index 8c274e1cbb2..bbd8d5ebd09 100644 --- a/tests/Doctrine/Tests/DBAL/Functional/Driver/Mysqli/ConnectionTest.php +++ b/tests/Doctrine/Tests/DBAL/Functional/Driver/Mysqli/ConnectionTest.php @@ -61,6 +61,7 @@ private function getConnection(array $driverOptions) [ 'host' => $GLOBALS['db_host'], 'dbname' => $GLOBALS['db_name'], + 'port' => $GLOBALS['db_port'], ], $GLOBALS['db_username'], $GLOBALS['db_password'],