mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-23 04:11:06 +07:00
Add support for ext-imagick on darwin
This commit is contained in:
parent
e58c704985
commit
5108c81610
@ -90,6 +90,14 @@ describe('Extension tests', () => {
|
|||||||
darwin = await extensions.addExtension('redis', '7.2', 'darwin');
|
darwin = await extensions.addExtension('redis', '7.2', 'darwin');
|
||||||
expect(darwin).toContain('sudo pecl install redis');
|
expect(darwin).toContain('sudo pecl install redis');
|
||||||
|
|
||||||
|
darwin = await extensions.addExtension('imagick', '5.6', 'darwin');
|
||||||
|
expect(darwin).toContain('brew install pkg-config imagemagick');
|
||||||
|
expect(darwin).toContain('sudo pecl install imagick');
|
||||||
|
|
||||||
|
darwin = await extensions.addExtension('imagick', '7.4', 'darwin');
|
||||||
|
expect(darwin).toContain('brew install pkg-config imagemagick');
|
||||||
|
expect(darwin).toContain('sudo pecl install imagick');
|
||||||
|
|
||||||
darwin = await extensions.addExtension(
|
darwin = await extensions.addExtension(
|
||||||
'does_not_exist',
|
'does_not_exist',
|
||||||
'7.2',
|
'7.2',
|
||||||
|
7
dist/index.js
vendored
7
dist/index.js
vendored
@ -2577,6 +2577,13 @@ function addExtensionDarwin(extension_csv, version, pipe) {
|
|||||||
case /5\.6redis/.test(version_extension):
|
case /5\.6redis/.test(version_extension):
|
||||||
install_command = 'sudo pecl install redis-2.2.8' + pipe;
|
install_command = 'sudo pecl install redis-2.2.8' + pipe;
|
||||||
break;
|
break;
|
||||||
|
case /[5-9]\.\dimagick/.test(version_extension):
|
||||||
|
install_command =
|
||||||
|
'brew install pkg-config imagemagick' +
|
||||||
|
pipe +
|
||||||
|
' && sudo pecl install imagick' +
|
||||||
|
pipe;
|
||||||
|
break;
|
||||||
case /^7\.[0-3]phalcon3$|^7\.[2-4]phalcon4$/.test(version_extension):
|
case /^7\.[0-3]phalcon3$|^7\.[2-4]phalcon4$/.test(version_extension):
|
||||||
install_command =
|
install_command =
|
||||||
'sh ' +
|
'sh ' +
|
||||||
|
@ -30,6 +30,13 @@ export async function addExtensionDarwin(
|
|||||||
case /5\.6redis/.test(version_extension):
|
case /5\.6redis/.test(version_extension):
|
||||||
install_command = 'sudo pecl install redis-2.2.8' + pipe;
|
install_command = 'sudo pecl install redis-2.2.8' + pipe;
|
||||||
break;
|
break;
|
||||||
|
case /[5-9]\.\dimagick/.test(version_extension):
|
||||||
|
install_command =
|
||||||
|
'brew install pkg-config imagemagick' +
|
||||||
|
pipe +
|
||||||
|
' && sudo pecl install imagick' +
|
||||||
|
pipe;
|
||||||
|
break;
|
||||||
case /^7\.[0-3]phalcon3$|^7\.[2-4]phalcon4$/.test(version_extension):
|
case /^7\.[0-3]phalcon3$|^7\.[2-4]phalcon4$/.test(version_extension):
|
||||||
install_command =
|
install_command =
|
||||||
'sh ' +
|
'sh ' +
|
||||||
|
Loading…
Reference in New Issue
Block a user