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

6
dist/index.js vendored
View File

@ -2053,7 +2053,7 @@ async function getCleanedToolsList(tools_csv) {
.map(function (extension) {
return extension
.trim()
.replace(/-agent|hirak\/|icanhazstring\/|laravel\/|narrowspark\/automatic-|overtrue\/|robmorgan\/|symfony\//, '');
.replace(/-agent|behat\/|hirak\/|icanhazstring\/|laravel\/|narrowspark\/automatic-|overtrue\/|phpspec\/|robmorgan\/|symfony\//, '');
})
.filter(Boolean);
return [...new Set(tools_list)];
@ -2127,6 +2127,10 @@ async function addTools(tools_csv, php_version, os_version) {
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"');