Skip to content

Commit

Permalink
Merge pull request #34 from creative-commoners/pulls/1/pgsql-default
Browse files Browse the repository at this point in the history
ENH Remove pgsql as default job
  • Loading branch information
GuySartorelli authored Oct 18, 2022
2 parents a35addf + ed31d87 commit 41e9a39
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 43 deletions.
7 changes: 1 addition & 6 deletions job_creator.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,16 +312,11 @@ private function createPhpunitJobs(
'phpunit' => true,
'phpunit_suite' => $suite,
]);
$matrix['include'][] = $this->createJob(1, [
'db' => DB_PGSQL,
'phpunit' => true,
'phpunit_suite' => $suite,
]);
// this same mysql pdo test is also created for the phpcoverage job, so only add it here if
// not creating a phpcoverage job.
// note: phpcoverage also runs unit tests
if ($this->getCmsMajor() === '4' && !$this->doRunPhpCoverage($run)) {
$matrix['include'][] = $this->createJob(2, [
$matrix['include'][] = $this->createJob(1, [
'db' => DB_MYSQL_57_PDO,
'phpunit' => true,
'phpunit_suite' => $suite,
Expand Down
40 changes: 3 additions & 37 deletions tests/JobCreatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,23 +191,6 @@ public function provideCreateJson(): array
[
'installer_version' => '4.11.x-dev',
'php' => '8.0',
'db' => DB_PGSQL,
'composer_require_extra' => '',
'composer_args' => '',
'name_suffix' => '',
'phpunit' => 'true',
'phpunit_suite' => 'all',
'phplinting' => 'false',
'phpcoverage' => 'false',
'endtoend' => 'false',
'endtoend_suite' => 'root',
'endtoend_config' => '',
'js' => 'false',
'name' => '8.0 pgsql phpunit all',
],
[
'installer_version' => '4.11.x-dev',
'php' => '8.1',
'db' => DB_MYSQL_57_PDO,
'composer_require_extra' => '',
'composer_args' => '',
Expand All @@ -220,7 +203,7 @@ public function provideCreateJson(): array
'endtoend_suite' => 'root',
'endtoend_config' => '',
'js' => 'false',
'name' => '8.1 mysql57pdo phpunit all',
'name' => '8.0 mysql57pdo phpunit all',
],
[
'installer_version' => '4.11.x-dev',
Expand Down Expand Up @@ -269,23 +252,6 @@ public function provideCreateJson(): array
'js' => 'false',
'name' => '8.1 prf-low mysql57 phpunit all',
],
[
'installer_version' => '5.x-dev',
'php' => '8.1',
'db' => DB_PGSQL,
'composer_require_extra' => '',
'composer_args' => '',
'name_suffix' => '',
'phpunit' => 'true',
'phpunit_suite' => 'all',
'phplinting' => 'false',
'phpcoverage' => 'false',
'endtoend' => 'false',
'endtoend_suite' => 'root',
'endtoend_config' => '',
'js' => 'false',
'name' => '8.1 pgsql phpunit all',
],
[
'installer_version' => '5.x-dev',
'php' => '8.1',
Expand Down Expand Up @@ -549,9 +515,9 @@ public function testDynamicMatrix(string $value, int $jobCount)
public function provideDynamicMatrix(): array
{
return [
['true', 4],
['true', 3],
['false', 0],
['', 4],
['', 3],
];
}

Expand Down

0 comments on commit 41e9a39

Please sign in to comment.