Move blackfire setup to separate scripts

This commit is contained in:
Shivam Mathur
2020-08-01 17:33:24 +05:30
parent cb25b9c13a
commit 5405f14867
7 changed files with 59 additions and 65 deletions

View File

@ -364,7 +364,7 @@ export async function getCleanedToolsList(
return extension
.trim()
.replace(
/hirak\/|laravel\/|narrowspark\/automatic-|overtrue\/|robmorgan\/|symfony\//,
/-agent|hirak\/|laravel\/|narrowspark\/automatic-|overtrue\/|robmorgan\/|symfony\//,
''
);
})
@ -494,8 +494,9 @@ export async function addTools(
let url = '';
switch (tool) {
case 'blackfire':
case 'blackfire-agent':
script += await getCommand(os_version, 'blackfire');
case 'grpc_php_plugin':
case 'protoc':
script += await addCustomTool(tool, version, os_version);
break;
case 'blackfire-player':
url = await getPharUrl('https://get.blackfire.io', tool, 'v', version);
@ -546,10 +547,6 @@ export async function addTools(
case 'flex':
script += await addPackage(tool, release, 'symfony/', os_version);
break;
case 'grpc_php_plugin':
case 'protoc':
script += await addCustomTool(tool, version, os_version);
break;
case 'infection':
url = github + 'infection/infection/' + uri;
script += await addArchive(tool, version, url, os_version);