Add support for behat and phpspec

This commit is contained in:
Shivam Mathur
2020-10-05 09:11:15 +05:30
parent 9e663851ce
commit b8f0b066dc
4 changed files with 22 additions and 5 deletions

View File

@ -334,7 +334,7 @@ export async function getCleanedToolsList(
return extension
.trim()
.replace(
/-agent|hirak\/|icanhazstring\/|laravel\/|narrowspark\/automatic-|overtrue\/|robmorgan\/|symfony\//,
/-agent|behat\/|hirak\/|icanhazstring\/|laravel\/|narrowspark\/automatic-|overtrue\/|phpspec\/|robmorgan\/|symfony\//,
''
);
})
@ -445,6 +445,10 @@ export async function addTools(
case 'protoc':
script += await utils.customPackage(tool, 'tools', version, os_version);
break;
case 'behat':
case 'phpspec':
script += await addPackage(tool, release, tool + '/', os_version);
break;
case 'blackfire-player':
url = await getPharUrl('https://get.blackfire.io', tool, 'v', version);
script += await addArchive(tool, url, os_version, '"-V"');