mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-25 21:13:04 +07:00
Add support for ast and uopz ubuntu packages
This commit is contained in:
parent
d90cd153ee
commit
ed557fd2c3
@ -49,7 +49,7 @@ describe('Extension tests', () => {
|
|||||||
|
|
||||||
it('checking addExtensionOnLinux', async () => {
|
it('checking addExtensionOnLinux', async () => {
|
||||||
let linux: string = await extensions.addExtension(
|
let linux: string = await extensions.addExtension(
|
||||||
'Xdebug, pcov, sqlite, ast-beta, pdo_mysql, pdo-odbc, xdebug-alpha, grpc-1.2.3',
|
'Xdebug, pcov, sqlite, ast, uopz, ast-beta, pdo_mysql, pdo-odbc, xdebug-alpha, grpc-1.2.3',
|
||||||
'7.4',
|
'7.4',
|
||||||
'linux'
|
'linux'
|
||||||
);
|
);
|
||||||
@ -58,6 +58,8 @@ describe('Extension tests', () => {
|
|||||||
expect(linux).toContain(
|
expect(linux).toContain(
|
||||||
'sudo $debconf_fix apt-get install -y php7.4-sqlite3'
|
'sudo $debconf_fix apt-get install -y php7.4-sqlite3'
|
||||||
);
|
);
|
||||||
|
expect(linux).toContain('sudo $debconf_fix apt-get install -y php-ast');
|
||||||
|
expect(linux).toContain('sudo $debconf_fix apt-get install -y php-uopz');
|
||||||
expect(linux).toContain('add_unstable_extension ast beta extension');
|
expect(linux).toContain('add_unstable_extension ast beta extension');
|
||||||
expect(linux).toContain('add_pdo_extension mysql');
|
expect(linux).toContain('add_pdo_extension mysql');
|
||||||
expect(linux).toContain('add_pdo_extension odbc');
|
expect(linux).toContain('add_pdo_extension odbc');
|
||||||
|
4
dist/index.js
vendored
4
dist/index.js
vendored
@ -2801,6 +2801,10 @@ async function addExtensionLinux(extension_csv, version, pipe) {
|
|||||||
extension = extension.replace('pdo_', '').replace('pdo-', '');
|
extension = extension.replace('pdo_', '').replace('pdo-', '');
|
||||||
script += '\nadd_pdo_extension ' + extension;
|
script += '\nadd_pdo_extension ' + extension;
|
||||||
return;
|
return;
|
||||||
|
// match ast and uopz
|
||||||
|
case /^(ast|uopz)$/.test(extension):
|
||||||
|
command = command_prefix + '-' + extension + pipe;
|
||||||
|
break;
|
||||||
// match sqlite
|
// match sqlite
|
||||||
case /^sqlite$/.test(extension):
|
case /^sqlite$/.test(extension):
|
||||||
extension = 'sqlite3';
|
extension = 'sqlite3';
|
||||||
|
@ -281,6 +281,10 @@ export async function addExtensionLinux(
|
|||||||
extension = extension.replace('pdo_', '').replace('pdo-', '');
|
extension = extension.replace('pdo_', '').replace('pdo-', '');
|
||||||
script += '\nadd_pdo_extension ' + extension;
|
script += '\nadd_pdo_extension ' + extension;
|
||||||
return;
|
return;
|
||||||
|
// match ast and uopz
|
||||||
|
case /^(ast|uopz)$/.test(extension):
|
||||||
|
command = command_prefix + '-' + extension + pipe;
|
||||||
|
break;
|
||||||
// match sqlite
|
// match sqlite
|
||||||
case /^sqlite$/.test(extension):
|
case /^sqlite$/.test(extension):
|
||||||
extension = 'sqlite3';
|
extension = 'sqlite3';
|
||||||
|
Loading…
Reference in New Issue
Block a user