Skip to content

Commit

Permalink
MNT Add MariaDB support
Browse files Browse the repository at this point in the history
  • Loading branch information
Sabina Talipova committed Nov 2, 2023
1 parent 3e51107 commit 785c70a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions consts.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
const DB_MYSQL_57_PDO = 'mysql57pdo';
const DB_MYSQL_80 = 'mysql80';
const DB_PGSQL = 'pgsql';
const DB_MARIADB = 'mariadb';

// Used when determining the version of installer to used. Intentionally doesn't include recipes
const LOCKSTEPPED_REPOS = [
Expand Down
3 changes: 2 additions & 1 deletion job_creator.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ private function createPhpunitJobs(
} else {
$matrix['include'][] = $this->createJob(0, [
'composer_args' => '--prefer-lowest',
'db' => DB_MYSQL_57,
'phpunit' => true,
'phpunit_suite' => $suite,
]);
Expand All @@ -369,7 +370,7 @@ private function createPhpunitJobs(
]);
} elseif ($this->getCmsMajor() === '5') {
$matrix['include'][] = $this->createJob(0, [
'db' => DB_MYSQL_57,
'db' => DB_MARIADB,
'phpunit' => true,
'phpunit_suite' => $suite,
]);
Expand Down
10 changes: 5 additions & 5 deletions tests/JobCreatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ public function provideCreateJson(): array
[
'installer_version' => '5.x-dev',
'php' => '8.1',
'db' => DB_MYSQL_57,
'db' => DB_MARIADB,
'composer_require_extra' => '',
'composer_args' => '',
'name_suffix' => '',
Expand All @@ -276,7 +276,7 @@ public function provideCreateJson(): array
'endtoend_suite' => 'root',
'endtoend_config' => '',
'js' => 'false',
'name' => '8.1 mysql57 phpunit all',
'name' => '8.1 mariadb phpunit all',
],
[
'installer_version' => '5.x-dev',
Expand Down Expand Up @@ -771,7 +771,7 @@ public function provideComposerInstall(): array
'5.x-dev',
[
'8.1 prf-low mysql57 phpunit all',
'8.1 mysql57 phpunit all',
'8.1 mariadb phpunit all',
'8.2 mysql80 phpunit all'
]
],
Expand All @@ -781,7 +781,7 @@ public function provideComposerInstall(): array
'5.x-dev',
[
'8.1 prf-low mysql57 phpunit all',
'8.1 mysql57 phpunit all',
'8.1 mariadb phpunit all',
'8.2 mysql80 phpunit all'
]
],
Expand All @@ -791,7 +791,7 @@ public function provideComposerInstall(): array
'5.x-dev',
[
'8.1 prf-low mysql57 phpunit all',
'8.1 mysql57 phpunit all',
'8.1 mariadb phpunit all',
'8.2 mysql80 phpunit all'
]
],
Expand Down

0 comments on commit 785c70a

Please sign in to comment.