mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-26 21:33:06 +07:00
commit
7961bc11b1
4
.github/workflows/workflow.yml
vendored
4
.github/workflows/workflow.yml
vendored
@ -1,5 +1,6 @@
|
|||||||
name: Main workflow
|
name: Main workflow
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
@ -27,7 +28,7 @@ jobs:
|
|||||||
php-versions: ['5.3', '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
|
php-versions: ['5.3', '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
|
||||||
env:
|
env:
|
||||||
extensions: xml, opcache, xdebug, pcov
|
extensions: xml, opcache, xdebug, pcov
|
||||||
key: cache-v2
|
key: cache-v3
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@ -71,6 +72,7 @@ jobs:
|
|||||||
php -r "if(phpversion()>=7.1 && ! extension_loaded('pcov')) {throw new Exception('PCOV not found');}"
|
php -r "if(phpversion()>=7.1 && ! extension_loaded('pcov')) {throw new Exception('PCOV not found');}"
|
||||||
- name: Testing ini values
|
- name: Testing ini values
|
||||||
run: |
|
run: |
|
||||||
|
php -r "if(ini_get('memory_limit')!='-1') {throw new Exception('memory_limit not disabled');}"
|
||||||
php -r "if(ini_get('post_max_size')!='256M') {throw new Exception('post_max_size not added');}"
|
php -r "if(ini_get('post_max_size')!='256M') {throw new Exception('post_max_size not added');}"
|
||||||
php -r "if(ini_get('short_open_tag')!=1) {throw new Exception('short_open_tag not added');}"
|
php -r "if(ini_get('short_open_tag')!=1) {throw new Exception('short_open_tag not added');}"
|
||||||
php -r "if(ini_get('date.timezone')!='Asia/Kolkata') {throw new Exception('date.timezone not added');}"
|
php -r "if(ini_get('date.timezone')!='Asia/Kolkata') {throw new Exception('date.timezone not added');}"
|
15
README.md
15
README.md
@ -132,7 +132,7 @@ with:
|
|||||||
extensions: xdebug-beta
|
extensions: xdebug-beta
|
||||||
```
|
```
|
||||||
|
|
||||||
- Non-default extensions can be removed by prefixing it with a `:`.
|
- Shared extensions can be removed by prefixing them with a `:`.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
@ -143,13 +143,13 @@ with:
|
|||||||
|
|
||||||
- Extensions which cannot be added or removed gracefully leave an error message in the logs, the action is not interrupted.
|
- Extensions which cannot be added or removed gracefully leave an error message in the logs, the action is not interrupted.
|
||||||
|
|
||||||
- These extensions have custom support - `gearman` on ubuntu, `blackfire`, `phalcon3` and `phalcon4` on all supported OS.
|
- These extensions have custom support - `gearman` on `Ubuntu`, `blackfire`, `ioncube`, `oci8`, `pdo_oci`, `phalcon3` and `phalcon4` on all supported OS.
|
||||||
|
|
||||||
## :wrench: Tools Support
|
## :wrench: Tools Support
|
||||||
|
|
||||||
These tools can be setup globally using the `tools` input.
|
These tools can be setup globally using the `tools` input.
|
||||||
|
|
||||||
`blackfire`, `blackfire-player`, `codeception`, `composer`, `composer-prefetcher`, `cs2pr`, `deployer`, `flex`, `infection`, `pecl`, `phan`, `phinx`, `phive`, `phpcbf`, `phpcpd`, `php-config`, `php-cs-fixer`, `phpcs`, `phpize`, `phpmd`, `phpstan`, `phpunit`, `prestissimo`, `psalm`, `symfony`, `vapor-cli`
|
`blackfire`, `blackfire-player`, `codeception`, `composer`, `composer-normalize`, `composer-prefetcher`, `composer-require-checker`, `composer-unused`, `cs2pr`, `deployer`, `flex`, `infection`, `pecl`, `phan`, `phinx`, `phive`, `phpcbf`, `phpcpd`, `php-config`, `php-cs-fixer`, `phpcs`, `phpize`, `phpmd`, `phpstan`, `phpunit`, `prestissimo`, `psalm`, `symfony`, `vapor-cli`
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
@ -178,7 +178,7 @@ with:
|
|||||||
```
|
```
|
||||||
|
|
||||||
**Notes**
|
**Notes**
|
||||||
- Both agent `blackfire-agent` and client `blackfire` are setup when `blackfire` is specified.
|
- Both agent `blackfire-agent` and client `blackfire` are setup when `blackfire` is specified in tools input.
|
||||||
- Tools which cannot be setup gracefully leave an error message in the logs, the action is not interrupted.
|
- Tools which cannot be setup gracefully leave an error message in the logs, the action is not interrupted.
|
||||||
|
|
||||||
## :signal_strength: Coverage Support
|
## :signal_strength: Coverage Support
|
||||||
@ -635,6 +635,7 @@ Examples of using `setup-php` with various PHP Frameworks and Packages.
|
|||||||
|
|
||||||
- The scripts and documentation in this project are released under the [MIT License](LICENSE "License for shivammathur/setup-php").
|
- The scripts and documentation in this project are released under the [MIT License](LICENSE "License for shivammathur/setup-php").
|
||||||
- This project has multiple [dependencies](#bookmark-dependencies "Dependencies for this PHP Action"). Their licenses can be found in their respective repositories.
|
- This project has multiple [dependencies](#bookmark-dependencies "Dependencies for this PHP Action"). Their licenses can be found in their respective repositories.
|
||||||
|
- The logo for `setup-php` is a derivative work of [php.net logo](https://www.php.net/download-logos.php) and is licensed under the [CC BY-SA 4.0 License](https://creativecommons.org/licenses/by-sa/4.0/ "Creative Commons License").
|
||||||
|
|
||||||
## :+1: Contributions
|
## :+1: Contributions
|
||||||
|
|
||||||
@ -647,10 +648,8 @@ Examples of using `setup-php` with various PHP Frameworks and Packages.
|
|||||||
|
|
||||||
If this action helped you.
|
If this action helped you.
|
||||||
|
|
||||||
- Sponsor the project by subscribing on [Patreon](https://www.patreon.com/shivammathur "Shivam Mathur Patreon") or by contributing using [Paypal](https://www.paypal.me/shivammathur "Shivam Mathur PayPal").
|
- Sponsor the project by subscribing on [Patreon](https://www.patreon.com/shivammathur "Shivam Mathur Patreon") or by contributing using [Paypal](https://www.paypal.me/shivammathur "Shivam Mathur PayPal"). This project is also available as part of the [Tidelift Subscription](https://tidelift.com/subscription/pkg/npm-setup-php?utm_source=npm-setup-php&utm_medium=referral&utm_campaign=enterprise&utm_term=repo "Tidelift Subscription for setup-php") to support delivering enterprise-level maintenance.
|
||||||
- Please star the project and share it with the community.
|
- Please star the project and dependencies. If you blog, please share your experience of using this action with the community.
|
||||||
- If you blog, write about your experience of using this action.
|
|
||||||
- If you need any help using this, please contact me using [Codementor](https://www.codementor.io/shivammathur "Shivam Mathur Codementor")
|
|
||||||
|
|
||||||
## :package: Dependencies
|
## :package: Dependencies
|
||||||
|
|
||||||
|
@ -5,11 +5,13 @@ describe('Extension tests', () => {
|
|||||||
expect(await extensions.getXdebugVersion('5.3')).toContain('2.2.7');
|
expect(await extensions.getXdebugVersion('5.3')).toContain('2.2.7');
|
||||||
expect(await extensions.getXdebugVersion('5.4')).toContain('2.4.1');
|
expect(await extensions.getXdebugVersion('5.4')).toContain('2.4.1');
|
||||||
expect(await extensions.getXdebugVersion('5.5')).toContain('2.5.5');
|
expect(await extensions.getXdebugVersion('5.5')).toContain('2.5.5');
|
||||||
expect(await extensions.getXdebugVersion('5.6')).toContain('2.9.6');
|
expect(await extensions.getXdebugVersion('5.6')).toContain('2.5.5');
|
||||||
|
expect(await extensions.getXdebugVersion('7.0')).toContain('2.7.2');
|
||||||
|
expect(await extensions.getXdebugVersion('7.2')).toContain('2.9.6');
|
||||||
});
|
});
|
||||||
it('checking addExtensionOnWindows', async () => {
|
it('checking addExtensionOnWindows', async () => {
|
||||||
let win32: string = await extensions.addExtension(
|
let win32: string = await extensions.addExtension(
|
||||||
'Xdebug, pcov, sqlite, :intl, phalcon4, ast-beta, grpc-1.2.3, inotify-1.2.3alpha2',
|
'Xdebug, pcov, sqlite, :intl, phalcon4, ioncube, oci8, pdo_oci, ast-beta, grpc-1.2.3, inotify-1.2.3alpha2',
|
||||||
'7.4',
|
'7.4',
|
||||||
'win32'
|
'win32'
|
||||||
);
|
);
|
||||||
@ -18,6 +20,9 @@ describe('Extension tests', () => {
|
|||||||
expect(win32).toContain('Add-Extension sqlite3');
|
expect(win32).toContain('Add-Extension sqlite3');
|
||||||
expect(win32).toContain('Remove-Extension intl');
|
expect(win32).toContain('Remove-Extension intl');
|
||||||
expect(win32).toContain('phalcon.ps1 phalcon4');
|
expect(win32).toContain('phalcon.ps1 phalcon4');
|
||||||
|
expect(win32).toContain('ioncube.ps1 7.4');
|
||||||
|
expect(win32).toContain('oci.ps1 oci8 7.4');
|
||||||
|
expect(win32).toContain('oci.ps1 pdo_oci 7.4');
|
||||||
expect(win32).toContain('Add-Extension ast beta');
|
expect(win32).toContain('Add-Extension ast beta');
|
||||||
expect(win32).toContain('Add-Extension grpc stable 1.2.3');
|
expect(win32).toContain('Add-Extension grpc stable 1.2.3');
|
||||||
expect(win32).toContain('Add-Extension inotify alpha 1.2.3');
|
expect(win32).toContain('Add-Extension inotify alpha 1.2.3');
|
||||||
@ -105,6 +110,13 @@ describe('Extension tests', () => {
|
|||||||
expect(linux).toContain('phalcon.sh phalcon3 7.3');
|
expect(linux).toContain('phalcon.sh phalcon3 7.3');
|
||||||
expect(linux).toContain('phalcon.sh phalcon4 7.3');
|
expect(linux).toContain('phalcon.sh phalcon4 7.3');
|
||||||
|
|
||||||
|
linux = await extensions.addExtension('ioncube', '7.3', 'linux');
|
||||||
|
expect(linux).toContain('ioncube.sh 7.3');
|
||||||
|
|
||||||
|
linux = await extensions.addExtension('oci8, pdo_oci', '7.3', 'linux');
|
||||||
|
expect(linux).toContain('oci.sh oci8 7.3');
|
||||||
|
expect(linux).toContain('oci.sh pdo_oci 7.3');
|
||||||
|
|
||||||
linux = await extensions.addExtension('blackfire', '7.3', 'linux');
|
linux = await extensions.addExtension('blackfire', '7.3', 'linux');
|
||||||
expect(linux).toContain('blackfire.sh 7.3 blackfire');
|
expect(linux).toContain('blackfire.sh 7.3 blackfire');
|
||||||
|
|
||||||
@ -114,7 +126,7 @@ describe('Extension tests', () => {
|
|||||||
|
|
||||||
it('checking addExtensionOnDarwin', async () => {
|
it('checking addExtensionOnDarwin', async () => {
|
||||||
let darwin: string = await extensions.addExtension(
|
let darwin: string = await extensions.addExtension(
|
||||||
'Xdebug, pcov, grpc, protobuf, swoole, sqlite, :intl, ast-beta, grpc-1.2.3',
|
'Xdebug, pcov, grpc, protobuf, swoole, sqlite, oci8, pdo_oci, :intl, ast-beta, grpc-1.2.3',
|
||||||
'7.2',
|
'7.2',
|
||||||
'darwin'
|
'darwin'
|
||||||
);
|
);
|
||||||
@ -134,6 +146,13 @@ describe('Extension tests', () => {
|
|||||||
darwin = await extensions.addExtension('phalcon4', '7.3', 'darwin');
|
darwin = await extensions.addExtension('phalcon4', '7.3', 'darwin');
|
||||||
expect(darwin).toContain('phalcon_darwin.sh phalcon4 7.3');
|
expect(darwin).toContain('phalcon_darwin.sh phalcon4 7.3');
|
||||||
|
|
||||||
|
darwin = await extensions.addExtension('ioncube', '7.3', 'darwin');
|
||||||
|
expect(darwin).toContain('ioncube.sh 7.3');
|
||||||
|
|
||||||
|
darwin = await extensions.addExtension('oci8, pdo_oci', '7.3', 'darwin');
|
||||||
|
expect(darwin).toContain('oci.sh oci8 7.3');
|
||||||
|
expect(darwin).toContain('oci.sh pdo_oci 7.3');
|
||||||
|
|
||||||
darwin = await extensions.addExtension('pcov', '5.6', 'darwin');
|
darwin = await extensions.addExtension('pcov', '5.6', 'darwin');
|
||||||
expect(darwin).toContain('sudo pecl install -f pcov');
|
expect(darwin).toContain('sudo pecl install -f pcov');
|
||||||
|
|
||||||
|
@ -26,12 +26,12 @@ jest.mock('../src/install', () => ({
|
|||||||
if (extension_csv) {
|
if (extension_csv) {
|
||||||
script += 'install extensions';
|
script += 'install extensions';
|
||||||
}
|
}
|
||||||
if (ini_values_csv) {
|
|
||||||
script += 'edit php.ini';
|
|
||||||
}
|
|
||||||
if (coverage_driver) {
|
if (coverage_driver) {
|
||||||
script += 'set coverage driver';
|
script += 'set coverage driver';
|
||||||
}
|
}
|
||||||
|
if (ini_values_csv) {
|
||||||
|
script += 'edit php.ini';
|
||||||
|
}
|
||||||
|
|
||||||
return script;
|
return script;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,21 @@
|
|||||||
|
import * as httpm from '@actions/http-client';
|
||||||
import * as tools from '../src/tools';
|
import * as tools from '../src/tools';
|
||||||
|
|
||||||
|
httpm.HttpClient.prototype.get = jest.fn().mockImplementation(() => {
|
||||||
|
return {
|
||||||
|
message: null,
|
||||||
|
readBody: jest.fn().mockImplementation(() => {
|
||||||
|
return JSON.stringify({
|
||||||
|
stable: [{path: '/composer-stable.phar'}],
|
||||||
|
preview: [{path: '/composer-preview.phar'}],
|
||||||
|
snapshot: [{path: '/composer.phar'}],
|
||||||
|
'1': [{path: '/composer-1.phar'}],
|
||||||
|
'2': [{path: '/composer-2.phar'}]
|
||||||
|
});
|
||||||
|
})
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
describe('Tools tests', () => {
|
describe('Tools tests', () => {
|
||||||
it('checking getCommand', async () => {
|
it('checking getCommand', async () => {
|
||||||
expect(await tools.getCommand('linux', 'tool')).toBe('add_tool ');
|
expect(await tools.getCommand('linux', 'tool')).toBe('add_tool ');
|
||||||
@ -239,20 +255,24 @@ describe('Tools tests', () => {
|
|||||||
).toStrictEqual(['composer:2', 'a', 'b', 'c']);
|
).toStrictEqual(['composer:2', 'a', 'b', 'c']);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('checking updateComposer', async () => {
|
it('checking getComposerUrl', async () => {
|
||||||
expect(await tools.updateComposer('latest', 'linux')).toContain('');
|
expect(await tools.getComposerUrl('latest')).toContain(
|
||||||
expect(await tools.updateComposer('stable', 'win32')).toContain('');
|
'https://getcomposer.org/composer-stable.phar'
|
||||||
expect(await tools.updateComposer('snapshot', 'darwin')).toContain(
|
|
||||||
'\ncomposer self-update --snapshot'
|
|
||||||
);
|
);
|
||||||
expect(await tools.updateComposer('preview', 'linux')).toContain(
|
expect(await tools.getComposerUrl('stable')).toContain(
|
||||||
'\ncomposer self-update --preview'
|
'https://getcomposer.org/composer-stable.phar'
|
||||||
);
|
);
|
||||||
expect(await tools.updateComposer('1', 'win32')).toContain(
|
expect(await tools.getComposerUrl('snapshot')).toContain(
|
||||||
'\ncomposer self-update --1'
|
'https://getcomposer.org/composer.phar'
|
||||||
);
|
);
|
||||||
expect(await tools.updateComposer('2', 'darwin')).toContain(
|
expect(await tools.getComposerUrl('preview')).toContain(
|
||||||
'\ncomposer self-update --2'
|
'https://getcomposer.org/composer-preview.phar'
|
||||||
|
);
|
||||||
|
expect(await tools.getComposerUrl('1')).toContain(
|
||||||
|
'https://getcomposer.org/composer-1.phar'
|
||||||
|
);
|
||||||
|
expect(await tools.getComposerUrl('2')).toContain(
|
||||||
|
'https://getcomposer.org/composer-2.phar'
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -426,11 +446,39 @@ describe('Tools tests', () => {
|
|||||||
expect(script).toContain('add_log "$tick" "phpize" "Added"');
|
expect(script).toContain('add_log "$tick" "phpize" "Added"');
|
||||||
});
|
});
|
||||||
it('checking addTools on darwin', async () => {
|
it('checking addTools on darwin', async () => {
|
||||||
|
const listOfTools = [
|
||||||
|
'blackfire',
|
||||||
|
'blackfire-player',
|
||||||
|
'composer-normalize',
|
||||||
|
'composer-prefetcher:1.2.3',
|
||||||
|
'composer-require-checker',
|
||||||
|
'composer-unused',
|
||||||
|
'cs2pr:1.2.3',
|
||||||
|
'flex',
|
||||||
|
'infection',
|
||||||
|
'phan',
|
||||||
|
'phan:2.7.2',
|
||||||
|
'phinx',
|
||||||
|
'phive:1.2.3',
|
||||||
|
'php-config',
|
||||||
|
'phpcbf',
|
||||||
|
'phpcpd',
|
||||||
|
'phpcs',
|
||||||
|
'phpize',
|
||||||
|
'phpmd',
|
||||||
|
'psalm',
|
||||||
|
'symfony',
|
||||||
|
'symfony:1.2.3',
|
||||||
|
'vapor-cli',
|
||||||
|
'wp-cli'
|
||||||
|
];
|
||||||
|
|
||||||
const script: string = await tools.addTools(
|
const script: string = await tools.addTools(
|
||||||
'blackfire, blackfire-player, flex, infection, phan, phpcs, phpcbf, phpcpd, phpmd, psalm, phinx, vapor-cli, phan:2.7.2, phive:1.2.3, cs2pr:1.2.3, composer-prefetcher:1.2.3, phpize, php-config, symfony, symfony:1.2.3, wp-cli',
|
listOfTools.join(', '),
|
||||||
'7.4',
|
'7.4',
|
||||||
'darwin'
|
'darwin'
|
||||||
);
|
);
|
||||||
|
|
||||||
expect(script).toContain('add_blackfire');
|
expect(script).toContain('add_blackfire');
|
||||||
expect(script).toContain(
|
expect(script).toContain(
|
||||||
'add_tool https://get.blackfire.io/blackfire-player.phar blackfire-player'
|
'add_tool https://get.blackfire.io/blackfire-player.phar blackfire-player'
|
||||||
@ -438,6 +486,15 @@ describe('Tools tests', () => {
|
|||||||
expect(script).toContain(
|
expect(script).toContain(
|
||||||
'add_tool https://getcomposer.org/composer-stable.phar composer'
|
'add_tool https://getcomposer.org/composer-stable.phar composer'
|
||||||
);
|
);
|
||||||
|
expect(script).toContain(
|
||||||
|
'add_tool https://github.com/ergebnis/composer-normalize/releases/latest/download/composer-normalize.phar composer-normalize'
|
||||||
|
);
|
||||||
|
expect(script).toContain(
|
||||||
|
'add_tool https://github.com/maglnet/ComposerRequireChecker/releases/latest/download/composer-require-checker.phar composer-require-checker'
|
||||||
|
);
|
||||||
|
expect(script).toContain(
|
||||||
|
'add_tool https://github.com/composer-unused/composer-unused/releases/latest/download/composer-unused.phar composer-unused'
|
||||||
|
);
|
||||||
expect(script).toContain(
|
expect(script).toContain(
|
||||||
'add_tool https://github.com/staabm/annotate-pull-request-from-checkstyle/releases/download/1.2.3/cs2pr cs2pr'
|
'add_tool https://github.com/staabm/annotate-pull-request-from-checkstyle/releases/download/1.2.3/cs2pr cs2pr'
|
||||||
);
|
);
|
||||||
@ -487,11 +544,30 @@ describe('Tools tests', () => {
|
|||||||
expect(script).toContain('add_log "$tick" "php-config" "Added"');
|
expect(script).toContain('add_log "$tick" "php-config" "Added"');
|
||||||
});
|
});
|
||||||
it('checking addTools on windows', async () => {
|
it('checking addTools on windows', async () => {
|
||||||
|
const listOfTools = [
|
||||||
|
'blackfire',
|
||||||
|
'blackfire-player:1.8.1',
|
||||||
|
'codeception',
|
||||||
|
'cs2pr',
|
||||||
|
'deployer',
|
||||||
|
'does_not_exist',
|
||||||
|
'flex',
|
||||||
|
'phinx',
|
||||||
|
'phive:0.13.2',
|
||||||
|
'php-config',
|
||||||
|
'phpize',
|
||||||
|
'phpmd',
|
||||||
|
'prestissimo',
|
||||||
|
'symfony',
|
||||||
|
'wp-cli'
|
||||||
|
];
|
||||||
|
|
||||||
const script: string = await tools.addTools(
|
const script: string = await tools.addTools(
|
||||||
'blackfire, blackfire-player:1.8.1, codeception, cs2pr, deployer, flex, prestissimo, phpmd, phinx, phive:0.13.2, php-config, phpize, symfony, wp-cli, does_not_exit',
|
listOfTools.join(', '),
|
||||||
'7.4',
|
'7.4',
|
||||||
'win32'
|
'win32'
|
||||||
);
|
);
|
||||||
|
|
||||||
expect(script).toContain('Add-Blackfire');
|
expect(script).toContain('Add-Blackfire');
|
||||||
expect(script).toContain(
|
expect(script).toContain(
|
||||||
'Add-Tool https://get.blackfire.io/blackfire-player-v1.8.1.phar blackfire-player'
|
'Add-Tool https://get.blackfire.io/blackfire-player-v1.8.1.phar blackfire-player'
|
||||||
@ -522,15 +598,21 @@ describe('Tools tests', () => {
|
|||||||
);
|
);
|
||||||
expect(script).toContain('phpize is not a windows tool');
|
expect(script).toContain('phpize is not a windows tool');
|
||||||
expect(script).toContain('php-config is not a windows tool');
|
expect(script).toContain('php-config is not a windows tool');
|
||||||
expect(script).toContain('Tool does_not_exit is not supported');
|
expect(script).toContain('Tool does_not_exist is not supported');
|
||||||
expect(script).toContain('Tool does_not_exit is not supported');
|
|
||||||
});
|
});
|
||||||
it('checking addTools with composer tool using user/tool as input', async () => {
|
it('checking addTools with composer tool using user/tool as input', async () => {
|
||||||
|
const listOfTools = [
|
||||||
|
'hirak/prestissimo',
|
||||||
|
'narrowspark/automatic-composer-prefetcher',
|
||||||
|
'robmorgan/phinx'
|
||||||
|
];
|
||||||
|
|
||||||
const script: string = await tools.addTools(
|
const script: string = await tools.addTools(
|
||||||
'hirak/prestissimo, narrowspark/automatic-composer-prefetcher, robmorgan/phinx',
|
listOfTools.join(', '),
|
||||||
'7.4',
|
'7.4',
|
||||||
'win32'
|
'win32'
|
||||||
);
|
);
|
||||||
|
|
||||||
expect(script).toContain(
|
expect(script).toContain(
|
||||||
'Add-Tool https://getcomposer.org/composer-stable.phar composer'
|
'Add-Tool https://getcomposer.org/composer-stable.phar composer'
|
||||||
);
|
);
|
||||||
@ -541,23 +623,29 @@ describe('Tools tests', () => {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
it('checking composer setup', async () => {
|
it('checking composer setup', async () => {
|
||||||
|
const listOfTools = ['composer', 'composer:v1'];
|
||||||
|
|
||||||
let script: string = await tools.addTools(
|
let script: string = await tools.addTools(
|
||||||
'composer, composer:v1',
|
listOfTools.join(', '),
|
||||||
'7.4',
|
'7.4',
|
||||||
'linux'
|
'linux'
|
||||||
);
|
);
|
||||||
|
|
||||||
expect(script).toContain(
|
expect(script).toContain(
|
||||||
'add_tool https://getcomposer.org/composer-stable.phar composer'
|
'add_tool https://getcomposer.org/composer-1.phar composer'
|
||||||
);
|
);
|
||||||
expect(script).toContain('composer self-update --1');
|
|
||||||
|
|
||||||
script = await tools.addTools('composer:preview', '7.4', 'linux');
|
script = await tools.addTools('composer:preview', '7.4', 'linux');
|
||||||
expect(script).toContain('composer self-update --preview');
|
expect(script).toContain(
|
||||||
|
'add_tool https://getcomposer.org/composer-preview.phar composer'
|
||||||
|
);
|
||||||
script = await tools.addTools(
|
script = await tools.addTools(
|
||||||
'composer:v1, composer:preview, composer:snapshot',
|
'composer:v1, composer:preview, composer:snapshot',
|
||||||
'7.4',
|
'7.4',
|
||||||
'linux'
|
'linux'
|
||||||
);
|
);
|
||||||
expect(script).toContain('composer self-update --snapshot');
|
expect(script).toContain(
|
||||||
|
'add_tool https://getcomposer.org/composer.phar composer'
|
||||||
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
1146
dist/index.js
vendored
1146
dist/index.js
vendored
File diff suppressed because it is too large
Load Diff
292
package-lock.json
generated
292
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "setup-php",
|
"name": "setup-php",
|
||||||
"version": "2.3.2",
|
"version": "2.4.0",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -17,6 +17,14 @@
|
|||||||
"@actions/io": "^1.0.1"
|
"@actions/io": "^1.0.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"@actions/http-client": {
|
||||||
|
"version": "1.0.8",
|
||||||
|
"resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-1.0.8.tgz",
|
||||||
|
"integrity": "sha512-G4JjJ6f9Hb3Zvejj+ewLLKLf99ZC+9v+yCxoYf9vSyH+WkzPLB2LuUtRMGNkooMqdugGBFStIKXOuvH1W+EctA==",
|
||||||
|
"requires": {
|
||||||
|
"tunnel": "0.0.6"
|
||||||
|
}
|
||||||
|
},
|
||||||
"@actions/io": {
|
"@actions/io": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/@actions/io/-/io-1.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/@actions/io/-/io-1.0.2.tgz",
|
||||||
@ -32,24 +40,24 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/core": {
|
"@babel/core": {
|
||||||
"version": "7.10.4",
|
"version": "7.10.5",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.10.4.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.10.5.tgz",
|
||||||
"integrity": "sha512-3A0tS0HWpy4XujGc7QtOIHTeNwUgWaZc/WuS5YQrfhU67jnVmsD6OGPc1AKHH0LJHQICGncy3+YUjIhVlfDdcA==",
|
"integrity": "sha512-O34LQooYVDXPl7QWCdW9p4NR+QlzOr7xShPPJz8GsuCU3/8ua/wqTr7gmnxXv+WBESiGU/G5s16i6tUvHkNb+w==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/code-frame": "^7.10.4",
|
"@babel/code-frame": "^7.10.4",
|
||||||
"@babel/generator": "^7.10.4",
|
"@babel/generator": "^7.10.5",
|
||||||
"@babel/helper-module-transforms": "^7.10.4",
|
"@babel/helper-module-transforms": "^7.10.5",
|
||||||
"@babel/helpers": "^7.10.4",
|
"@babel/helpers": "^7.10.4",
|
||||||
"@babel/parser": "^7.10.4",
|
"@babel/parser": "^7.10.5",
|
||||||
"@babel/template": "^7.10.4",
|
"@babel/template": "^7.10.4",
|
||||||
"@babel/traverse": "^7.10.4",
|
"@babel/traverse": "^7.10.5",
|
||||||
"@babel/types": "^7.10.4",
|
"@babel/types": "^7.10.5",
|
||||||
"convert-source-map": "^1.7.0",
|
"convert-source-map": "^1.7.0",
|
||||||
"debug": "^4.1.0",
|
"debug": "^4.1.0",
|
||||||
"gensync": "^1.0.0-beta.1",
|
"gensync": "^1.0.0-beta.1",
|
||||||
"json5": "^2.1.2",
|
"json5": "^2.1.2",
|
||||||
"lodash": "^4.17.13",
|
"lodash": "^4.17.19",
|
||||||
"resolve": "^1.3.2",
|
"resolve": "^1.3.2",
|
||||||
"semver": "^5.4.1",
|
"semver": "^5.4.1",
|
||||||
"source-map": "^0.5.0"
|
"source-map": "^0.5.0"
|
||||||
@ -79,14 +87,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/generator": {
|
"@babel/generator": {
|
||||||
"version": "7.10.4",
|
"version": "7.10.5",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.10.4.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.10.5.tgz",
|
||||||
"integrity": "sha512-toLIHUIAgcQygFZRAQcsLQV3CBuX6yOIru1kJk/qqqvcRmZrYe6WavZTSG+bB8MxhnL9YPf+pKQfuiP161q7ng==",
|
"integrity": "sha512-3vXxr3FEW7E7lJZiWQ3bM4+v/Vyr9C+hpolQ8BGFr9Y8Ri2tFLWTixmwKBafDujO1WVah4fhZBeU1bieKdghig==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/types": "^7.10.4",
|
"@babel/types": "^7.10.5",
|
||||||
"jsesc": "^2.5.1",
|
"jsesc": "^2.5.1",
|
||||||
"lodash": "^4.17.13",
|
|
||||||
"source-map": "^0.5.0"
|
"source-map": "^0.5.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -119,12 +126,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/helper-member-expression-to-functions": {
|
"@babel/helper-member-expression-to-functions": {
|
||||||
"version": "7.10.4",
|
"version": "7.10.5",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.10.4.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.10.5.tgz",
|
||||||
"integrity": "sha512-m5j85pK/KZhuSdM/8cHUABQTAslV47OjfIB9Cc7P+PvlAoBzdb79BGNfw8RhT5Mq3p+xGd0ZfAKixbrUZx0C7A==",
|
"integrity": "sha512-HiqJpYD5+WopCXIAbQDG0zye5XYVvcO9w/DHp5GsaGkRUaamLj2bEtu6i8rnGGprAhHM3qidCMgp71HF4endhA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/types": "^7.10.4"
|
"@babel/types": "^7.10.5"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/helper-module-imports": {
|
"@babel/helper-module-imports": {
|
||||||
@ -137,9 +144,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/helper-module-transforms": {
|
"@babel/helper-module-transforms": {
|
||||||
"version": "7.10.4",
|
"version": "7.10.5",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.10.4.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.10.5.tgz",
|
||||||
"integrity": "sha512-Er2FQX0oa3nV7eM1o0tNCTx7izmQtwAQsIiaLRWtavAAEcskb0XJ5OjJbVrYXWOTr8om921Scabn4/tzlx7j1Q==",
|
"integrity": "sha512-4P+CWMJ6/j1W915ITJaUkadLObmCRRSC234uctJfn/vHrsLNxsR8dwlcXv9ZhJWzl77awf+mWXSZEKt5t0OnlA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/helper-module-imports": "^7.10.4",
|
"@babel/helper-module-imports": "^7.10.4",
|
||||||
@ -147,8 +154,8 @@
|
|||||||
"@babel/helper-simple-access": "^7.10.4",
|
"@babel/helper-simple-access": "^7.10.4",
|
||||||
"@babel/helper-split-export-declaration": "^7.10.4",
|
"@babel/helper-split-export-declaration": "^7.10.4",
|
||||||
"@babel/template": "^7.10.4",
|
"@babel/template": "^7.10.4",
|
||||||
"@babel/types": "^7.10.4",
|
"@babel/types": "^7.10.5",
|
||||||
"lodash": "^4.17.13"
|
"lodash": "^4.17.19"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/helper-optimise-call-expression": {
|
"@babel/helper-optimise-call-expression": {
|
||||||
@ -278,9 +285,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/parser": {
|
"@babel/parser": {
|
||||||
"version": "7.10.4",
|
"version": "7.10.5",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.10.4.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.10.5.tgz",
|
||||||
"integrity": "sha512-8jHII4hf+YVDsskTF6WuMB3X4Eh+PsUkC2ljq22so5rHvH+T8BzyL94VOdyFLNR8tBSVXOTbNHOKpR4TfRxVtA==",
|
"integrity": "sha512-wfryxy4bE1UivvQKSQDU4/X6dr+i8bctjUjj8Zyt3DQy7NtPizJXT8M52nqpNKL+nq2PW8lxk4ZqLj0fD4B4hQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@babel/plugin-syntax-async-generators": {
|
"@babel/plugin-syntax-async-generators": {
|
||||||
@ -382,16 +389,6 @@
|
|||||||
"@babel/helper-plugin-utils": "^7.8.0"
|
"@babel/helper-plugin-utils": "^7.8.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/runtime-corejs3": {
|
|
||||||
"version": "7.10.4",
|
|
||||||
"resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.10.4.tgz",
|
|
||||||
"integrity": "sha512-BFlgP2SoLO9HJX9WBwN67gHWMBhDX/eDz64Jajd6mR/UAUzqrNMm99d4qHnVaKscAElZoFiPv+JpR/Siud5lXw==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"core-js-pure": "^3.0.0",
|
|
||||||
"regenerator-runtime": "^0.13.4"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@babel/template": {
|
"@babel/template": {
|
||||||
"version": "7.10.4",
|
"version": "7.10.4",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/template/-/template-7.10.4.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/template/-/template-7.10.4.tgz",
|
||||||
@ -404,20 +401,20 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/traverse": {
|
"@babel/traverse": {
|
||||||
"version": "7.10.4",
|
"version": "7.10.5",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.10.4.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.10.5.tgz",
|
||||||
"integrity": "sha512-aSy7p5THgSYm4YyxNGz6jZpXf+Ok40QF3aA2LyIONkDHpAcJzDUqlCKXv6peqYUs2gmic849C/t2HKw2a2K20Q==",
|
"integrity": "sha512-yc/fyv2gUjPqzTz0WHeRJH2pv7jA9kA7mBX2tXl/x5iOE81uaVPuGPtaYk7wmkx4b67mQ7NqI8rmT2pF47KYKQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/code-frame": "^7.10.4",
|
"@babel/code-frame": "^7.10.4",
|
||||||
"@babel/generator": "^7.10.4",
|
"@babel/generator": "^7.10.5",
|
||||||
"@babel/helper-function-name": "^7.10.4",
|
"@babel/helper-function-name": "^7.10.4",
|
||||||
"@babel/helper-split-export-declaration": "^7.10.4",
|
"@babel/helper-split-export-declaration": "^7.10.4",
|
||||||
"@babel/parser": "^7.10.4",
|
"@babel/parser": "^7.10.5",
|
||||||
"@babel/types": "^7.10.4",
|
"@babel/types": "^7.10.5",
|
||||||
"debug": "^4.1.0",
|
"debug": "^4.1.0",
|
||||||
"globals": "^11.1.0",
|
"globals": "^11.1.0",
|
||||||
"lodash": "^4.17.13"
|
"lodash": "^4.17.19"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"globals": {
|
"globals": {
|
||||||
@ -429,13 +426,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@babel/types": {
|
"@babel/types": {
|
||||||
"version": "7.10.4",
|
"version": "7.10.5",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.10.4.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.10.5.tgz",
|
||||||
"integrity": "sha512-UTCFOxC3FsFHb7lkRMVvgLzaRVamXuAs2Tz4wajva4WxtVY82eZeaUBtC2Zt95FU9TiznuC0Zk35tsim8jeVpg==",
|
"integrity": "sha512-ixV66KWfCI6GKoA/2H9v6bQdbfXEwwpOdQ8cRvb4F+eyvhlaHxWFMQB4+3d9QFJXZsiiiqVrewNV0DFEQpyT4Q==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/helper-validator-identifier": "^7.10.4",
|
"@babel/helper-validator-identifier": "^7.10.4",
|
||||||
"lodash": "^4.17.13",
|
"lodash": "^4.17.19",
|
||||||
"to-fast-properties": "^2.0.0"
|
"to-fast-properties": "^2.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -920,9 +917,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@sinonjs/commons": {
|
"@sinonjs/commons": {
|
||||||
"version": "1.8.0",
|
"version": "1.8.1",
|
||||||
"resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.0.tgz",
|
"resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.1.tgz",
|
||||||
"integrity": "sha512-wEj54PfsZ5jGSwMX68G8ZXFawcSglQSXqCftWX3ec8MDUzQdHgcKvw97awHbY0efQEL5iKUOAmmVtoYgmrSG4Q==",
|
"integrity": "sha512-892K+kWUUi3cl+LlqEWIDrhvLgdL79tECi8JZUyq6IviKy/DNhuzCRlbHUjxK89f4ypPMMaFnFuR9Ie6DoIMsw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"type-detect": "4.0.8"
|
"type-detect": "4.0.8"
|
||||||
@ -970,9 +967,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@types/babel__traverse": {
|
"@types/babel__traverse": {
|
||||||
"version": "7.0.12",
|
"version": "7.0.13",
|
||||||
"resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.0.12.tgz",
|
"resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.0.13.tgz",
|
||||||
"integrity": "sha512-t4CoEokHTfcyfb4hUaF9oOHu9RmmNWnm1CP0YmMqOOfClKascOmvlEM736vlqeScuGvBDsHkf8R2INd4DWreQA==",
|
"integrity": "sha512-i+zS7t6/s9cdQvbqKDARrcbrPvtJGlbYsMkazo03nTAK3RX9FNrLllXys22uiTGJapPOTZTQ35nHh4ISph4SLQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/types": "^7.3.0"
|
"@babel/types": "^7.3.0"
|
||||||
@ -1025,9 +1022,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@types/jest": {
|
"@types/jest": {
|
||||||
"version": "26.0.3",
|
"version": "26.0.5",
|
||||||
"resolved": "https://registry.npmjs.org/@types/jest/-/jest-26.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/@types/jest/-/jest-26.0.5.tgz",
|
||||||
"integrity": "sha512-v89ga1clpVL/Y1+YI0eIu1VMW+KU7Xl8PhylVtDKVWaSUHBHYPLXMQGBdrpHewaKoTvlXkksbYqPgz8b4cmRZg==",
|
"integrity": "sha512-heU+7w8snfwfjtcj2H458aTx3m5unIToOJhx75ebHilBiiQ39OIdA18WkG4LP08YKeAoWAGvWg8s+22w/PeJ6w==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"jest-diff": "^25.2.1",
|
"jest-diff": "^25.2.1",
|
||||||
@ -1047,9 +1044,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@types/node": {
|
"@types/node": {
|
||||||
"version": "14.0.14",
|
"version": "14.0.23",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.0.14.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.0.23.tgz",
|
||||||
"integrity": "sha512-syUgf67ZQpaJj01/tRTknkMNoBBLWJOBODF0Zm4NrXmiSuxjymFrxnTu1QVYRubhVkRcZLYZG8STTwJRdVm/WQ==",
|
"integrity": "sha512-Z4U8yDAl5TFkmYsZdFPdjeMa57NOvnaf1tljHzhouaPEp7LCj2JKkejpI1ODviIAQuW4CcQmxkQ77rnLsOOoKw==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@types/normalize-package-data": {
|
"@types/normalize-package-data": {
|
||||||
@ -1065,9 +1062,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@types/prettier": {
|
"@types/prettier": {
|
||||||
"version": "2.0.1",
|
"version": "2.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.0.2.tgz",
|
||||||
"integrity": "sha512-boy4xPNEtiw6N3abRhBi/e7hNvy3Tt8E9ZRAQrwAGzoCGZS/1wjo9KY7JHhnfnEsG5wSjDbymCozUM9a3ea7OQ==",
|
"integrity": "sha512-IkVfat549ggtkZUthUzEX49562eGikhSYeVGX97SkMFn+sTZrgRewXjQ4tPKFPCykZHkX1Zfd9OoELGqKU2jJA==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@types/stack-utils": {
|
"@types/stack-utils": {
|
||||||
@ -1092,12 +1089,12 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@typescript-eslint/eslint-plugin": {
|
"@typescript-eslint/eslint-plugin": {
|
||||||
"version": "3.6.0",
|
"version": "3.6.1",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-3.6.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-3.6.1.tgz",
|
||||||
"integrity": "sha512-ubHlHVt1lsPQB/CZdEov9XuOFhNG9YRC//kuiS1cMQI6Bs1SsqKrEmZnpgRwthGR09/kEDtr9MywlqXyyYd8GA==",
|
"integrity": "sha512-06lfjo76naNeOMDl+mWG9Fh/a0UHKLGhin+mGaIw72FUMbMGBkdi/FEJmgEDzh4eE73KIYzHWvOCYJ0ak7nrJQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@typescript-eslint/experimental-utils": "3.6.0",
|
"@typescript-eslint/experimental-utils": "3.6.1",
|
||||||
"debug": "^4.1.1",
|
"debug": "^4.1.1",
|
||||||
"functional-red-black-tree": "^1.0.1",
|
"functional-red-black-tree": "^1.0.1",
|
||||||
"regexpp": "^3.0.0",
|
"regexpp": "^3.0.0",
|
||||||
@ -1106,45 +1103,45 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@typescript-eslint/experimental-utils": {
|
"@typescript-eslint/experimental-utils": {
|
||||||
"version": "3.6.0",
|
"version": "3.6.1",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-3.6.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-3.6.1.tgz",
|
||||||
"integrity": "sha512-4Vdf2hvYMUnTdkCNZu+yYlFtL2v+N2R7JOynIOkFbPjf9o9wQvRwRkzUdWlFd2YiiUwJLbuuLnl5civNg5ykOQ==",
|
"integrity": "sha512-oS+hihzQE5M84ewXrTlVx7eTgc52eu+sVmG7ayLfOhyZmJ8Unvf3osyFQNADHP26yoThFfbxcibbO0d2FjnYhg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@types/json-schema": "^7.0.3",
|
"@types/json-schema": "^7.0.3",
|
||||||
"@typescript-eslint/types": "3.6.0",
|
"@typescript-eslint/types": "3.6.1",
|
||||||
"@typescript-eslint/typescript-estree": "3.6.0",
|
"@typescript-eslint/typescript-estree": "3.6.1",
|
||||||
"eslint-scope": "^5.0.0",
|
"eslint-scope": "^5.0.0",
|
||||||
"eslint-utils": "^2.0.0"
|
"eslint-utils": "^2.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@typescript-eslint/parser": {
|
"@typescript-eslint/parser": {
|
||||||
"version": "3.6.0",
|
"version": "3.6.1",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-3.6.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-3.6.1.tgz",
|
||||||
"integrity": "sha512-taghDxuLhbDAD1U5Fk8vF+MnR0yiFE9Z3v2/bYScFb0N1I9SK8eKHkdJl1DAD48OGFDMFTeOTX0z7g0W6SYUXw==",
|
"integrity": "sha512-SLihQU8RMe77YJ/jGTqOt0lMq7k3hlPVfp7v/cxMnXA9T0bQYoMDfTsNgHXpwSJM1Iq2aAJ8WqekxUwGv5F67Q==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@types/eslint-visitor-keys": "^1.0.0",
|
"@types/eslint-visitor-keys": "^1.0.0",
|
||||||
"@typescript-eslint/experimental-utils": "3.6.0",
|
"@typescript-eslint/experimental-utils": "3.6.1",
|
||||||
"@typescript-eslint/types": "3.6.0",
|
"@typescript-eslint/types": "3.6.1",
|
||||||
"@typescript-eslint/typescript-estree": "3.6.0",
|
"@typescript-eslint/typescript-estree": "3.6.1",
|
||||||
"eslint-visitor-keys": "^1.1.0"
|
"eslint-visitor-keys": "^1.1.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@typescript-eslint/types": {
|
"@typescript-eslint/types": {
|
||||||
"version": "3.6.0",
|
"version": "3.6.1",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-3.6.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-3.6.1.tgz",
|
||||||
"integrity": "sha512-JwVj74ohUSt0ZPG+LZ7hb95fW8DFOqBuR6gE7qzq55KDI3BepqsCtHfBIoa0+Xi1AI7fq5nCu2VQL8z4eYftqg==",
|
"integrity": "sha512-NPxd5yXG63gx57WDTW1rp0cF3XlNuuFFB5G+Kc48zZ+51ZnQn9yjDEsjTPQ+aWM+V+Z0I4kuTFKjKvgcT1F7xQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@typescript-eslint/typescript-estree": {
|
"@typescript-eslint/typescript-estree": {
|
||||||
"version": "3.6.0",
|
"version": "3.6.1",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-3.6.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-3.6.1.tgz",
|
||||||
"integrity": "sha512-G57NDSABHjvob7zVV09ehWyD1K6/YUKjz5+AufObFyjNO4DVmKejj47MHjVHHlZZKgmpJD2yyH9lfCXHrPITFg==",
|
"integrity": "sha512-G4XRe/ZbCZkL1fy09DPN3U0mR6SayIv1zSeBNquRFRk7CnVLgkC2ZPj8llEMJg5Y8dJ3T76SvTGtceytniaztQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@typescript-eslint/types": "3.6.0",
|
"@typescript-eslint/types": "3.6.1",
|
||||||
"@typescript-eslint/visitor-keys": "3.6.0",
|
"@typescript-eslint/visitor-keys": "3.6.1",
|
||||||
"debug": "^4.1.1",
|
"debug": "^4.1.1",
|
||||||
"glob": "^7.1.6",
|
"glob": "^7.1.6",
|
||||||
"is-glob": "^4.0.1",
|
"is-glob": "^4.0.1",
|
||||||
@ -1154,9 +1151,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@typescript-eslint/visitor-keys": {
|
"@typescript-eslint/visitor-keys": {
|
||||||
"version": "3.6.0",
|
"version": "3.6.1",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-3.6.0.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-3.6.1.tgz",
|
||||||
"integrity": "sha512-p1izllL2Ubwunite0ITjubuMQRBGgjdVYwyG7lXPX8GbrA6qF0uwSRz9MnXZaHMxID4948gX0Ez8v9tUDi/KfQ==",
|
"integrity": "sha512-qC8Olwz5ZyMTZrh4Wl3K4U6tfms0R/mzU4/5W3XeUZptVraGVmbptJbn6h2Ey6Rb3hOs3zWoAUebZk8t47KGiQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"eslint-visitor-keys": "^1.1.0"
|
"eslint-visitor-keys": "^1.1.0"
|
||||||
@ -1791,12 +1788,6 @@
|
|||||||
"integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=",
|
"integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"core-js-pure": {
|
|
||||||
"version": "3.6.5",
|
|
||||||
"resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.6.5.tgz",
|
|
||||||
"integrity": "sha512-lacdXOimsiD0QyNf9BC/mxivNJ/ybBGJXQFKzRekp1WTHoVUWsUHEn+2T8GJAzzIhyOuXA+gOxCVN3l+5PLPUA==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"core-util-is": {
|
"core-util-is": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
|
||||||
@ -1900,13 +1891,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"decamelize": {
|
"decamelize": {
|
||||||
"version": "3.2.0",
|
"version": "1.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/decamelize/-/decamelize-3.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz",
|
||||||
"integrity": "sha512-4TgkVUsmmu7oCSyGBm5FvfMoACuoh9EOidm7V5/J2X2djAwwt57qb3F2KMP2ITqODTCSwb+YRV+0Zqrv18k/hw==",
|
"integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=",
|
||||||
"dev": true,
|
"dev": true
|
||||||
"requires": {
|
|
||||||
"xregexp": "^4.2.4"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"decimal.js": {
|
"decimal.js": {
|
||||||
"version": "10.2.0",
|
"version": "10.2.0",
|
||||||
@ -2166,9 +2154,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"eslint": {
|
"eslint": {
|
||||||
"version": "7.4.0",
|
"version": "7.5.0",
|
||||||
"resolved": "https://registry.npmjs.org/eslint/-/eslint-7.4.0.tgz",
|
"resolved": "https://registry.npmjs.org/eslint/-/eslint-7.5.0.tgz",
|
||||||
"integrity": "sha512-gU+lxhlPHu45H3JkEGgYhWhkR9wLHHEXC9FbWFnTlEkbKyZKWgWRLgf61E8zWmBuI6g5xKBph9ltg3NtZMVF8g==",
|
"integrity": "sha512-vlUP10xse9sWt9SGRtcr1LAC67BENcQMFeV+w5EvLEoFe3xJ8cF1Skd0msziRx/VMC+72B4DxreCE+OR12OA6Q==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/code-frame": "^7.0.0",
|
"@babel/code-frame": "^7.0.0",
|
||||||
@ -2179,9 +2167,9 @@
|
|||||||
"doctrine": "^3.0.0",
|
"doctrine": "^3.0.0",
|
||||||
"enquirer": "^2.3.5",
|
"enquirer": "^2.3.5",
|
||||||
"eslint-scope": "^5.1.0",
|
"eslint-scope": "^5.1.0",
|
||||||
"eslint-utils": "^2.0.0",
|
"eslint-utils": "^2.1.0",
|
||||||
"eslint-visitor-keys": "^1.2.0",
|
"eslint-visitor-keys": "^1.3.0",
|
||||||
"espree": "^7.1.0",
|
"espree": "^7.2.0",
|
||||||
"esquery": "^1.2.0",
|
"esquery": "^1.2.0",
|
||||||
"esutils": "^2.0.2",
|
"esutils": "^2.0.2",
|
||||||
"file-entry-cache": "^5.0.1",
|
"file-entry-cache": "^5.0.1",
|
||||||
@ -2195,7 +2183,7 @@
|
|||||||
"js-yaml": "^3.13.1",
|
"js-yaml": "^3.13.1",
|
||||||
"json-stable-stringify-without-jsonify": "^1.0.1",
|
"json-stable-stringify-without-jsonify": "^1.0.1",
|
||||||
"levn": "^0.4.1",
|
"levn": "^0.4.1",
|
||||||
"lodash": "^4.17.14",
|
"lodash": "^4.17.19",
|
||||||
"minimatch": "^3.0.4",
|
"minimatch": "^3.0.4",
|
||||||
"natural-compare": "^1.4.0",
|
"natural-compare": "^1.4.0",
|
||||||
"optionator": "^0.9.1",
|
"optionator": "^0.9.1",
|
||||||
@ -2405,14 +2393,14 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"espree": {
|
"espree": {
|
||||||
"version": "7.1.0",
|
"version": "7.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/espree/-/espree-7.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/espree/-/espree-7.2.0.tgz",
|
||||||
"integrity": "sha512-dcorZSyfmm4WTuTnE5Y7MEN1DyoPYy1ZR783QW1FJoenn7RailyWFsq/UL6ZAAA7uXurN9FIpYyUs3OfiIW+Qw==",
|
"integrity": "sha512-H+cQ3+3JYRMEIOl87e7QdHX70ocly5iW4+dttuR8iYSPr/hXKFb+7dBsZ7+u1adC4VrnPlTkv0+OwuPnDop19g==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"acorn": "^7.2.0",
|
"acorn": "^7.3.1",
|
||||||
"acorn-jsx": "^5.2.0",
|
"acorn-jsx": "^5.2.0",
|
||||||
"eslint-visitor-keys": "^1.2.0"
|
"eslint-visitor-keys": "^1.3.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"esprima": {
|
"esprima": {
|
||||||
@ -3685,9 +3673,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"execa": {
|
"execa": {
|
||||||
"version": "4.0.2",
|
"version": "4.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/execa/-/execa-4.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/execa/-/execa-4.0.3.tgz",
|
||||||
"integrity": "sha512-QI2zLa6CjGWdiQsmSkZoGtDx2N+cQIGb3yNolGTdjSQzydzLgYYf8LRuagp7S7fPimjcrzUDSUFd/MgzELMi4Q==",
|
"integrity": "sha512-WFDXGHckXPWZX19t1kCsXzOpqX9LWYNqn4C+HqZlk/V0imTkzJZqf87ZBhvpHaftERYknpk0fjSylnXVlVgI0A==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"cross-spawn": "^7.0.0",
|
"cross-spawn": "^7.0.0",
|
||||||
@ -4873,9 +4861,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"jsdom": {
|
"jsdom": {
|
||||||
"version": "16.2.2",
|
"version": "16.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.2.2.tgz",
|
"resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.3.0.tgz",
|
||||||
"integrity": "sha512-pDFQbcYtKBHxRaP55zGXCJWgFHkDAYbKcsXEK/3Icu9nKYZkutUXfLBwbD+09XDutkYSHcgfQLZ0qvpAAm9mvg==",
|
"integrity": "sha512-zggeX5UuEknpdZzv15+MS1dPYG0J/TftiiNunOeNxSl3qr8Z6cIlQpN0IdJa44z9aFxZRIVqRncvEhQ7X5DtZg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"abab": "^2.0.3",
|
"abab": "^2.0.3",
|
||||||
@ -4898,7 +4886,7 @@
|
|||||||
"tough-cookie": "^3.0.1",
|
"tough-cookie": "^3.0.1",
|
||||||
"w3c-hr-time": "^1.0.2",
|
"w3c-hr-time": "^1.0.2",
|
||||||
"w3c-xmlserializer": "^2.0.0",
|
"w3c-xmlserializer": "^2.0.0",
|
||||||
"webidl-conversions": "^6.0.0",
|
"webidl-conversions": "^6.1.0",
|
||||||
"whatwg-encoding": "^1.0.5",
|
"whatwg-encoding": "^1.0.5",
|
||||||
"whatwg-mimetype": "^2.3.0",
|
"whatwg-mimetype": "^2.3.0",
|
||||||
"whatwg-url": "^8.0.0",
|
"whatwg-url": "^8.0.0",
|
||||||
@ -5020,9 +5008,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lodash": {
|
"lodash": {
|
||||||
"version": "4.17.15",
|
"version": "4.17.19",
|
||||||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz",
|
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.19.tgz",
|
||||||
"integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==",
|
"integrity": "sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"lodash.memoize": {
|
"lodash.memoize": {
|
||||||
@ -5662,12 +5650,6 @@
|
|||||||
"read-pkg": "^2.0.0"
|
"read-pkg": "^2.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"regenerator-runtime": {
|
|
||||||
"version": "0.13.5",
|
|
||||||
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.5.tgz",
|
|
||||||
"integrity": "sha512-ZS5w8CpKFinUzOwW3c83oPeVXoNsrLsaCoLtJvAClH135j/R77RuymhiSErhm2lKcwSCIpmvIWSbDkIfAqKQlA==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"regex-not": {
|
"regex-not": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz",
|
||||||
@ -6503,9 +6485,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"strip-json-comments": {
|
"strip-json-comments": {
|
||||||
"version": "3.1.0",
|
"version": "3.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
|
||||||
"integrity": "sha512-e6/d0eBu7gHtdCqFt0xJr642LdToM5/cN4Qb9DbHjVx1CP5RyeM+zH7pbecEmDv/lBqb0QH+6Uqq75rxFPkM0w==",
|
"integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"supports-color": {
|
"supports-color": {
|
||||||
@ -6652,18 +6634,18 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ts-jest": {
|
"ts-jest": {
|
||||||
"version": "26.1.1",
|
"version": "26.1.3",
|
||||||
"resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-26.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-26.1.3.tgz",
|
||||||
"integrity": "sha512-Lk/357quLg5jJFyBQLnSbhycnB3FPe+e9i7ahxokyXxAYoB0q1pPmqxxRPYr4smJic1Rjcf7MXDBhZWgxlli0A==",
|
"integrity": "sha512-beUTSvuqR9SmKQEylewqJdnXWMVGJRFqSz2M8wKJe7GBMmLZ5zw6XXKSJckbHNMxn+zdB3guN2eOucSw2gBMnw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"bs-logger": "0.x",
|
"bs-logger": "0.x",
|
||||||
"buffer-from": "1.x",
|
"buffer-from": "1.x",
|
||||||
"fast-json-stable-stringify": "2.x",
|
"fast-json-stable-stringify": "2.x",
|
||||||
|
"jest-util": "26.x",
|
||||||
"json5": "2.x",
|
"json5": "2.x",
|
||||||
"lodash.memoize": "4.x",
|
"lodash.memoize": "4.x",
|
||||||
"make-error": "1.x",
|
"make-error": "1.x",
|
||||||
"micromatch": "4.x",
|
|
||||||
"mkdirp": "1.x",
|
"mkdirp": "1.x",
|
||||||
"semver": "7.x",
|
"semver": "7.x",
|
||||||
"yargs-parser": "18.x"
|
"yargs-parser": "18.x"
|
||||||
@ -6713,6 +6695,11 @@
|
|||||||
"tslib": "^1.8.1"
|
"tslib": "^1.8.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"tunnel": {
|
||||||
|
"version": "0.0.6",
|
||||||
|
"resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz",
|
||||||
|
"integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg=="
|
||||||
|
},
|
||||||
"tunnel-agent": {
|
"tunnel-agent": {
|
||||||
"version": "0.6.0",
|
"version": "0.6.0",
|
||||||
"resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
|
"resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
|
||||||
@ -6759,9 +6746,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"typescript": {
|
"typescript": {
|
||||||
"version": "3.9.6",
|
"version": "3.9.7",
|
||||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.6.tgz",
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.7.tgz",
|
||||||
"integrity": "sha512-Pspx3oKAPJtjNwE92YS05HQoY7z2SFyOpHo9MqJor3BXAGNaPUs83CuVp9VISFkSjyRfiTpmKuAYGJB7S7hOxw==",
|
"integrity": "sha512-BLbiRkiBzAwsjut4x/dsibSTB6yWpwT5qWmC2OfuCg3GgVQCSgMs4vEctYPhsaGtd0AeuuHMkjZ2h2WG8MSzRw==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"union-value": {
|
"union-value": {
|
||||||
@ -7065,15 +7052,6 @@
|
|||||||
"integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==",
|
"integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"xregexp": {
|
|
||||||
"version": "4.3.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/xregexp/-/xregexp-4.3.0.tgz",
|
|
||||||
"integrity": "sha512-7jXDIFXh5yJ/orPn4SXjuVrWWoi4Cr8jfV1eHv9CixKSbU+jY4mxfrBwAuDvupPNKpMUY+FeIqsVw/JLT9+B8g==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"@babel/runtime-corejs3": "^7.8.3"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"y18n": {
|
"y18n": {
|
||||||
"version": "4.0.0",
|
"version": "4.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz",
|
||||||
@ -7087,13 +7065,13 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"yargs": {
|
"yargs": {
|
||||||
"version": "15.4.0",
|
"version": "15.4.1",
|
||||||
"resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.0.tgz",
|
"resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz",
|
||||||
"integrity": "sha512-D3fRFnZwLWp8jVAAhPZBsmeIHY8tTsb8ItV9KaAaopmC6wde2u6Yw29JBIZHXw14kgkRnYmDgmQU4FVMDlIsWw==",
|
"integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"cliui": "^6.0.0",
|
"cliui": "^6.0.0",
|
||||||
"decamelize": "^3.2.0",
|
"decamelize": "^1.2.0",
|
||||||
"find-up": "^4.1.0",
|
"find-up": "^4.1.0",
|
||||||
"get-caller-file": "^2.0.1",
|
"get-caller-file": "^2.0.1",
|
||||||
"require-directory": "^2.1.1",
|
"require-directory": "^2.1.1",
|
||||||
@ -7187,14 +7165,6 @@
|
|||||||
"requires": {
|
"requires": {
|
||||||
"camelcase": "^5.0.0",
|
"camelcase": "^5.0.0",
|
||||||
"decamelize": "^1.2.0"
|
"decamelize": "^1.2.0"
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"decamelize": {
|
|
||||||
"version": "1.2.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz",
|
|
||||||
"integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=",
|
|
||||||
"dev": true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
17
package.json
17
package.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "setup-php",
|
"name": "setup-php",
|
||||||
"version": "2.3.2",
|
"version": "2.4.0",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "Setup PHP for use with GitHub Actions",
|
"description": "Setup PHP for use with GitHub Actions",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
@ -26,16 +26,17 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.2.4",
|
"@actions/core": "^1.2.4",
|
||||||
"@actions/exec": "^1.0.4",
|
"@actions/exec": "^1.0.4",
|
||||||
|
"@actions/http-client": "^1.0.8",
|
||||||
"@actions/io": "^1.0.2",
|
"@actions/io": "^1.0.2",
|
||||||
"fs": "0.0.1-security"
|
"fs": "0.0.1-security"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^26.0.3",
|
"@types/jest": "^26.0.5",
|
||||||
"@types/node": "^14.0.14",
|
"@types/node": "^14.0.23",
|
||||||
"@typescript-eslint/eslint-plugin": "^3.6.0",
|
"@typescript-eslint/eslint-plugin": "^3.6.1",
|
||||||
"@typescript-eslint/parser": "^3.6.0",
|
"@typescript-eslint/parser": "^3.6.1",
|
||||||
"@zeit/ncc": "^0.22.3",
|
"@zeit/ncc": "^0.22.3",
|
||||||
"eslint": "^7.4.0",
|
"eslint": "^7.5.0",
|
||||||
"eslint-config-prettier": "^6.11.0",
|
"eslint-config-prettier": "^6.11.0",
|
||||||
"eslint-plugin-import": "^2.22.0",
|
"eslint-plugin-import": "^2.22.0",
|
||||||
"eslint-plugin-jest": "^23.18.0",
|
"eslint-plugin-jest": "^23.18.0",
|
||||||
@ -44,8 +45,8 @@
|
|||||||
"jest": "^26.1.0",
|
"jest": "^26.1.0",
|
||||||
"jest-circus": "^26.1.0",
|
"jest-circus": "^26.1.0",
|
||||||
"prettier": "^2.0.5",
|
"prettier": "^2.0.5",
|
||||||
"ts-jest": "^26.1.1",
|
"ts-jest": "^26.1.3",
|
||||||
"typescript": "^3.9.6"
|
"typescript": "^3.9.7"
|
||||||
},
|
},
|
||||||
"husky": {
|
"husky": {
|
||||||
"skipCI": true,
|
"skipCI": true,
|
||||||
|
@ -1,58 +0,0 @@
|
|||||||
variants:
|
|
||||||
dev:
|
|
||||||
bcmath:
|
|
||||||
calendar:
|
|
||||||
cli:
|
|
||||||
ctype:
|
|
||||||
dom:
|
|
||||||
fileinfo:
|
|
||||||
filter:
|
|
||||||
ipc:
|
|
||||||
iconv:
|
|
||||||
json:
|
|
||||||
mbregex:
|
|
||||||
mbstring:
|
|
||||||
mhash:
|
|
||||||
mcrypt:
|
|
||||||
pcntl:
|
|
||||||
pcre:
|
|
||||||
pdo:
|
|
||||||
phar:
|
|
||||||
posix:
|
|
||||||
sockets:
|
|
||||||
tokenizer:
|
|
||||||
xml:
|
|
||||||
curl:
|
|
||||||
openssl:
|
|
||||||
zip:
|
|
||||||
gd:
|
|
||||||
- --with-freetype
|
|
||||||
- --with-pdo-mysql=mysqlnd
|
|
||||||
- --with-mysqli=mysqlnd
|
|
||||||
- --with-pgsql
|
|
||||||
- --with-pdo-pgsql
|
|
||||||
- --with-gmp=/usr/local/opt/gmp
|
|
||||||
- --with-openssl
|
|
||||||
- --with-pear
|
|
||||||
- --with-zip
|
|
||||||
- --with-libxml
|
|
||||||
- --with-kerberos
|
|
||||||
- --with-gd
|
|
||||||
- --with-ffi
|
|
||||||
- --with-curl
|
|
||||||
- --with-mhash
|
|
||||||
- --with-readline=/usr/local/opt/readline
|
|
||||||
- --with-iconv=/usr/local/opt/libiconv
|
|
||||||
- --with-icu-dir=/usr/local/opt/icu4c
|
|
||||||
- --with-config-file-path=/etc
|
|
||||||
- --enable-intl
|
|
||||||
- --enable-xml
|
|
||||||
- --enable-sysvsem
|
|
||||||
- --enable-sysvshm
|
|
||||||
- --enable-sysvmsg
|
|
||||||
- --enable-phpdbg
|
|
||||||
- --enable-exif
|
|
||||||
- --enable-gd
|
|
||||||
- --enable-soap
|
|
||||||
- --enable-xmlreader
|
|
||||||
- --enable-zend-test=shared
|
|
@ -19,9 +19,11 @@ export async function addCoverageXdebug(
|
|||||||
const xdebug =
|
const xdebug =
|
||||||
(await extensions.addExtension(extension, version, os_version, true)) +
|
(await extensions.addExtension(extension, version, os_version, true)) +
|
||||||
pipe;
|
pipe;
|
||||||
const ini =
|
const ini = await config.addINIValues(
|
||||||
(await config.addINIValues('xdebug.mode=coverage', os_version, true)) +
|
'xdebug.mode=coverage',
|
||||||
pipe;
|
os_version,
|
||||||
|
true
|
||||||
|
);
|
||||||
const log = await utils.addLog(
|
const log = await utils.addLog(
|
||||||
'$tick',
|
'$tick',
|
||||||
extension,
|
extension,
|
||||||
|
@ -13,7 +13,10 @@ export async function getXdebugVersion(version: string): Promise<string> {
|
|||||||
case '5.4':
|
case '5.4':
|
||||||
return '2.4.1';
|
return '2.4.1';
|
||||||
case '5.5':
|
case '5.5':
|
||||||
|
case '5.6':
|
||||||
return '2.5.5';
|
return '2.5.5';
|
||||||
|
case '7.0':
|
||||||
|
return '2.7.2';
|
||||||
default:
|
default:
|
||||||
return '2.9.6';
|
return '2.9.6';
|
||||||
}
|
}
|
||||||
@ -110,6 +113,24 @@ export async function addExtensionDarwin(
|
|||||||
extension = 'sqlite3';
|
extension = 'sqlite3';
|
||||||
command = command_prefix + extension;
|
command = command_prefix + extension;
|
||||||
break;
|
break;
|
||||||
|
// match pdo_oci and oci8
|
||||||
|
case /^pdo_oci$|^oci8$/.test(extension):
|
||||||
|
add_script +=
|
||||||
|
'\nbash ' +
|
||||||
|
path.join(__dirname, '../src/scripts/ext/oci.sh') +
|
||||||
|
' ' +
|
||||||
|
extension +
|
||||||
|
' ' +
|
||||||
|
version;
|
||||||
|
return;
|
||||||
|
// match 5.3ioncube...7.4ioncube, 7.0ioncube...7.4ioncube
|
||||||
|
case /^5\.[3-6]ioncube$|^7\.[0-4]ioncube$/.test(version_extension):
|
||||||
|
add_script +=
|
||||||
|
'\nbash ' +
|
||||||
|
path.join(__dirname, '../src/scripts/ext/ioncube.sh') +
|
||||||
|
' ' +
|
||||||
|
version;
|
||||||
|
return;
|
||||||
// match 7.0phalcon3...7.3phalcon3 and 7.2phalcon4...7.4phalcon4
|
// match 7.0phalcon3...7.3phalcon3 and 7.2phalcon4...7.4phalcon4
|
||||||
case /^7\.[0-3]phalcon3$|^7\.[2-4]phalcon4$/.test(version_extension):
|
case /^7\.[0-3]phalcon3$|^7\.[2-4]phalcon4$/.test(version_extension):
|
||||||
add_script +=
|
add_script +=
|
||||||
@ -201,6 +222,26 @@ export async function addExtensionWindows(
|
|||||||
extension = 'sqlite3';
|
extension = 'sqlite3';
|
||||||
add_script += '\nAdd-Extension ' + extension;
|
add_script += '\nAdd-Extension ' + extension;
|
||||||
break;
|
break;
|
||||||
|
// match pdo_oci and oci8
|
||||||
|
case /^pdo_oci$|^oci8$/.test(extension):
|
||||||
|
add_script +=
|
||||||
|
'\n& ' +
|
||||||
|
path.join(__dirname, '../src/scripts/ext/oci.ps1') +
|
||||||
|
' ' +
|
||||||
|
extension +
|
||||||
|
' ' +
|
||||||
|
version +
|
||||||
|
'\n';
|
||||||
|
break;
|
||||||
|
// match 5.3ioncube...7.4ioncube, 7.0ioncube...7.4ioncube
|
||||||
|
case /^5\.[3-6]ioncube$|^7\.[0-4]ioncube$/.test(version_extension):
|
||||||
|
add_script +=
|
||||||
|
'\n& ' +
|
||||||
|
path.join(__dirname, '../src/scripts/ext/ioncube.ps1') +
|
||||||
|
' ' +
|
||||||
|
version +
|
||||||
|
'\n';
|
||||||
|
break;
|
||||||
// match 7.0phalcon3...7.3phalcon3 and 7.2phalcon4...7.4phalcon4
|
// match 7.0phalcon3...7.3phalcon3 and 7.2phalcon4...7.4phalcon4
|
||||||
case /^7\.[0-3]phalcon3$|^7\.[2-4]phalcon4$/.test(version_extension):
|
case /^7\.[0-3]phalcon3$|^7\.[2-4]phalcon4$/.test(version_extension):
|
||||||
add_script +=
|
add_script +=
|
||||||
@ -288,6 +329,24 @@ export async function addExtensionLinux(
|
|||||||
version +
|
version +
|
||||||
pipe;
|
pipe;
|
||||||
break;
|
break;
|
||||||
|
// match pdo_oci and oci8
|
||||||
|
case /^pdo_oci$|^oci8$/.test(extension):
|
||||||
|
add_script +=
|
||||||
|
'\nbash ' +
|
||||||
|
path.join(__dirname, '../src/scripts/ext/oci.sh') +
|
||||||
|
' ' +
|
||||||
|
extension +
|
||||||
|
' ' +
|
||||||
|
version;
|
||||||
|
return;
|
||||||
|
// match 5.3ioncube...7.4ioncube, 7.0ioncube...7.4ioncube
|
||||||
|
case /^5\.[3-6]ioncube$|^7\.[0-4]ioncube$/.test(version_extension):
|
||||||
|
add_script +=
|
||||||
|
'\nbash ' +
|
||||||
|
path.join(__dirname, '../src/scripts/ext/ioncube.sh') +
|
||||||
|
' ' +
|
||||||
|
version;
|
||||||
|
return;
|
||||||
// match 7.0phalcon3...7.3phalcon3 or 7.2phalcon4...7.4phalcon4
|
// match 7.0phalcon3...7.3phalcon3 or 7.2phalcon4...7.4phalcon4
|
||||||
case /^7\.[0-3]phalcon3$|^7\.[2-4]phalcon4$/.test(version_extension):
|
case /^7\.[0-3]phalcon3$|^7\.[2-4]phalcon4$/.test(version_extension):
|
||||||
add_script +=
|
add_script +=
|
||||||
|
@ -41,12 +41,12 @@ export async function build(
|
|||||||
if (extension_csv) {
|
if (extension_csv) {
|
||||||
script += await extensions.addExtension(extension_csv, version, os_version);
|
script += await extensions.addExtension(extension_csv, version, os_version);
|
||||||
}
|
}
|
||||||
if (ini_values_csv) {
|
|
||||||
script += await config.addINIValues(ini_values_csv, os_version);
|
|
||||||
}
|
|
||||||
if (coverage_driver) {
|
if (coverage_driver) {
|
||||||
script += await coverage.addCoverage(coverage_driver, version, os_version);
|
script += await coverage.addCoverage(coverage_driver, version, os_version);
|
||||||
}
|
}
|
||||||
|
if (ini_values_csv) {
|
||||||
|
script += await config.addINIValues(ini_values_csv, os_version);
|
||||||
|
}
|
||||||
|
|
||||||
return await utils.writeScript(filename, script);
|
return await utils.writeScript(filename, script);
|
||||||
}
|
}
|
||||||
|
@ -60,10 +60,10 @@ check_extension() {
|
|||||||
# Fuction to get the PECL version.
|
# Fuction to get the PECL version.
|
||||||
get_pecl_version() {
|
get_pecl_version() {
|
||||||
extension=$1
|
extension=$1
|
||||||
stability=$2
|
stability="$(echo "$2" | grep -m 1 -Eio "(alpha|beta|rc|snapshot)")"
|
||||||
pecl_rest='https://pecl.php.net/rest/r/'
|
pecl_rest='https://pecl.php.net/rest/r/'
|
||||||
response=$(curl -q -sSL "$pecl_rest$extension"/allreleases.xml)
|
response=$(curl -q -sSL "$pecl_rest$extension"/allreleases.xml)
|
||||||
pecl_version=$(echo "$response" | grep -m 1 -Eo "(\d*\.\d*\.\d*$stability\d*)")
|
pecl_version=$(echo "$response" | grep -m 1 -Eio "(\d*\.\d*\.\d*$stability\d*)")
|
||||||
if [ ! "$pecl_version" ]; then
|
if [ ! "$pecl_version" ]; then
|
||||||
pecl_version=$(echo "$response" | grep -m 1 -Eo "(\d*\.\d*\.\d*)")
|
pecl_version=$(echo "$response" | grep -m 1 -Eo "(\d*\.\d*\.\d*)")
|
||||||
fi
|
fi
|
||||||
@ -75,6 +75,9 @@ add_pecl_extension() {
|
|||||||
extension=$1
|
extension=$1
|
||||||
pecl_version=$2
|
pecl_version=$2
|
||||||
prefix=$3
|
prefix=$3
|
||||||
|
if [[ $pecl_version =~ .*(alpha|beta|rc|snapshot).* ]]; then
|
||||||
|
pecl_version=$(get_pecl_version "$extension" "$pecl_version")
|
||||||
|
fi
|
||||||
if ! check_extension "$extension" && [ -e "$ext_dir/$extension.so" ]; then
|
if ! check_extension "$extension" && [ -e "$ext_dir/$extension.so" ]; then
|
||||||
echo "$prefix=$ext_dir/$extension.so" >>"$ini_file"
|
echo "$prefix=$ext_dir/$extension.so" >>"$ini_file"
|
||||||
fi
|
fi
|
||||||
@ -127,6 +130,26 @@ add_unstable_extension() {
|
|||||||
add_pecl_extension "$extension" "$pecl_version" "$prefix"
|
add_pecl_extension "$extension" "$pecl_version" "$prefix"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Function to configure composer
|
||||||
|
configure_composer() {
|
||||||
|
tool_path=$1
|
||||||
|
sudo ln -sf "$tool_path" "$tool_path.phar"
|
||||||
|
php -r "try {\$p=new Phar('$tool_path.phar', 0);exit(0);} catch(Exception \$e) {exit(1);}"
|
||||||
|
if [ $? -eq 1 ]; then
|
||||||
|
add_log "$cross" "composer" "Could not download composer"
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
composer -q global config process-timeout 0
|
||||||
|
echo "::add-path::/Users/$USER/.composer/vendor/bin"
|
||||||
|
if [ -n "$COMPOSER_TOKEN" ]; then
|
||||||
|
composer -q global config github-oauth.github.com "$COMPOSER_TOKEN"
|
||||||
|
fi
|
||||||
|
# TODO: Remove after composer 2.0 update, fixes peer fingerprint error
|
||||||
|
if [[ "$version" =~ $old_versions ]]; then
|
||||||
|
composer -q global config repos.packagist composer https://repo-ca-bhs-1.packagist.org
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# Function to setup a remote tool.
|
# Function to setup a remote tool.
|
||||||
add_tool() {
|
add_tool() {
|
||||||
url=$1
|
url=$1
|
||||||
@ -140,15 +163,7 @@ add_tool() {
|
|||||||
if [ "$status_code" = "200" ]; then
|
if [ "$status_code" = "200" ]; then
|
||||||
sudo chmod a+x "$tool_path"
|
sudo chmod a+x "$tool_path"
|
||||||
if [ "$tool" = "composer" ]; then
|
if [ "$tool" = "composer" ]; then
|
||||||
composer -q global config process-timeout 0
|
configure_composer "$tool_path"
|
||||||
echo "::add-path::/Users/$USER/.composer/vendor/bin"
|
|
||||||
if [ -n "$COMPOSER_TOKEN" ]; then
|
|
||||||
composer -q global config github-oauth.github.com "$COMPOSER_TOKEN"
|
|
||||||
fi
|
|
||||||
# TODO: Remove after composer 2.0 update, fixes peer fingerprint error
|
|
||||||
if [[ "$version" =~ $old_versions ]]; then
|
|
||||||
composer -q global config repos.packagist composer https://repo-ca-bhs-1.packagist.org
|
|
||||||
fi
|
|
||||||
elif [ "$tool" = "phan" ]; then
|
elif [ "$tool" = "phan" ]; then
|
||||||
add_extension fileinfo "sudo pecl install -f fileinfo" extension >/dev/null 2>&1
|
add_extension fileinfo "sudo pecl install -f fileinfo" extension >/dev/null 2>&1
|
||||||
add_extension ast "sudo pecl install -f ast" extension >/dev/null 2>&1
|
add_extension ast "sudo pecl install -f ast" extension >/dev/null 2>&1
|
||||||
@ -185,11 +200,11 @@ add_blackfire() {
|
|||||||
brew tap --shallow blackfireio/homebrew-blackfire >/dev/null 2>&1
|
brew tap --shallow blackfireio/homebrew-blackfire >/dev/null 2>&1
|
||||||
brew install blackfire-agent >/dev/null 2>&1
|
brew install blackfire-agent >/dev/null 2>&1
|
||||||
if [[ -n $BLACKFIRE_SERVER_ID ]] && [[ -n $BLACKFIRE_SERVER_TOKEN ]]; then
|
if [[ -n $BLACKFIRE_SERVER_ID ]] && [[ -n $BLACKFIRE_SERVER_TOKEN ]]; then
|
||||||
sudo blackfire-agent --register --server-id="$BLACKFIRE_SERVER_ID" --server-token="$BLACKFIRE_SERVER_TOKEN" >/dev/null 2>&1
|
blackfire-agent --register --server-id="$BLACKFIRE_SERVER_ID" --server-token="$BLACKFIRE_SERVER_TOKEN" >/dev/null 2>&1
|
||||||
brew services start blackfire-agent >/dev/null 2>&1
|
brew services start blackfire-agent >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
if [[ -n $BLACKFIRE_CLIENT_ID ]] && [[ -n $BLACKFIRE_CLIENT_TOKEN ]]; then
|
if [[ -n $BLACKFIRE_CLIENT_ID ]] && [[ -n $BLACKFIRE_CLIENT_TOKEN ]]; then
|
||||||
sudo blackfire config --client-id="$BLACKFIRE_CLIENT_ID" --client-token="$BLACKFIRE_CLIENT_TOKEN" >/dev/null 2>&1
|
blackfire config --client-id="$BLACKFIRE_CLIENT_ID" --client-token="$BLACKFIRE_CLIENT_TOKEN" >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
add_log "$tick" "blackfire" "Added"
|
add_log "$tick" "blackfire" "Added"
|
||||||
add_log "$tick" "blackfire-agent" "Added"
|
add_log "$tick" "blackfire-agent" "Added"
|
||||||
@ -256,7 +271,7 @@ else
|
|||||||
fi
|
fi
|
||||||
ini_file=$(php -d "date.timezone=UTC" --ini | grep "Loaded Configuration" | sed -e "s|.*:s*||" | sed "s/ //g")
|
ini_file=$(php -d "date.timezone=UTC" --ini | grep "Loaded Configuration" | sed -e "s|.*:s*||" | sed "s/ //g")
|
||||||
sudo chmod 777 "$ini_file" "$tool_path_dir"
|
sudo chmod 777 "$ini_file" "$tool_path_dir"
|
||||||
echo "date.timezone=UTC" >>"$ini_file"
|
echo -e "date.timezone=UTC\nmemory_limit=-1" >>"$ini_file"
|
||||||
ext_dir=$(php -i | grep -Ei "extension_dir => /" | sed -e "s|.*=> s*||")
|
ext_dir=$(php -i | grep -Ei "extension_dir => /" | sed -e "s|.*=> s*||")
|
||||||
scan_dir=$(php --ini | grep additional | sed -e "s|.*: s*||")
|
scan_dir=$(php --ini | grep additional | sed -e "s|.*: s*||")
|
||||||
sudo mkdir -p "$ext_dir"
|
sudo mkdir -p "$ext_dir"
|
||||||
|
48
src/scripts/ext/ioncube.ps1
Normal file
48
src/scripts/ext/ioncube.ps1
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
Param (
|
||||||
|
[Parameter(Position = 0, Mandatory = $true)]
|
||||||
|
[ValidateNotNull()]
|
||||||
|
[ValidateLength(1, [int]::MaxValue)]
|
||||||
|
[string]
|
||||||
|
$version
|
||||||
|
)
|
||||||
|
|
||||||
|
# Function to log result of a operation.
|
||||||
|
Function Add-Log($mark, $subject, $message) {
|
||||||
|
if ($mark -eq $tick) {
|
||||||
|
printf "\033[%s;1m%s \033[0m\033[34;1m%s \033[0m\033[90;1m%s \033[0m\n" "32" $mark $subject $message
|
||||||
|
printf "::group::\033[34;1m%s \033[0m\033[90;1m%s \033[0m\n" "ioncube" "Click to read the ioncube loader license information"
|
||||||
|
Get-Content $ext_dir\ioncube\LICENSE.txt
|
||||||
|
Write-Output "::endgroup::"
|
||||||
|
} else {
|
||||||
|
printf "\033[%s;1m%s \033[0m\033[34;1m%s \033[0m\033[90;1m%s \033[0m\n" "31" $mark $subject $message
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$tick = ([char]8730)
|
||||||
|
$cross = ([char]10007)
|
||||||
|
$status = 'Enabled'
|
||||||
|
$php_dir = 'C:\tools\php'
|
||||||
|
if($env:RUNNER -eq 'self-hosted') { $php_dir = "$php_dir$version" }
|
||||||
|
$ext_dir = "$php_dir\ext"
|
||||||
|
$installed = Get-Php $php_dir
|
||||||
|
try {
|
||||||
|
if (-not(Test-Path $ext_dir\php_ioncube.dll)) {
|
||||||
|
$status = 'Installed and enabled'
|
||||||
|
$arch = 'x86-64'
|
||||||
|
if (-not([Environment]::Is64BitOperatingSystem) -or $version -lt '7.0') {
|
||||||
|
$arch = 'x86'
|
||||||
|
}
|
||||||
|
$vc = $installed.VCVersion
|
||||||
|
$ts = ""
|
||||||
|
if (-not($installed.ThreadSafe)) {
|
||||||
|
$ts = "_nonts"
|
||||||
|
}
|
||||||
|
Invoke-WebRequest -UseBasicParsing -Uri "https://downloads.ioncube.com/loader_downloads/ioncube_loaders_win$ts`_vc$vc`_$arch.zip" -OutFile $ext_dir\ioncube.zip
|
||||||
|
Expand-Archive -Path $ext_dir\ioncube.zip -DestinationPath $ext_dir -Force
|
||||||
|
Copy-Item $ext_dir\ioncube\ioncube_loader_win_$version.dll $ext_dir\php_ioncube.dll
|
||||||
|
}
|
||||||
|
"zend_extension=$ext_dir\php_ioncube.dll`r`n" + (Get-Content $php_dir\php.ini -Raw) | Set-Content $php_dir\php.ini
|
||||||
|
Add-Log $tick "ioncube" $status
|
||||||
|
} catch {
|
||||||
|
Add-Log $cross "ioncube" "Could not install ioncube on PHP $($installed.FullVersion)"
|
||||||
|
}
|
41
src/scripts/ext/ioncube.sh
Normal file
41
src/scripts/ext/ioncube.sh
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
# Function to log result of a operation.
|
||||||
|
add_log() {
|
||||||
|
mark=$1
|
||||||
|
subject=$2
|
||||||
|
message=$3
|
||||||
|
if [ "$mark" = "$tick" ]; then
|
||||||
|
printf "\033[32;1m%s \033[0m\033[34;1m%s \033[0m\033[90;1m%s\033[0m\n" "$mark" "$subject" "$message"
|
||||||
|
printf "::group::\033[34;1m%s \033[0m\033[90;1m%s \033[0m\n" "ioncube" "Click to read the ioncube loader license information"
|
||||||
|
cat /tmp/ioncube/LICENSE.txt
|
||||||
|
echo "::endgroup::"
|
||||||
|
else
|
||||||
|
printf "\033[31;1m%s \033[0m\033[34;1m%s \033[0m\033[90;1m%s\033[0m\n" "$mark" "$subject" "$message"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Function to test if extension is loaded.
|
||||||
|
check_extension() {
|
||||||
|
extension=$1
|
||||||
|
php -m | grep -i -q -w "$extension"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Function to install ioncube.
|
||||||
|
install_ioncube() {
|
||||||
|
if [ ! -e "$ext_dir/ioncube.so" ]; then
|
||||||
|
os_name='lin'
|
||||||
|
status='Installed and enabled'
|
||||||
|
[ "$(uname -s)" = "Darwin" ] && os_name='mac'
|
||||||
|
curl -sSL https://downloads.ioncube.com/loader_downloads/ioncube_loaders_"$os_name"_x86-64.tar.gz | tar -xzf - -C /tmp
|
||||||
|
sudo mv /tmp/ioncube/ioncube_loader_"$os_name"_"$version".so "$ext_dir/ioncube.so"
|
||||||
|
fi
|
||||||
|
echo "zend_extension=$ext_dir/ioncube.so" | sudo tee "$scan_dir/00-ioncube.ini"
|
||||||
|
}
|
||||||
|
|
||||||
|
version=$1
|
||||||
|
tick='✓'
|
||||||
|
cross='✗'
|
||||||
|
scan_dir=$(php --ini | grep additional | sed -e "s|.*: s*||")
|
||||||
|
ext_dir=$(php -i | grep "extension_dir => /" | sed -e "s|.*=> s*||")
|
||||||
|
status='Enabled'
|
||||||
|
install_ioncube >/dev/null 2>&1
|
||||||
|
(check_extension "ioncube" && add_log "$tick" "ioncube" "$status") || add_log "$cross" "ioncube" "Could not install ioncube"
|
68
src/scripts/ext/oci.ps1
Normal file
68
src/scripts/ext/oci.ps1
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
Param (
|
||||||
|
[Parameter(Position = 0, Mandatory = $true)]
|
||||||
|
[ValidateNotNull()]
|
||||||
|
[ValidateSet('oci8', 'pdo_oci')]
|
||||||
|
[string]
|
||||||
|
$extension,
|
||||||
|
[Parameter(Position = 1, Mandatory = $true)]
|
||||||
|
[ValidateNotNull()]
|
||||||
|
[ValidateLength(1, [int]::MaxValue)]
|
||||||
|
[string]
|
||||||
|
$version
|
||||||
|
)
|
||||||
|
|
||||||
|
# Function to log result of a operation.
|
||||||
|
Function Add-Log($mark, $subject, $message) {
|
||||||
|
if ($mark -eq $tick) {
|
||||||
|
printf "\033[%s;1m%s \033[0m\033[34;1m%s \033[0m\033[90;1m%s \033[0m\n" "32" $mark $subject $message
|
||||||
|
printf "::group::\033[34;1m%s \033[0m\033[90;1m%s \033[0m\n" $extension "Click to read the $extension related license information"
|
||||||
|
printf "Oracle Instant Client package is required for %s extension.\n" $extension
|
||||||
|
printf "It is provided under the Oracle Technology Network Development and Distribution License.\n"
|
||||||
|
printf "Refer to: \033[35;1m%s \033[0m\n" "https://www.oracle.com/downloads/licenses/instant-client-lic.html"
|
||||||
|
Write-Output "::endgroup::"
|
||||||
|
} else {
|
||||||
|
printf "\033[%s;1m%s \033[0m\033[34;1m%s \033[0m\033[90;1m%s \033[0m\n" "31" $mark $subject $message
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$tick = ([char]8730)
|
||||||
|
$cross = ([char]10007)
|
||||||
|
$php_dir = 'C:\tools\php'
|
||||||
|
$status = 'Enabled'
|
||||||
|
if($env:RUNNER -eq 'self-hosted') { $php_dir = "$php_dir$version" }
|
||||||
|
$ext_dir = "$php_dir\ext"
|
||||||
|
$installed = Get-Php -Path $php_dir
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (-not(Test-Path $php_dir\oci.dll)) {
|
||||||
|
$suffix = 'windows'
|
||||||
|
if (-not([Environment]::Is64BitOperatingSystem) -or $version -lt '7.0')
|
||||||
|
{
|
||||||
|
$suffix = 'nt'
|
||||||
|
}
|
||||||
|
Invoke-WebRequest -UseBasicParsing -Uri https://download.oracle.com/otn_software/nt/instantclient/instantclient-basiclite-$suffix.zip -OutFile $php_dir\instantclient.zip
|
||||||
|
Expand-Archive -Path $php_dir\instantclient.zip -DestinationPath $php_dir -Force
|
||||||
|
Copy-Item $php_dir\instantclient*\* $php_dir
|
||||||
|
}
|
||||||
|
if ($extension -eq "pdo_oci") {
|
||||||
|
Enable-PhpExtension pdo_oci -Path $php_dir
|
||||||
|
} else {
|
||||||
|
$status = 'Installed and enabled'
|
||||||
|
$ociVersion = '2.2.0'
|
||||||
|
if ($version -eq '7.0')
|
||||||
|
{
|
||||||
|
$ociVersion = '2.1.8'
|
||||||
|
}
|
||||||
|
elseif ($version -lt '7.0')
|
||||||
|
{
|
||||||
|
$ociVersion = '2.0.12'
|
||||||
|
}
|
||||||
|
$ociUrl = Get-PeclArchiveUrl oci8 $ociVersion $installed
|
||||||
|
Invoke-WebRequest -UseBasicParsing -Uri $ociUrl -OutFile $php_dir\oci8.zip
|
||||||
|
Expand-Archive -Path $php_dir\oci8.zip -DestinationPath $ext_dir -Force
|
||||||
|
Add-Content -Value "`r`nextension=php_oci8.dll" -Path $php_dir\php.ini
|
||||||
|
}
|
||||||
|
Add-Log $tick $extension $status
|
||||||
|
} catch {
|
||||||
|
Add-Log $cross $extension "Could not install $extension on PHP $($installed.FullVersion)"
|
||||||
|
}
|
140
src/scripts/ext/oci.sh
Normal file
140
src/scripts/ext/oci.sh
Normal file
@ -0,0 +1,140 @@
|
|||||||
|
# Function to log result of a operation.
|
||||||
|
add_log() {
|
||||||
|
mark=$1
|
||||||
|
subject=$2
|
||||||
|
message=$3
|
||||||
|
if [ "$mark" = "$tick" ]; then
|
||||||
|
printf "\033[32;1m%s \033[0m\033[34;1m%s \033[0m\033[90;1m%s\033[0m\n" "$mark" "$subject" "$message"
|
||||||
|
printf "::group::\033[34;1m%s \033[0m\033[90;1m%s \033[0m\n" "$ext" "Click to read the $ext related license information"
|
||||||
|
printf "Oracle Instant Client package is required for %s extension.\n" "$ext"
|
||||||
|
printf "It is provided under the Oracle Technology Network Development and Distribution License.\n"
|
||||||
|
printf "Refer to: \033[35;1m%s \033[0m\n" "https://www.oracle.com/downloads/licenses/instant-client-lic.html"
|
||||||
|
echo "::endgroup::"
|
||||||
|
else
|
||||||
|
printf "\033[31;1m%s \033[0m\033[34;1m%s \033[0m\033[90;1m%s\033[0m\n" "$mark" "$subject" "$message"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Function to test if extension is loaded.
|
||||||
|
check_extension() {
|
||||||
|
extension=$1
|
||||||
|
php -m | grep -i -q -w "$extension"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Function to get the tag for a php version.
|
||||||
|
get_tag() {
|
||||||
|
master_version='8.0'
|
||||||
|
tag='master'
|
||||||
|
if [ ! "$version" = "$master_version" ]; then
|
||||||
|
tag="php-$(php -v | head -n 1 | cut -f 2 -d ' ' | cut -f 1 -d '-')"
|
||||||
|
fi
|
||||||
|
echo "$tag"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Function to install instantclient and SDK.
|
||||||
|
install_client() {
|
||||||
|
sudo mkdir -p -m 777 "$oracle_home"
|
||||||
|
if [ ! -e "$oracle_client" ]; then
|
||||||
|
for package in basiclite sdk; do
|
||||||
|
if [ "$os" = 'Linux' ]; then
|
||||||
|
libs='/usr/lib/'
|
||||||
|
os_name='linux'
|
||||||
|
arch='linuxx64'
|
||||||
|
lib_ext='so'
|
||||||
|
elif [ "$os" = 'Darwin' ]; then
|
||||||
|
libs='/usr/local/lib/'
|
||||||
|
os_name='mac'
|
||||||
|
arch='macos'
|
||||||
|
lib_ext='dylib'
|
||||||
|
fi
|
||||||
|
curl -o "/opt/oracle/$package.zip" -sSL "https://download.oracle.com/otn_software/$os_name/instantclient/instantclient-$package-$arch.zip"
|
||||||
|
unzip "/opt/oracle/$package.zip" -d "$oracle_home"
|
||||||
|
done
|
||||||
|
sudo ln -sf /opt/oracle/instantclient*/*.$lib_ext* $libs
|
||||||
|
sudo ln -sf /opt/oracle/instantclient* "$oracle_client"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Function to get PHP source.
|
||||||
|
get_php() {
|
||||||
|
[ ! -d "/opt/oracle/php-src-$tag" ] && curl -sSL "https://github.com/php/php-src/archive/$tag.tar.gz" | tar xzf - -C "$oracle_home/"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Function to get phpize location on darwin.
|
||||||
|
get_phpize() {
|
||||||
|
if [[ "$version" =~ 5.[3-5] ]]; then
|
||||||
|
echo '/opt/local/bin/phpize'
|
||||||
|
else
|
||||||
|
echo "/usr/local/bin/$(readlink /usr/local/bin/phpize)"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Function to patch phpize to link to php headers on darwin.
|
||||||
|
patch_phpize() {
|
||||||
|
if [ "$os" = "Darwin" ]; then
|
||||||
|
sudo cp "$phpize_orig" "$phpize_orig.bck"
|
||||||
|
sudo sed -i '' 's~includedir=.*~includedir="$(xcrun --show-sdk-path)/usr/include/php"~g' "$phpize_orig"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Function to restore phpize.
|
||||||
|
restore_phpize() {
|
||||||
|
if [ "$os" = "Darwin" ]; then
|
||||||
|
sudo mv "$phpize_orig.bck" "$phpize_orig" || true
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Function to patch pdo_oci.
|
||||||
|
patch_pdo_oci_config() {
|
||||||
|
curl -sSLO https://raw.githubusercontent.com/php/php-src/master/ext/pdo_oci/config.m4
|
||||||
|
sudo sed -i '' "/PHP_CHECK_PDO_INCLUDES/d" config.m4 || sudo sed -i "/PHP_CHECK_PDO_INCLUDES/d" config.m4
|
||||||
|
}
|
||||||
|
|
||||||
|
# Function to install the dependencies.
|
||||||
|
install_dependencies() {
|
||||||
|
if [ "$os" = 'Linux' ]; then
|
||||||
|
if [ "$runner" = "self-hosted" ] || [ "$RUNNER" = "self-hosted" ]; then
|
||||||
|
sudo DEBIAN_FRONTEND=noninteractive apt-fast install -y autoconf automake libaio-dev gcc g++ php"$version"-dev
|
||||||
|
else
|
||||||
|
sudo DEBIAN_FRONTEND=noninteractive apt-fast install -y php"$version"-dev
|
||||||
|
fi
|
||||||
|
sudo update-alternatives --set php-config /usr/bin/php-config"$version"
|
||||||
|
sudo update-alternatives --set phpize /usr/bin/phpize"$version"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Function to install the extension.
|
||||||
|
install_extension() {
|
||||||
|
if ! [ -e "$ext_dir/$ext.so" ]; then
|
||||||
|
(
|
||||||
|
status='Installed and enabled'
|
||||||
|
phpize_orig=$(get_phpize)
|
||||||
|
tag=$(get_tag)
|
||||||
|
get_php
|
||||||
|
patch_phpize
|
||||||
|
cd "/opt/oracle/php-src-$tag/ext/$ext" || exit 1
|
||||||
|
[ "$ext" = "pdo_oci" ] && patch_pdo_oci_config
|
||||||
|
sudo phpize && ./configure --with-php-config="$(command -v php-config)" --with-"${ext/_/-}"=instantclient,"$oracle_client"
|
||||||
|
sudo make -j"$(nproc)"
|
||||||
|
sudo cp ./modules/* "$ext_dir/"
|
||||||
|
restore_phpize
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
echo "extension=$ext.so" | sudo tee "$scan_dir/99-$ext.ini"
|
||||||
|
}
|
||||||
|
|
||||||
|
ext=$1
|
||||||
|
version=$2
|
||||||
|
tick='✓'
|
||||||
|
cross='✗'
|
||||||
|
status='Enabled'
|
||||||
|
oracle_home='/opt/oracle'
|
||||||
|
oracle_client=$oracle_home/instantclient
|
||||||
|
runner="${runner:-github}" && RUNNER="${RUNNER:-github}"
|
||||||
|
os=$(uname -s)
|
||||||
|
scan_dir=$(php --ini | grep additional | sed -e "s|.*: s*||")
|
||||||
|
ext_dir=$(php -i | grep "extension_dir => /" | sed -e "s|.*=> s*||")
|
||||||
|
install_client >/dev/null 2>&1
|
||||||
|
install_dependencies >/dev/null 2>&1
|
||||||
|
install_extension >/dev/null 2>&1
|
||||||
|
(check_extension "$ext" && add_log "$tick" "$ext" "$status") || add_log "$cross" "$ext" "Could not install $ext"
|
@ -25,9 +25,20 @@ read_env() {
|
|||||||
[ "$runner" = false ] && [[ -n ${RUNNER} ]] && runner="${RUNNER}"
|
[ "$runner" = false ] && [[ -n ${RUNNER} ]] && runner="${RUNNER}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Function to backup and cleanup package lists.
|
||||||
|
cleanup_lists() {
|
||||||
|
if [ ! -e /etc/apt/sources.list.d.save ]; then
|
||||||
|
sudo mv /etc/apt/sources.list.d /etc/apt/sources.list.d.save
|
||||||
|
sudo mkdir /etc/apt/sources.list.d
|
||||||
|
sudo mv /etc/apt/sources.list.d.save/*ondrej*.list /etc/apt/sources.list.d/
|
||||||
|
trap "sudo mv /etc/apt/sources.list.d.save/*.list /etc/apt/sources.list.d/" exit
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# Function to update the package lists.
|
# Function to update the package lists.
|
||||||
update_lists() {
|
update_lists() {
|
||||||
if [ "$lists_updated" = "false" ]; then
|
if [ "$lists_updated" = "false" ]; then
|
||||||
|
cleanup_lists
|
||||||
sudo "$debconf_fix" apt-get update >/dev/null 2>&1
|
sudo "$debconf_fix" apt-get update >/dev/null 2>&1
|
||||||
lists_updated="true"
|
lists_updated="true"
|
||||||
fi
|
fi
|
||||||
@ -36,6 +47,7 @@ update_lists() {
|
|||||||
# Function to add ppa:ondrej/php.
|
# Function to add ppa:ondrej/php.
|
||||||
add_ppa() {
|
add_ppa() {
|
||||||
if ! apt-cache policy | grep -q ondrej/php; then
|
if ! apt-cache policy | grep -q ondrej/php; then
|
||||||
|
cleanup_lists
|
||||||
LC_ALL=C.UTF-8 sudo apt-add-repository ppa:ondrej/php -y
|
LC_ALL=C.UTF-8 sudo apt-add-repository ppa:ondrej/php -y
|
||||||
if [ "$DISTRIB_RELEASE" = "16.04" ]; then
|
if [ "$DISTRIB_RELEASE" = "16.04" ]; then
|
||||||
sudo "$debconf_fix" apt-get update
|
sudo "$debconf_fix" apt-get update
|
||||||
@ -68,10 +80,10 @@ configure_pecl() {
|
|||||||
# Fuction to get the PECL version of an extension.
|
# Fuction to get the PECL version of an extension.
|
||||||
get_pecl_version() {
|
get_pecl_version() {
|
||||||
extension=$1
|
extension=$1
|
||||||
stability=$2
|
stability="$(echo "$2" | grep -m 1 -Eio "(alpha|beta|rc|snapshot)")"
|
||||||
pecl_rest='https://pecl.php.net/rest/r/'
|
pecl_rest='https://pecl.php.net/rest/r/'
|
||||||
response=$(curl -q -sSL "$pecl_rest$extension"/allreleases.xml)
|
response=$(curl -q -sSL "$pecl_rest$extension"/allreleases.xml)
|
||||||
pecl_version=$(echo "$response" | grep -m 1 -Po "(\d*\.\d*\.\d*$stability\d*)")
|
pecl_version=$(echo "$response" | grep -m 1 -Pio "(\d*\.\d*\.\d*$stability\d*)")
|
||||||
if [ ! "$pecl_version" ]; then
|
if [ ! "$pecl_version" ]; then
|
||||||
pecl_version=$(echo "$response" | grep -m 1 -Po "(\d*\.\d*\.\d*)")
|
pecl_version=$(echo "$response" | grep -m 1 -Po "(\d*\.\d*\.\d*)")
|
||||||
fi
|
fi
|
||||||
@ -127,7 +139,7 @@ add_pdo_extension() {
|
|||||||
else
|
else
|
||||||
read -r ext ext_name <<< "$1 $1"
|
read -r ext ext_name <<< "$1 $1"
|
||||||
sudo rm -rf "$scan_dir"/*pdo.ini >/dev/null 2>&1
|
sudo rm -rf "$scan_dir"/*pdo.ini >/dev/null 2>&1
|
||||||
if ! check_extension "pdo"; then echo "extension=pdo.so" >> "$ini_file"; fi
|
if ! check_extension "pdo" 2>/dev/null; then echo "extension=pdo.so" >> "$ini_file"; fi
|
||||||
if [ "$ext" = "mysql" ]; then
|
if [ "$ext" = "mysql" ]; then
|
||||||
enable_extension "mysqlnd" "extension"
|
enable_extension "mysqlnd" "extension"
|
||||||
ext_name="mysqli"
|
ext_name="mysqli"
|
||||||
@ -167,6 +179,9 @@ add_pecl_extension() {
|
|||||||
extension=$1
|
extension=$1
|
||||||
pecl_version=$2
|
pecl_version=$2
|
||||||
prefix=$3
|
prefix=$3
|
||||||
|
if [[ $pecl_version =~ .*(alpha|beta|rc|snapshot).* ]]; then
|
||||||
|
pecl_version=$(get_pecl_version "$extension" "$pecl_version")
|
||||||
|
fi
|
||||||
if ! check_extension "$extension" && [ -e "$ext_dir/$extension.so" ]; then
|
if ! check_extension "$extension" && [ -e "$ext_dir/$extension.so" ]; then
|
||||||
echo "$prefix=$ext_dir/$extension.so" >>"$pecl_file"
|
echo "$prefix=$ext_dir/$extension.so" >>"$pecl_file"
|
||||||
fi
|
fi
|
||||||
@ -228,6 +243,26 @@ add_extension_from_source() {
|
|||||||
) || add_log "$cross" "$extension" "Could not install $extension-$release on PHP $semver"
|
) || add_log "$cross" "$extension" "Could not install $extension-$release on PHP $semver"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Function to configure composer
|
||||||
|
configure_composer() {
|
||||||
|
tool_path=$1
|
||||||
|
sudo ln -sf "$tool_path" "$tool_path.phar"
|
||||||
|
php -r "try {\$p=new Phar('$tool_path.phar', 0);exit(0);} catch(Exception \$e) {exit(1);}"
|
||||||
|
if [ $? -eq 1 ]; then
|
||||||
|
add_log "$cross" "composer" "Could not download composer"
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
composer -q global config process-timeout 0
|
||||||
|
echo "::add-path::/home/$USER/.composer/vendor/bin"
|
||||||
|
if [ -n "$COMPOSER_TOKEN" ]; then
|
||||||
|
composer -q global config github-oauth.github.com "$COMPOSER_TOKEN"
|
||||||
|
fi
|
||||||
|
# TODO: Remove after composer 2.0 update, fixes peer fingerprint error
|
||||||
|
if [[ "$version" =~ $old_versions ]]; then
|
||||||
|
composer -q global config repos.packagist composer https://repo-ca-bhs-1.packagist.org
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# Function to setup a remote tool.
|
# Function to setup a remote tool.
|
||||||
add_tool() {
|
add_tool() {
|
||||||
url=$1
|
url=$1
|
||||||
@ -240,15 +275,7 @@ add_tool() {
|
|||||||
if [ "$status_code" = "200" ]; then
|
if [ "$status_code" = "200" ]; then
|
||||||
sudo chmod a+x "$tool_path"
|
sudo chmod a+x "$tool_path"
|
||||||
if [ "$tool" = "composer" ]; then
|
if [ "$tool" = "composer" ]; then
|
||||||
composer -q global config process-timeout 0
|
configure_composer "$tool_path"
|
||||||
echo "::add-path::/home/$USER/.composer/vendor/bin"
|
|
||||||
if [ -n "$COMPOSER_TOKEN" ]; then
|
|
||||||
composer -q global config github-oauth.github.com "$COMPOSER_TOKEN"
|
|
||||||
fi
|
|
||||||
# TODO: Remove after composer 2.0 update, fixes peer fingerprint error
|
|
||||||
if [[ "$version" =~ $old_versions ]]; then
|
|
||||||
composer -q global config repos.packagist composer https://repo-ca-bhs-1.packagist.org
|
|
||||||
fi
|
|
||||||
elif [ "$tool" = "cs2pr" ]; then
|
elif [ "$tool" = "cs2pr" ]; then
|
||||||
sudo sed -i 's/\r$//; s/exit(9)/exit(0)/' "$tool_path"
|
sudo sed -i 's/\r$//; s/exit(9)/exit(0)/' "$tool_path"
|
||||||
elif [ "$tool" = "phan" ]; then
|
elif [ "$tool" = "phan" ]; then
|
||||||
@ -300,7 +327,7 @@ add_blackfire() {
|
|||||||
sudo /etc/init.d/blackfire-agent restart >/dev/null 2>&1
|
sudo /etc/init.d/blackfire-agent restart >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
if [[ -n $BLACKFIRE_CLIENT_ID ]] && [[ -n $BLACKFIRE_CLIENT_TOKEN ]]; then
|
if [[ -n $BLACKFIRE_CLIENT_ID ]] && [[ -n $BLACKFIRE_CLIENT_TOKEN ]]; then
|
||||||
sudo blackfire config --client-id="$BLACKFIRE_CLIENT_ID" --client-token="$BLACKFIRE_CLIENT_TOKEN" >/dev/null 2>&1
|
blackfire config --client-id="$BLACKFIRE_CLIENT_ID" --client-token="$BLACKFIRE_CLIENT_TOKEN" >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
add_log "$tick" "blackfire" "Added"
|
add_log "$tick" "blackfire" "Added"
|
||||||
add_log "$tick" "blackfire-agent" "Added"
|
add_log "$tick" "blackfire-agent" "Added"
|
||||||
@ -349,8 +376,8 @@ php_semver() {
|
|||||||
# Function to install packaged PHP
|
# Function to install packaged PHP
|
||||||
add_packaged_php() {
|
add_packaged_php() {
|
||||||
update_lists
|
update_lists
|
||||||
IFS=' ' read -r -a packages <<< "$(echo "curl mbstring xml intl" | sed "s/[^ ]*/php$version-&/g")"
|
IFS=' ' read -r -a packages <<< "$(echo "cli curl mbstring xml intl" | sed "s/[^ ]*/php$version-&/g")"
|
||||||
$apt_install php"$version" "${packages[@]}"
|
$apt_install "${packages[@]}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Function to update PHP.
|
# Function to update PHP.
|
||||||
|
@ -77,8 +77,8 @@ Function Get-CleanPSProfile {
|
|||||||
Function Install-PhpManager() {
|
Function Install-PhpManager() {
|
||||||
$repo = "mlocati/powershell-phpmanager"
|
$repo = "mlocati/powershell-phpmanager"
|
||||||
$tag = (Invoke-RestMethod https://api.github.com/repos/$repo/tags)[0].Name
|
$tag = (Invoke-RestMethod https://api.github.com/repos/$repo/tags)[0].Name
|
||||||
$module_path = "$bin_dir\PhpManager\powershell-phpmanager-$tag\PhpManager"
|
$module_path = "$bin_dir\PhpManager\powershell-phpmanager-$tag\PhpManager\PhpManager.psm1"
|
||||||
if(-not (Test-Path $module_path\PhpManager.psm1 -PathType Leaf)) {
|
if(-not (Test-Path $module_path -PathType Leaf)) {
|
||||||
$zip_file = "$bin_dir\PhpManager.zip"
|
$zip_file = "$bin_dir\PhpManager.zip"
|
||||||
Invoke-WebRequest -UseBasicParsing -Uri https://github.com/$repo/archive/$tag.zip -OutFile $zip_file
|
Invoke-WebRequest -UseBasicParsing -Uri https://github.com/$repo/archive/$tag.zip -OutFile $zip_file
|
||||||
Expand-Archive -Path $zip_file -DestinationPath $bin_dir\PhpManager -Force
|
Expand-Archive -Path $zip_file -DestinationPath $bin_dir\PhpManager -Force
|
||||||
@ -99,7 +99,7 @@ Function Add-Extension {
|
|||||||
[ValidateNotNull()]
|
[ValidateNotNull()]
|
||||||
[ValidateSet('stable', 'beta', 'alpha', 'devel', 'snapshot')]
|
[ValidateSet('stable', 'beta', 'alpha', 'devel', 'snapshot')]
|
||||||
[string]
|
[string]
|
||||||
$mininum_stability = 'stable',
|
$stability = 'stable',
|
||||||
[Parameter(Position = 2, Mandatory = $false)]
|
[Parameter(Position = 2, Mandatory = $false)]
|
||||||
[ValidateNotNull()]
|
[ValidateNotNull()]
|
||||||
[ValidatePattern('^\d+(\.\d+){0,2}$')]
|
[ValidatePattern('^\d+(\.\d+){0,2}$')]
|
||||||
@ -124,9 +124,9 @@ Function Add-Extension {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if($extension_version -ne '') {
|
if($extension_version -ne '') {
|
||||||
Install-PhpExtension -Extension $extension -Version $extension_version -MinimumStability $mininum_stability -Path $php_dir
|
Install-PhpExtension -Extension $extension -Version $extension_version -MinimumStability $stability -MaximumStability $stability -Path $php_dir
|
||||||
} else {
|
} else {
|
||||||
Install-PhpExtension -Extension $extension -MinimumStability $mininum_stability -Path $php_dir
|
Install-PhpExtension -Extension $extension -MinimumStability $stability -MaximumStability $stability -Path $php_dir
|
||||||
}
|
}
|
||||||
|
|
||||||
Add-Log $tick $extension "Installed and enabled"
|
Add-Log $tick $extension "Installed and enabled"
|
||||||
@ -161,6 +161,31 @@ Function Remove-Extension() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Function Edit-ComposerConfig() {
|
||||||
|
Param(
|
||||||
|
[Parameter(Position = 0, Mandatory = $true)]
|
||||||
|
[ValidateNotNull()]
|
||||||
|
[ValidateLength(1, [int]::MaxValue)]
|
||||||
|
[string]
|
||||||
|
$tool_path
|
||||||
|
)
|
||||||
|
Copy-Item $tool_path -Destination "$tool_path.phar"
|
||||||
|
php -r "try {`$p=new Phar('$tool_path.phar', 0);exit(0);} catch(Exception `$e) {exit(1);}"
|
||||||
|
if ($? -eq $False) {
|
||||||
|
Add-Log "$cross" "composer" "Could not download composer"
|
||||||
|
exit 1;
|
||||||
|
}
|
||||||
|
composer -q global config process-timeout 0
|
||||||
|
Write-Output "::add-path::$env:APPDATA\Composer\vendor\bin"
|
||||||
|
if (Test-Path env:COMPOSER_TOKEN) {
|
||||||
|
composer -q global config github-oauth.github.com $env:COMPOSER_TOKEN
|
||||||
|
}
|
||||||
|
# TODO: Remove after composer 2.0 update, fixes peer fingerprint error
|
||||||
|
if ($version -lt 5.6) {
|
||||||
|
composer -q global config repos.packagist composer https://repo-ca-bhs-1.packagist.org
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Function to add tools.
|
# Function to add tools.
|
||||||
Function Add-Tool() {
|
Function Add-Tool() {
|
||||||
Param (
|
Param (
|
||||||
@ -201,15 +226,7 @@ Function Add-Tool() {
|
|||||||
} elseif($tool -eq "cs2pr") {
|
} elseif($tool -eq "cs2pr") {
|
||||||
(Get-Content $bin_dir/cs2pr).replace('exit(9)', 'exit(0)') | Set-Content $bin_dir/cs2pr
|
(Get-Content $bin_dir/cs2pr).replace('exit(9)', 'exit(0)') | Set-Content $bin_dir/cs2pr
|
||||||
} elseif($tool -eq "composer") {
|
} elseif($tool -eq "composer") {
|
||||||
composer -q global config process-timeout 0
|
Edit-ComposerConfig $bin_dir\$tool
|
||||||
Write-Output "::add-path::$env:APPDATA\Composer\vendor\bin"
|
|
||||||
if (Test-Path env:COMPOSER_TOKEN) {
|
|
||||||
composer -q global config github-oauth.github.com $env:COMPOSER_TOKEN
|
|
||||||
}
|
|
||||||
# TODO: Remove after composer 2.0 update, fixes peer fingerprint error
|
|
||||||
if ($version -lt 5.6) {
|
|
||||||
composer -q global config repos.packagist composer https://repo-ca-bhs-1.packagist.org
|
|
||||||
}
|
|
||||||
} elseif($tool -eq "wp-cli") {
|
} elseif($tool -eq "wp-cli") {
|
||||||
Copy-Item $bin_dir\wp-cli.bat -Destination $bin_dir\wp.bat
|
Copy-Item $bin_dir\wp-cli.bat -Destination $bin_dir\wp.bat
|
||||||
}
|
}
|
||||||
@ -355,7 +372,11 @@ if ($null -eq $installed -or -not("$($installed.Version).".StartsWith(($version
|
|||||||
|
|
||||||
$installed = Get-Php -Path $php_dir
|
$installed = Get-Php -Path $php_dir
|
||||||
Set-PhpIniKey -Key 'date.timezone' -Value 'UTC' -Path $php_dir
|
Set-PhpIniKey -Key 'date.timezone' -Value 'UTC' -Path $php_dir
|
||||||
|
Set-PhpIniKey -Key 'memory_limit' -Value '-1' -Path $php_dir
|
||||||
if($version -lt "5.5") {
|
if($version -lt "5.5") {
|
||||||
|
ForEach($lib in "libeay32.dll", "ssleay32.dll") {
|
||||||
|
Invoke-WebRequest -UseBasicParsing -Uri https://dl.bintray.com/shivammathur/php/$lib -OutFile $php_dir\$lib >$null 2>&1
|
||||||
|
}
|
||||||
Enable-PhpExtension -Extension openssl, curl, mbstring -Path $php_dir
|
Enable-PhpExtension -Extension openssl, curl, mbstring -Path $php_dir
|
||||||
} else {
|
} else {
|
||||||
Enable-PhpExtension -Extension openssl, curl, opcache, mbstring -Path $php_dir
|
Enable-PhpExtension -Extension openssl, curl, opcache, mbstring -Path $php_dir
|
||||||
|
172
src/tools.ts
172
src/tools.ts
@ -1,4 +1,6 @@
|
|||||||
import * as utils from './utils';
|
import * as utils from './utils';
|
||||||
|
import * as httpm from '@actions/http-client';
|
||||||
|
import {IHttpClientResponse as hcr} from '@actions/http-client/interfaces';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function to get command to setup tools
|
* Function to get command to setup tools
|
||||||
@ -319,27 +321,28 @@ export async function addComposer(tools_list: string[]): Promise<string[]> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function to get script to update composer
|
* Function to get composer URL for a given version
|
||||||
*
|
*
|
||||||
* @param version
|
* @param version
|
||||||
* @param os_version
|
|
||||||
*/
|
*/
|
||||||
export async function updateComposer(
|
export async function getComposerUrl(version: string): Promise<string> {
|
||||||
version: string,
|
const getComposerUrlHelper = async function (
|
||||||
os_version: string
|
version: string
|
||||||
): Promise<string> {
|
): Promise<string> {
|
||||||
|
const client: httpm.HttpClient = new httpm.HttpClient('setup-php');
|
||||||
|
const response: hcr = await client.get('https://getcomposer.org/versions');
|
||||||
|
const data = JSON.parse(await response.readBody());
|
||||||
|
return 'https://getcomposer.org' + data[version][0]['path'];
|
||||||
|
};
|
||||||
switch (version) {
|
switch (version) {
|
||||||
case 'snapshot':
|
case 'snapshot':
|
||||||
|
return 'https://getcomposer.org/composer.phar';
|
||||||
case 'preview':
|
case 'preview':
|
||||||
case '1':
|
case '1':
|
||||||
case '2':
|
case '2':
|
||||||
return (
|
return await getComposerUrlHelper(version);
|
||||||
'\ncomposer self-update --' +
|
|
||||||
version +
|
|
||||||
(await utils.suppressOutput(os_version))
|
|
||||||
);
|
|
||||||
default:
|
default:
|
||||||
return '';
|
return 'https://getcomposer.org/composer-stable.phar';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -474,80 +477,21 @@ export async function addTools(
|
|||||||
url = await getPharUrl('https://get.blackfire.io', tool, 'v', version);
|
url = await getPharUrl('https://get.blackfire.io', tool, 'v', version);
|
||||||
script += await addArchive(tool, version, url, os_version);
|
script += await addArchive(tool, version, url, os_version);
|
||||||
break;
|
break;
|
||||||
case 'cs2pr':
|
|
||||||
uri = await getUri(tool, '', version, 'releases', '', 'download');
|
|
||||||
url = github + 'staabm/annotate-pull-request-from-checkstyle/' + uri;
|
|
||||||
script += await addArchive(tool, version, url, os_version);
|
|
||||||
break;
|
|
||||||
case 'infection':
|
|
||||||
url = github + 'infection/infection/' + uri;
|
|
||||||
script += await addArchive(tool, version, url, os_version);
|
|
||||||
break;
|
|
||||||
case 'php-cs-fixer':
|
|
||||||
uri = await getUri(tool, '.phar', version, 'releases', 'v', 'download');
|
|
||||||
url = github + 'FriendsOfPHP/PHP-CS-Fixer/' + uri;
|
|
||||||
script += await addArchive(tool, version, url, os_version);
|
|
||||||
break;
|
|
||||||
case 'phpcs':
|
|
||||||
case 'phpcbf':
|
|
||||||
url = github + 'squizlabs/PHP_CodeSniffer/' + uri;
|
|
||||||
script += await addArchive(tool, version, url, os_version);
|
|
||||||
break;
|
|
||||||
case 'phan':
|
|
||||||
url = github + 'phan/phan/' + uri;
|
|
||||||
script += await addArchive(tool, version, url, os_version);
|
|
||||||
break;
|
|
||||||
case 'phive':
|
|
||||||
script += await addPhive(version, os_version);
|
|
||||||
break;
|
|
||||||
case 'phpstan':
|
|
||||||
url = github + 'phpstan/phpstan/' + uri;
|
|
||||||
script += await addArchive(tool, version, url, os_version);
|
|
||||||
break;
|
|
||||||
case 'phpmd':
|
|
||||||
url = github + 'phpmd/phpmd/' + uri;
|
|
||||||
script += await addArchive(tool, version, url, os_version);
|
|
||||||
break;
|
|
||||||
case 'psalm':
|
|
||||||
url = github + 'vimeo/psalm/' + uri;
|
|
||||||
script += await addArchive(tool, version, url, os_version);
|
|
||||||
break;
|
|
||||||
case 'composer':
|
|
||||||
url = 'https://getcomposer.org/composer-stable.phar';
|
|
||||||
script +=
|
|
||||||
(await addArchive('composer', version, url, os_version)) +
|
|
||||||
(await updateComposer(version, os_version));
|
|
||||||
break;
|
|
||||||
case 'codeception':
|
case 'codeception':
|
||||||
url =
|
url =
|
||||||
'https://codeception.com/' +
|
'https://codeception.com/' +
|
||||||
(await getCodeceptionUri(version, php_version));
|
(await getCodeceptionUri(version, php_version));
|
||||||
script += await addArchive(tool, version, url, os_version);
|
script += await addArchive(tool, version, url, os_version);
|
||||||
break;
|
break;
|
||||||
case 'phpcpd':
|
case 'composer':
|
||||||
case 'phpunit':
|
url = await getComposerUrl(version);
|
||||||
url = await getPharUrl('https://phar.phpunit.de', tool, '', version);
|
script += await addArchive('composer', version, url, os_version);
|
||||||
|
break;
|
||||||
|
case 'composer-normalize':
|
||||||
|
uri = await getUri(tool, '.phar', version, 'releases', '', 'download');
|
||||||
|
url = github + 'ergebnis/composer-normalize/' + uri;
|
||||||
script += await addArchive(tool, version, url, os_version);
|
script += await addArchive(tool, version, url, os_version);
|
||||||
break;
|
break;
|
||||||
case 'deployer':
|
|
||||||
url = await getDeployerUrl(version);
|
|
||||||
script += await addArchive(tool, version, url, os_version);
|
|
||||||
break;
|
|
||||||
case 'flex':
|
|
||||||
script += await addPackage(tool, release, 'symfony/', os_version);
|
|
||||||
break;
|
|
||||||
case 'phinx':
|
|
||||||
script += await addPackage(tool, release, 'robmorgan/', os_version);
|
|
||||||
break;
|
|
||||||
case 'phplint':
|
|
||||||
script += await addPackage(tool, release, 'overtrue/', os_version);
|
|
||||||
break;
|
|
||||||
case 'prestissimo':
|
|
||||||
script += await addPackage(tool, release, 'hirak/', os_version);
|
|
||||||
break;
|
|
||||||
case 'vapor-cli':
|
|
||||||
script += await addPackage(tool, release, 'laravel/', os_version);
|
|
||||||
break;
|
|
||||||
case 'composer-prefetcher':
|
case 'composer-prefetcher':
|
||||||
script += await addPackage(
|
script += await addPackage(
|
||||||
tool,
|
tool,
|
||||||
@ -556,19 +500,91 @@ export async function addTools(
|
|||||||
os_version
|
os_version
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
case 'composer-require-checker':
|
||||||
|
uri = await getUri(tool, '.phar', version, 'releases', '', 'download');
|
||||||
|
url = github + 'maglnet/ComposerRequireChecker/' + uri;
|
||||||
|
script += await addArchive(tool, version, url, os_version);
|
||||||
|
break;
|
||||||
|
case 'composer-unused':
|
||||||
|
uri = await getUri(tool, '.phar', version, 'releases', '', 'download');
|
||||||
|
url = github + 'composer-unused/composer-unused/' + uri;
|
||||||
|
script += await addArchive(tool, version, url, os_version);
|
||||||
|
break;
|
||||||
|
case 'cs2pr':
|
||||||
|
uri = await getUri(tool, '', version, 'releases', '', 'download');
|
||||||
|
url = github + 'staabm/annotate-pull-request-from-checkstyle/' + uri;
|
||||||
|
script += await addArchive(tool, version, url, os_version);
|
||||||
|
break;
|
||||||
|
case 'deployer':
|
||||||
|
url = await getDeployerUrl(version);
|
||||||
|
script += await addArchive(tool, version, url, os_version);
|
||||||
|
break;
|
||||||
|
case 'flex':
|
||||||
|
script += await addPackage(tool, release, 'symfony/', os_version);
|
||||||
|
break;
|
||||||
|
case 'infection':
|
||||||
|
url = github + 'infection/infection/' + uri;
|
||||||
|
script += await addArchive(tool, version, url, os_version);
|
||||||
|
break;
|
||||||
case 'pecl':
|
case 'pecl':
|
||||||
script += await getCommand(os_version, 'pecl');
|
script += await getCommand(os_version, 'pecl');
|
||||||
break;
|
break;
|
||||||
|
case 'phan':
|
||||||
|
url = github + 'phan/phan/' + uri;
|
||||||
|
script += await addArchive(tool, version, url, os_version);
|
||||||
|
break;
|
||||||
|
case 'phinx':
|
||||||
|
script += await addPackage(tool, release, 'robmorgan/', os_version);
|
||||||
|
break;
|
||||||
|
case 'phive':
|
||||||
|
script += await addPhive(version, os_version);
|
||||||
|
break;
|
||||||
case 'php-config':
|
case 'php-config':
|
||||||
case 'phpize':
|
case 'phpize':
|
||||||
script += await addDevTools(tool, os_version);
|
script += await addDevTools(tool, os_version);
|
||||||
break;
|
break;
|
||||||
|
case 'php-cs-fixer':
|
||||||
|
uri = await getUri(tool, '.phar', version, 'releases', 'v', 'download');
|
||||||
|
url = github + 'FriendsOfPHP/PHP-CS-Fixer/' + uri;
|
||||||
|
script += await addArchive(tool, version, url, os_version);
|
||||||
|
break;
|
||||||
|
case 'phpcbf':
|
||||||
|
case 'phpcs':
|
||||||
|
url = github + 'squizlabs/PHP_CodeSniffer/' + uri;
|
||||||
|
script += await addArchive(tool, version, url, os_version);
|
||||||
|
break;
|
||||||
|
case 'phpcpd':
|
||||||
|
case 'phpunit':
|
||||||
|
url = await getPharUrl('https://phar.phpunit.de', tool, '', version);
|
||||||
|
script += await addArchive(tool, version, url, os_version);
|
||||||
|
break;
|
||||||
|
case 'phplint':
|
||||||
|
script += await addPackage(tool, release, 'overtrue/', os_version);
|
||||||
|
break;
|
||||||
|
case 'phpmd':
|
||||||
|
url = github + 'phpmd/phpmd/' + uri;
|
||||||
|
script += await addArchive(tool, version, url, os_version);
|
||||||
|
break;
|
||||||
|
case 'phpstan':
|
||||||
|
url = github + 'phpstan/phpstan/' + uri;
|
||||||
|
script += await addArchive(tool, version, url, os_version);
|
||||||
|
break;
|
||||||
|
case 'prestissimo':
|
||||||
|
script += await addPackage(tool, release, 'hirak/', os_version);
|
||||||
|
break;
|
||||||
|
case 'psalm':
|
||||||
|
url = github + 'vimeo/psalm/' + uri;
|
||||||
|
script += await addArchive(tool, version, url, os_version);
|
||||||
|
break;
|
||||||
case 'symfony':
|
case 'symfony':
|
||||||
case 'symfony-cli':
|
case 'symfony-cli':
|
||||||
uri = await getSymfonyUri(version, os_version);
|
uri = await getSymfonyUri(version, os_version);
|
||||||
url = github + 'symfony/cli/' + uri;
|
url = github + 'symfony/cli/' + uri;
|
||||||
script += await addArchive('symfony', version, url, os_version);
|
script += await addArchive('symfony', version, url, os_version);
|
||||||
break;
|
break;
|
||||||
|
case 'vapor-cli':
|
||||||
|
script += await addPackage(tool, release, 'laravel/', os_version);
|
||||||
|
break;
|
||||||
case 'wp-cli':
|
case 'wp-cli':
|
||||||
url = github + (await getWpCliUrl(version));
|
url = github + (await getWpCliUrl(version));
|
||||||
script += await addArchive(tool, version, url, os_version);
|
script += await addArchive(tool, version, url, os_version);
|
||||||
|
Loading…
Reference in New Issue
Block a user