mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-26 05:23:03 +07:00
Edit extensions installation on PHP7.4
This commit is contained in:
parent
013ddc75a3
commit
d2e09be6ce
@ -48,10 +48,6 @@ describe('Extension tests', () => {
|
|||||||
);
|
);
|
||||||
expect(linux).toContain('pecl install pcov');
|
expect(linux).toContain('pecl install pcov');
|
||||||
|
|
||||||
linux = await extensions.addExtension('xdebug, pcov', '7.4', 'linux');
|
|
||||||
expect(linux).toContain('xdebug.sh');
|
|
||||||
expect(linux).toContain('pcov.sh');
|
|
||||||
|
|
||||||
linux = await extensions.addExtension('phalcon3, phalcon4', '7.2', 'linux');
|
linux = await extensions.addExtension('phalcon3, phalcon4', '7.2', 'linux');
|
||||||
expect(linux).toContain('phalcon.sh master 7.2');
|
expect(linux).toContain('phalcon.sh master 7.2');
|
||||||
expect(linux).toContain('phalcon.sh 4.0.x 7.2');
|
expect(linux).toContain('phalcon.sh 4.0.x 7.2');
|
||||||
@ -82,12 +78,6 @@ describe('Extension tests', () => {
|
|||||||
darwin = await extensions.addExtension('xdebug', '5.6', 'darwin');
|
darwin = await extensions.addExtension('xdebug', '5.6', 'darwin');
|
||||||
expect(darwin).toContain('sudo pecl install xdebug-2.5.5');
|
expect(darwin).toContain('sudo pecl install xdebug-2.5.5');
|
||||||
|
|
||||||
darwin = await extensions.addExtension('xdebug', '7.4', 'darwin');
|
|
||||||
expect(darwin).toContain('xdebug_darwin.sh');
|
|
||||||
|
|
||||||
darwin = await extensions.addExtension('pcov', '7.4', 'darwin');
|
|
||||||
expect(darwin).toContain('pcov.sh');
|
|
||||||
|
|
||||||
darwin = await extensions.addExtension('xdebug', '7.2', 'darwin');
|
darwin = await extensions.addExtension('xdebug', '7.2', 'darwin');
|
||||||
expect(darwin).toContain('sudo pecl install xdebug');
|
expect(darwin).toContain('sudo pecl install xdebug');
|
||||||
|
|
||||||
|
@ -69,18 +69,6 @@ function addExtensionDarwin(extension_csv, version) {
|
|||||||
// add script to enable extension is already installed along with php
|
// add script to enable extension is already installed along with php
|
||||||
let install_command = '';
|
let install_command = '';
|
||||||
switch (version + extension) {
|
switch (version + extension) {
|
||||||
case '7.4xdebug':
|
|
||||||
install_command =
|
|
||||||
'sh ' +
|
|
||||||
path.join(__dirname, '../src/scripts/xdebug_darwin.sh') +
|
|
||||||
' >/dev/null 2>&1 && echo "zend_extension=xdebug.so" >> $ini_file';
|
|
||||||
break;
|
|
||||||
case '7.4pcov':
|
|
||||||
install_command =
|
|
||||||
'sh ' +
|
|
||||||
path.join(__dirname, '../src/scripts/pcov.sh') +
|
|
||||||
' >/dev/null 2>&1 && echo "extension=pcov.so" >> $ini_file';
|
|
||||||
break;
|
|
||||||
case '5.6xdebug':
|
case '5.6xdebug':
|
||||||
install_command = 'sudo pecl install xdebug-2.5.5 >/dev/null 2>&1';
|
install_command = 'sudo pecl install xdebug-2.5.5 >/dev/null 2>&1';
|
||||||
break;
|
break;
|
||||||
@ -159,18 +147,6 @@ function addExtensionLinux(extension_csv, version) {
|
|||||||
// add script to enable extension is already installed along with php
|
// add script to enable extension is already installed along with php
|
||||||
let install_command = '';
|
let install_command = '';
|
||||||
switch (version + extension) {
|
switch (version + extension) {
|
||||||
case '7.4xdebug':
|
|
||||||
install_command =
|
|
||||||
'sh ' +
|
|
||||||
path.join(__dirname, '../src/scripts/xdebug.sh') +
|
|
||||||
' >/dev/null 2>&1 && echo "zend_extension=xdebug.so" >> $ini_file';
|
|
||||||
break;
|
|
||||||
case '7.4pcov':
|
|
||||||
install_command =
|
|
||||||
'sh ' +
|
|
||||||
path.join(__dirname, '../src/scripts/pcov.sh') +
|
|
||||||
' >/dev/null 2>&1 && echo "extension=pcov.so" >> $ini_file';
|
|
||||||
break;
|
|
||||||
case '7.2phalcon3':
|
case '7.2phalcon3':
|
||||||
case '7.3phalcon3':
|
case '7.3phalcon3':
|
||||||
install_command =
|
install_command =
|
||||||
|
@ -61,18 +61,6 @@ export async function addExtensionDarwin(
|
|||||||
// add script to enable extension is already installed along with php
|
// add script to enable extension is already installed along with php
|
||||||
let install_command: string = '';
|
let install_command: string = '';
|
||||||
switch (version + extension) {
|
switch (version + extension) {
|
||||||
case '7.4xdebug':
|
|
||||||
install_command =
|
|
||||||
'sh ' +
|
|
||||||
path.join(__dirname, '../src/scripts/xdebug_darwin.sh') +
|
|
||||||
' >/dev/null 2>&1 && echo "zend_extension=xdebug.so" >> $ini_file';
|
|
||||||
break;
|
|
||||||
case '7.4pcov':
|
|
||||||
install_command =
|
|
||||||
'sh ' +
|
|
||||||
path.join(__dirname, '../src/scripts/pcov.sh') +
|
|
||||||
' >/dev/null 2>&1 && echo "extension=pcov.so" >> $ini_file';
|
|
||||||
break;
|
|
||||||
case '5.6xdebug':
|
case '5.6xdebug':
|
||||||
install_command = 'sudo pecl install xdebug-2.5.5 >/dev/null 2>&1';
|
install_command = 'sudo pecl install xdebug-2.5.5 >/dev/null 2>&1';
|
||||||
break;
|
break;
|
||||||
@ -152,18 +140,6 @@ export async function addExtensionLinux(
|
|||||||
|
|
||||||
let install_command: string = '';
|
let install_command: string = '';
|
||||||
switch (version + extension) {
|
switch (version + extension) {
|
||||||
case '7.4xdebug':
|
|
||||||
install_command =
|
|
||||||
'sh ' +
|
|
||||||
path.join(__dirname, '../src/scripts/xdebug.sh') +
|
|
||||||
' >/dev/null 2>&1 && echo "zend_extension=xdebug.so" >> $ini_file';
|
|
||||||
break;
|
|
||||||
case '7.4pcov':
|
|
||||||
install_command =
|
|
||||||
'sh ' +
|
|
||||||
path.join(__dirname, '../src/scripts/pcov.sh') +
|
|
||||||
' >/dev/null 2>&1 && echo "extension=pcov.so" >> $ini_file';
|
|
||||||
break;
|
|
||||||
case '7.2phalcon3':
|
case '7.2phalcon3':
|
||||||
case '7.3phalcon3':
|
case '7.3phalcon3':
|
||||||
install_command =
|
install_command =
|
||||||
|
Loading…
Reference in New Issue
Block a user