Add support for old PHP versions on linux

This commit is contained in:
Shivam Mathur
2020-02-09 04:08:48 +05:30
parent 3c6644f237
commit ca33d01e9f
13 changed files with 893 additions and 100 deletions

View File

@ -54,7 +54,7 @@ export async function addCoveragePCOV(
pipe: string
): Promise<string> {
let script = '\n';
switch (version) {
switch (true) {
default:
script +=
(await extensions.addExtension('pcov', version, os_version, true)) +
@ -83,8 +83,8 @@ export async function addCoveragePCOV(
);
// version is not supported
break;
case '5.6':
case '7.0':
case /5\.[3-6]|7\.0/.test(version):
script += await utils.addLog(
'$cross',
'pcov',