Skip to content

Commit

Permalink
Merge pull request #39 from creative-commoners/pulls/1/php82
Browse files Browse the repository at this point in the history
NEW PHP 8.2 for CMS5
  • Loading branch information
GuySartorelli authored Jan 26, 2023
2 parents 096a755 + 488a078 commit 44aa087
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 9 deletions.
2 changes: 2 additions & 0 deletions consts.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@
],
'5.0' => [
'8.1',
'8.2',
],
'5' => [
'8.1',
'8.2',
],
];

Expand Down
23 changes: 18 additions & 5 deletions job_creator.php
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,24 @@ private function createPhpunitJobs(
'phpunit_suite' => $suite,
]);
}
$matrix['include'][] = $this->createJob(3, [
'db' => DB_MYSQL_80,
'phpunit' => true,
'phpunit_suite' => $suite,
]);
if ($this->getCmsMajor() === '4') {
$matrix['include'][] = $this->createJob(3, [
'db' => DB_MYSQL_80,
'phpunit' => true,
'phpunit_suite' => $suite,
]);
} elseif ($this->getCmsMajor() === '5') {
$matrix['include'][] = $this->createJob(0, [
'db' => DB_MYSQL_57,
'phpunit' => true,
'phpunit_suite' => $suite,
]);
$matrix['include'][] = $this->createJob(1, [
'db' => DB_MYSQL_80,
'phpunit' => true,
'phpunit_suite' => $suite,
]);
}
}
return $matrix;
}
Expand Down
28 changes: 24 additions & 4 deletions tests/JobCreatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,23 @@ public function provideCreateJson(): array
[
'installer_version' => '5.x-dev',
'php' => '8.1',
'db' => DB_MYSQL_57,
'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 mysql57 phpunit all',
],
[
'installer_version' => '5.x-dev',
'php' => '8.2',
'db' => DB_MYSQL_80,
'composer_require_extra' => '',
'composer_args' => '',
Expand All @@ -276,7 +293,7 @@ public function provideCreateJson(): array
'endtoend_suite' => 'root',
'endtoend_config' => '',
'js' => 'false',
'name' => '8.1 mysql80 phpunit all',
'name' => '8.2 mysql80 phpunit all',
],
]
],
Expand Down Expand Up @@ -753,7 +770,8 @@ public function provideComposerInstall(): array
'5.x-dev',
[
// '8.1 prf-low mysql57 phpunit all',
'8.1 mysql80 phpunit all'
'8.1 mysql57 phpunit all',
'8.2 mysql80 phpunit all'
]
],
'composerupgrade_definedphpversion_framework5' => [
Expand All @@ -762,7 +780,8 @@ public function provideComposerInstall(): array
'5.x-dev',
[
// '8.1 prf-low mysql57 phpunit all',
'8.1 mysql80 phpunit all'
'8.1 mysql57 phpunit all',
'8.2 mysql80 phpunit all'
]
],
'composerupgrade_invalidphpversion_framework5' => [
Expand All @@ -771,7 +790,8 @@ public function provideComposerInstall(): array
'5.x-dev',
[
// '8.1 prf-low mysql57 phpunit all',
'8.1 mysql80 phpunit all'
'8.1 mysql57 phpunit all',
'8.2 mysql80 phpunit all'
]
],
];
Expand Down

0 comments on commit 44aa087

Please sign in to comment.