Bump minimum Xdebug version

This commit is contained in:
Shivam Mathur 2020-03-28 09:22:27 +05:30
parent a2b261d79a
commit 3376371dd8
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A
3 changed files with 7 additions and 7 deletions

View File

@ -53,7 +53,7 @@ describe('Extension tests', () => {
'7.4', '7.4',
'linux' 'linux'
); );
expect(linux).toContain('update_extension xdebug 2.9.2'); expect(linux).toContain('update_extension xdebug 2.9.3');
expect(linux).toContain('sudo $debconf_fix apt-get install -y php7.4-pcov'); expect(linux).toContain('sudo $debconf_fix apt-get install -y php7.4-pcov');
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'

6
dist/index.js vendored
View File

@ -2788,10 +2788,10 @@ async function addExtensionLinux(extension_csv, version, pipe) {
' ' + ' ' +
version; version;
return; return;
// match 7.0xdebug..7.4xdebug // match 7.1xdebug..7.4xdebug
case /^7\.[0-4]xdebug$/.test(version_extension): case /^7\.[1-4]xdebug$/.test(version_extension):
script += script +=
'\nupdate_extension xdebug 2.9.2' + '\nupdate_extension xdebug 2.9.3' +
pipe + pipe +
'\n' + '\n' +
(await utils.addLog('$tick', 'xdebug', 'Enabled', 'linux')); (await utils.addLog('$tick', 'xdebug', 'Enabled', 'linux'));

View File

@ -268,10 +268,10 @@ export async function addExtensionLinux(
' ' + ' ' +
version; version;
return; return;
// match 7.0xdebug..7.4xdebug // match 7.1xdebug..7.4xdebug
case /^7\.[0-4]xdebug$/.test(version_extension): case /^7\.[1-4]xdebug$/.test(version_extension):
script += script +=
'\nupdate_extension xdebug 2.9.2' + '\nupdate_extension xdebug 2.9.3' +
pipe + pipe +
'\n' + '\n' +
(await utils.addLog('$tick', 'xdebug', 'Enabled', 'linux')); (await utils.addLog('$tick', 'xdebug', 'Enabled', 'linux'));