setup-php 1.11.4 → 1.11.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -28,7 +28,6 @@ Setup PHP with required extensions, php.ini configuration, code-coverage support
28
28
  - [Usage](#memo-usage)
29
29
  - [Basic Setup](#basic-setup)
30
30
  - [Matrix Setup](#matrix-setup)
31
- - [Nightly Build Setup](#nightly-build-setup)
32
31
  - [Thread Safe Setup](#thread-safe-setup)
33
32
  - [Cache Dependencies](#cache-dependencies)
34
33
  - [Composer GitHub OAuth](#composer-github-oauth)
@@ -42,28 +41,27 @@ Setup PHP with required extensions, php.ini configuration, code-coverage support
42
41
 
43
42
  ## :tada: PHP Support
44
43
 
45
- |PHP Version|Stability|Release Support|
46
- |--- |--- |--- |
47
- |5.6|`Stable`|`End of life`|
48
- |7.0|`Stable`|`End of life`|
49
- |7.1|`Stable`|`End of life`|
50
- |7.2|`Stable`|`Security fixes only`|
51
- |7.3|`Stable`|`Active`|
52
- |7.4|`Stable`|`Active`|
53
- |8.0|`Nightly`|`In development`|
54
-
55
- **Note:** Specifying `8.0` in `php-version` input installs a nightly build of `PHP 8.0.0-dev` with `PHP JIT`, `Union Types v2` and other [new features](https://wiki.php.net/rfc#php_80 "New features implemented in PHP 8"). See [nightly build setup](#nightly-build-setup) for more information.
44
+ | PHP Version | Stability | Release Support |
45
+ |-------------|-----------|-----------------------|
46
+ | 5.6 | `Stable` | `End of life` |
47
+ | 7.0 | `Stable` | `End of life` |
48
+ | 7.1 | `Stable` | `End of life` |
49
+ | 7.2 | `Stable` | `End of life` |
50
+ | 7.3 | `Stable` | `End of life` |
51
+ | 7.4 | `Stable` | `Security fixes only` |
52
+ | 8.0 | `Stable` | `Active` |
56
53
 
57
54
  ## :cloud: GitHub-Hosted Runner Support
58
55
 
59
- |Virtual environment|YAML workflow label|Pre-installed PHP|
60
- |--- |--- |--- |
61
- |Ubuntu 18.04|`ubuntu-18.04`|`PHP 7.1` to `PHP 8.0`|
62
- |Ubuntu 20.04|`ubuntu-latest` or `ubuntu-20.04`|`PHP 7.4` to `PHP 8.0`|
63
- |Windows Server 2019|`windows-latest` or `windows-2019`|`PHP 8.0`|
64
- |Windows Server 2022|`windows-2022`|`PHP 8.0`|
65
- |macOS 10.15 Catalina|`macos-latest` or `macos-10.15`|`PHP 8.0`|
66
- |macOS 11.x Big Sur|`macos-11`|`PHP 8.0`|
56
+ | Virtual environment | YAML workflow label | Pre-installed PHP |
57
+ |----------------------|------------------------------------|------------------------|
58
+ | Ubuntu 20.04 | `ubuntu-latest` or `ubuntu-20.04` | `PHP 7.4` to `PHP 8.1` |
59
+ | Ubuntu 18.04 | `ubuntu-18.04` | `PHP 7.2` to `PHP 8.1` |
60
+ | Windows Server 2022 | `windows-latest` or `windows-2022` | `PHP 8.1` |
61
+ | Windows Server 2019 | `windows-2019` | `PHP 8.1` |
62
+ | macOS Monterey 12.x | `macos-12` | `PHP 8.1` |
63
+ | macOS Big Sur 11.x | `macos-latest` or `macos-11` | `PHP 8.1` |
64
+ | macOS Catalina 10.15 | `macos-10.15` | `PHP 8.1` |
67
65
 
68
66
  ## :heavy_plus_sign: PHP Extension Support
69
67
  - On `ubuntu` by default extensions which are available as a package can be installed. If the extension is not available as a package but it is on `PECL`, it can be installed by specifying `pecl` in the tools input.
@@ -214,29 +212,6 @@ jobs:
214
212
  tools: php-cs-fixer, phpunit #optional, setup tools globally
215
213
  ```
216
214
 
217
- ### Nightly Build Setup
218
-
219
- > Setup a nightly build of `PHP 8.0.0-dev` from the [master branch](https://github.com/php/php-src/tree/master "Master branch on PHP source repository") of PHP.
220
-
221
- - Some extensions might not support this version currently.
222
- - Refer to this [RFC](https://wiki.php.net/rfc/jit "PHP JIT RFC configuration") for configuring `PHP JIT` on this version.
223
- - Refer to this [list of RFCs](https://wiki.php.net/rfc#php_80 "List of RFCs implemented in PHP8") implemented in this version.
224
-
225
- ```yaml
226
- steps:
227
- - name: Checkout
228
- uses: actions/checkout@v2
229
-
230
- - name: Setup PHP
231
- uses: shivammathur/setup-php@v1
232
- with:
233
- php-version: '8.0'
234
- extensions: mbstring #optional, setup extensions
235
- ini-values: opcache.jit_buffer_size=256M, opcache.jit=1235, pcre.jit=1 #optional, setup php.ini configuration
236
- coverage: pcov #optional, setup PCOV, Xdebug does not support this version yet.
237
- tools: php-cs-fixer, phpunit #optional, setup tools globally
238
- ```
239
-
240
215
  ### Thread Safe Setup
241
216
 
242
217
  - `NTS` versions are setup by default.
@@ -380,29 +355,29 @@ For examples refer to [cs2pr documentation](https://github.com/staabm/annotate-p
380
355
 
381
356
  Examples for setting up this GitHub Action with different PHP Frameworks/Packages.
382
357
 
383
- |Framework/Package|Runs on|Workflow|
384
- |--- |--- |--- |
385
- |CakePHP with `MySQL` and `Redis`|`ubuntu`|[cakephp-mysql.yml](./examples/cakephp-mysql.yml "GitHub Action for CakePHP with MySQL and Redis")|
386
- |CakePHP with `PostgreSQL` and `Redis`|`ubuntu`|[cakephp-postgres.yml](./examples/cakephp-postgres.yml "GitHub Action for CakePHP with Postgres and Redis")|
387
- |CakePHP without services|`macOS`, `ubuntu` and `windows`|[cakephp.yml](./examples/cakephp.yml "GitHub Action for CakePHP without services")|
388
- |CodeIgniter|`macOS`, `ubuntu` and `windows`|[codeigniter.yml](./examples/codeigniter.yml "GitHub Action for CodeIgniter")|
389
- |Laravel with `MySQL` and `Redis`|`ubuntu`|[laravel-mysql.yml](./examples/laravel-mysql.yml "GitHub Action for Laravel with MySQL and Redis")|
390
- |Laravel with `PostgreSQL` and `Redis`|`ubuntu`|[laravel-postgres.yml](./examples/laravel-postgres.yml "GitHub Action for Laravel with PostgreSQL and Redis")|
391
- |Laravel without services|`macOS`, `ubuntu` and `windows`|[laravel.yml](./examples/laravel.yml "GitHub Action for Laravel without services")|
392
- |Lumen with `MySQL` and `Redis`|`ubuntu`|[lumen-mysql.yml](./examples/lumen-mysql.yml "GitHub Action for Lumen with MySQL and Redis")|
393
- |Lumen with `PostgreSQL` and `Redis`|`ubuntu`|[lumen-postgres.yml](./examples/lumen-postgres.yml "GitHub Action for Lumen with PostgreSQL and Redis")|
394
- |Lumen without services|`macOS`, `ubuntu` and `windows`|[lumen.yml](./examples/lumen.yml "GitHub Action for Lumen without services")|
395
- |Phalcon with `MySQL`|`ubuntu`|[phalcon-mysql.yml](./examples/phalcon-mysql.yml "GitHub Action for Phalcon with MySQL")|
396
- |Phalcon with `PostgreSQL`|`ubuntu`|[phalcon-postgres.yml](./examples/phalcon-postgres.yml "GitHub Action for Phalcon with PostgreSQL")|
397
- |Roots/bedrock|`ubuntu`|[bedrock.yml](./examples/bedrock.yml "GitHub Action for Wordpress Development using @roots/bedrock")|
398
- |Roots/sage|`ubuntu`|[sage.yml](./examples/sage.yml "GitHub Action for Wordpress Development using @roots/sage")|
399
- |Slim Framework|`macOS`, `ubuntu` and `windows`|[slim-framework.yml](./examples/slim-framework.yml "GitHub Action for Slim Framework")|
400
- |Symfony with `MySQL`|`ubuntu`|[symfony-mysql.yml](./examples/symfony-mysql.yml "GitHub Action for Symfony with MySQL")|
401
- |Symfony with `PostgreSQL`|`ubuntu`|[symfony-postgres.yml](./examples/symfony-postgres.yml "GitHub Action for Symfony with PostgreSQL")|
402
- |Symfony without services|`macOS`, `ubuntu` and `windows`|[symfony.yml](./examples/symfony.yml "GitHub Action for Symfony without services")|
403
- |Yii2 Starter Kit with `MySQL`|`ubuntu`|[yii2-mysql.yml](./examples/yii2-mysql.yml "GitHub Action for Yii2 Starter Kit with MySQL")|
404
- |Yii2 Starter Kit with `PostgreSQL`|`ubuntu`|[yii2-postgres.yml](./examples/yii2-postgres.yml "GitHub Action for Yii2 Starter Kit with PostgreSQL")|
405
- |Zend Framework|`macOS`, `ubuntu` and `windows`|[zend-framework.yml](./examples/zend-framework.yml "GitHub Action for Zend Framework")|
358
+ | Framework/Package | Runs on | Workflow |
359
+ |---------------------------------------|---------------------------------|---------------------------------------------------------------------------------------------------------------|
360
+ | CakePHP with `MySQL` and `Redis` | `ubuntu` | [cakephp-mysql.yml](./examples/cakephp-mysql.yml "GitHub Action for CakePHP with MySQL and Redis") |
361
+ | CakePHP with `PostgreSQL` and `Redis` | `ubuntu` | [cakephp-postgres.yml](./examples/cakephp-postgres.yml "GitHub Action for CakePHP with Postgres and Redis") |
362
+ | CakePHP without services | `macOS`, `ubuntu` and `windows` | [cakephp.yml](./examples/cakephp.yml "GitHub Action for CakePHP without services") |
363
+ | CodeIgniter | `macOS`, `ubuntu` and `windows` | [codeigniter.yml](./examples/codeigniter.yml "GitHub Action for CodeIgniter") |
364
+ | Laravel with `MySQL` and `Redis` | `ubuntu` | [laravel-mysql.yml](./examples/laravel-mysql.yml "GitHub Action for Laravel with MySQL and Redis") |
365
+ | Laravel with `PostgreSQL` and `Redis` | `ubuntu` | [laravel-postgres.yml](./examples/laravel-postgres.yml "GitHub Action for Laravel with PostgreSQL and Redis") |
366
+ | Laravel without services | `macOS`, `ubuntu` and `windows` | [laravel.yml](./examples/laravel.yml "GitHub Action for Laravel without services") |
367
+ | Lumen with `MySQL` and `Redis` | `ubuntu` | [lumen-mysql.yml](./examples/lumen-mysql.yml "GitHub Action for Lumen with MySQL and Redis") |
368
+ | Lumen with `PostgreSQL` and `Redis` | `ubuntu` | [lumen-postgres.yml](./examples/lumen-postgres.yml "GitHub Action for Lumen with PostgreSQL and Redis") |
369
+ | Lumen without services | `macOS`, `ubuntu` and `windows` | [lumen.yml](./examples/lumen.yml "GitHub Action for Lumen without services") |
370
+ | Phalcon with `MySQL` | `ubuntu` | [phalcon-mysql.yml](./examples/phalcon-mysql.yml "GitHub Action for Phalcon with MySQL") |
371
+ | Phalcon with `PostgreSQL` | `ubuntu` | [phalcon-postgres.yml](./examples/phalcon-postgres.yml "GitHub Action for Phalcon with PostgreSQL") |
372
+ | Roots/bedrock | `ubuntu` | [bedrock.yml](./examples/bedrock.yml "GitHub Action for Wordpress Development using @roots/bedrock") |
373
+ | Roots/sage | `ubuntu` | [sage.yml](./examples/sage.yml "GitHub Action for Wordpress Development using @roots/sage") |
374
+ | Slim Framework | `macOS`, `ubuntu` and `windows` | [slim-framework.yml](./examples/slim-framework.yml "GitHub Action for Slim Framework") |
375
+ | Symfony with `MySQL` | `ubuntu` | [symfony-mysql.yml](./examples/symfony-mysql.yml "GitHub Action for Symfony with MySQL") |
376
+ | Symfony with `PostgreSQL` | `ubuntu` | [symfony-postgres.yml](./examples/symfony-postgres.yml "GitHub Action for Symfony with PostgreSQL") |
377
+ | Symfony without services | `macOS`, `ubuntu` and `windows` | [symfony.yml](./examples/symfony.yml "GitHub Action for Symfony without services") |
378
+ | Yii2 Starter Kit with `MySQL` | `ubuntu` | [yii2-mysql.yml](./examples/yii2-mysql.yml "GitHub Action for Yii2 Starter Kit with MySQL") |
379
+ | Yii2 Starter Kit with `PostgreSQL` | `ubuntu` | [yii2-postgres.yml](./examples/yii2-postgres.yml "GitHub Action for Yii2 Starter Kit with PostgreSQL") |
380
+ | Zend Framework | `macOS`, `ubuntu` and `windows` | [zend-framework.yml](./examples/zend-framework.yml "GitHub Action for Zend Framework") |
406
381
 
407
382
  ## :scroll: License
408
383
 
@@ -414,35 +389,39 @@ Examples for setting up this GitHub Action with different PHP Frameworks/Package
414
389
 
415
390
  Contributions are welcome! See [Contributor's Guide](.github/CONTRIBUTING.md "shivammathur/setup-php contribution guide"). If you face any issues while using this or want to suggest a feature/improvement, create an issue [here](https://github.com/shivammathur/setup-php/issues "Issues reported").
416
391
 
392
+
417
393
  ## :sparkling_heart: Support This Project
418
394
 
419
- - This project is provided as Free and Open-Source software. We need funds to maintain and do future improvements. Please sponsor setup-php using [GitHub sponsors](https://github.com/sponsors/shivammathur).
395
+ - Please star the project and share it. If you blog, please share your experience of using `setup-php`.
396
+ - Please [reach out](mailto:contact@setup-php.com) if you have any questions about sponsoring setup-php.
397
+
398
+ Many users and organisations support setup-php via [GitHub Sponsors](https://github.com/sponsors/shivammathur).
420
399
 
421
- ### Corporate Sponsors
400
+ <a href="https://github.com/sponsors/shivammathur"><img src="https://setup-php.com/sponsors.svg?" alt="Sponsor shivammathur"></a>
401
+
402
+ These companies generously provide setup-php their products and services to aid in the development of this project.
422
403
 
423
404
  <p>
424
405
  <a href="https://www.jetbrains.com/?from=setup-php">
425
406
  <img src="https://setup-php.com/sponsors/jetbrains.svg" alt="JetBrains" width="106" height="60">
426
407
  </a>
427
408
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
428
- <a href="https://blackfire.io/?utm_source=setup-php">
429
- <img src="https://setup-php.com/sponsors//blackfire.svg" alt="Blackfire" width="212" height="60">
409
+ <a href="https://www.macstadium.com/opensource/members#gh-light-mode-only">
410
+ <img src="https://setup-php.com/sponsors/macstadium.png" alt="Mac Stadium" width="148" height="60">
430
411
  </a>
431
- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
432
- <a href="https://www.macstadium.com/?source=setup-php">
433
- <img src="https://setup-php.com/sponsors//macstadium.png" alt="Mac Stadium" width="148" height="60">
412
+ <a href="https://www.macstadium.com/opensource/members#gh-dark-mode-only">
413
+ <img src="https://setup-php.com/sponsors/macstadium-white.png" alt="Mac Stadium" width="148" height="60">
434
414
  </a>
435
415
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
436
416
  <a href="https://tidelift.com/subscription/pkg/npm-setup-php">
437
- <img src="https://setup-php.com/sponsors//tidelift.png" alt="Tidelift" width="70" height="60">
438
- </a>
439
- </p>
440
-
441
- ### Individual Sponsors
442
-
443
- <p align="center">
444
- <a href="https://github.com/sponsors/shivammathur">
445
- <img src="https://setup-php.com/sponsors/?" alt="Sponsors of setup-php and related projects" width="100%">
417
+ <img src="https://setup-php.com/sponsors/tidelift.png" alt="Tidelift" width="70" height="60">
418
+ </a>
419
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
420
+ <a href="https://www.scaleway.com/en/about-us/open-source-program#gh-light-mode-only">
421
+ <img src="https://setup-php.com/sponsors/scaleway.png" alt="Scaleway" width="174" height="60">
422
+ </a>
423
+ <a href="https://www.scaleway.com/en/about-us/open-source-program#gh-dark-mode-only">
424
+ <img src="https://setup-php.com/sponsors/scaleway-white.png" alt="Scaleway" width="174" height="60">
446
425
  </a>
447
426
  </p>
448
427
 
package/lib/config.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export declare function addINIValuesUnix(ini_values_csv: string): Promise<string>;
2
- export declare function addINIValuesWindows(ini_values_csv: string): Promise<string>;
3
- export declare function addINIValues(ini_values_csv: string, os_version: string, no_step?: boolean): Promise<string>;
1
+ export declare function addINIValuesUnix(ini_values_csv: string): Promise<string>;
2
+ export declare function addINIValuesWindows(ini_values_csv: string): Promise<string>;
3
+ export declare function addINIValues(ini_values_csv: string, os_version: string, no_step?: boolean): Promise<string>;
package/lib/config.js CHANGED
@@ -1,72 +1,76 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
- Object.defineProperty(o, "default", { enumerable: true, value: v });
11
- }) : function(o, v) {
12
- o["default"] = v;
13
- });
14
- var __importStar = (this && this.__importStar) || function (mod) {
15
- if (mod && mod.__esModule) return mod;
16
- var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
- __setModuleDefault(result, mod);
19
- return result;
20
- };
21
- Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.addINIValues = exports.addINIValuesWindows = exports.addINIValuesUnix = void 0;
23
- const utils = __importStar(require("./utils"));
24
- async function addINIValuesUnix(ini_values_csv) {
25
- const ini_values = await utils.CSVArray(ini_values_csv);
26
- let script = '\n';
27
- await utils.asyncForEach(ini_values, async function (line) {
28
- script +=
29
- (await utils.addLog('$tick', line, 'Added to php.ini', 'linux')) + '\n';
30
- });
31
- return ('echo "' + ini_values.join('\n') + '" >> ${pecl_file:-$ini_file}' + script);
32
- }
33
- exports.addINIValuesUnix = addINIValuesUnix;
34
- async function addINIValuesWindows(ini_values_csv) {
35
- const ini_values = await utils.CSVArray(ini_values_csv);
36
- let script = '\n';
37
- await utils.asyncForEach(ini_values, async function (line) {
38
- script +=
39
- (await utils.addLog('$tick', line, 'Added to php.ini', 'win32')) + '\n';
40
- });
41
- return ('Add-Content C:\\tools\\php\\php.ini "' +
42
- ini_values.join('\n') +
43
- '"' +
44
- script);
45
- }
46
- exports.addINIValuesWindows = addINIValuesWindows;
47
- async function addINIValues(ini_values_csv, os_version, no_step = false) {
48
- let script = '\n';
49
- switch (no_step) {
50
- case true:
51
- script +=
52
- (await utils.stepLog('Add php.ini values', os_version)) +
53
- (await utils.suppressOutput(os_version)) +
54
- '\n';
55
- break;
56
- case false:
57
- default:
58
- script += (await utils.stepLog('Add php.ini values', os_version)) + '\n';
59
- break;
60
- }
61
- switch (os_version) {
62
- case 'win32':
63
- return script + (await addINIValuesWindows(ini_values_csv));
64
- case 'darwin':
65
- case 'linux':
66
- return script + (await addINIValuesUnix(ini_values_csv));
67
- default:
68
- return await utils.log('Platform ' + os_version + ' is not supported', os_version, 'error');
69
- }
70
- }
71
- exports.addINIValues = addINIValues;
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.addINIValues = exports.addINIValuesWindows = exports.addINIValuesUnix = void 0;
27
+ const utils = __importStar(require("./utils"));
28
+ async function addINIValuesUnix(ini_values_csv) {
29
+ const ini_values = await utils.CSVArray(ini_values_csv);
30
+ let script = '\n';
31
+ await utils.asyncForEach(ini_values, async function (line) {
32
+ script +=
33
+ (await utils.addLog('$tick', line, 'Added to php.ini', 'linux')) + '\n';
34
+ });
35
+ return ('echo "' + ini_values.join('\n') + '" >> ${pecl_file:-$ini_file}' + script);
36
+ }
37
+ exports.addINIValuesUnix = addINIValuesUnix;
38
+ async function addINIValuesWindows(ini_values_csv) {
39
+ const ini_values = await utils.CSVArray(ini_values_csv);
40
+ let script = '\n';
41
+ await utils.asyncForEach(ini_values, async function (line) {
42
+ script +=
43
+ (await utils.addLog('$tick', line, 'Added to php.ini', 'win32')) + '\n';
44
+ });
45
+ return ('Add-Content C:\\tools\\php\\php.ini "' +
46
+ ini_values.join('\n') +
47
+ '"' +
48
+ script);
49
+ }
50
+ exports.addINIValuesWindows = addINIValuesWindows;
51
+ async function addINIValues(ini_values_csv, os_version, no_step = false) {
52
+ let script = '\n';
53
+ switch (no_step) {
54
+ case true:
55
+ script +=
56
+ (await utils.stepLog('Add php.ini values', os_version)) +
57
+ (await utils.suppressOutput(os_version)) +
58
+ '\n';
59
+ break;
60
+ case false:
61
+ default:
62
+ script += (await utils.stepLog('Add php.ini values', os_version)) + '\n';
63
+ break;
64
+ }
65
+ switch (os_version) {
66
+ case 'win32':
67
+ return script + (await addINIValuesWindows(ini_values_csv));
68
+ case 'darwin':
69
+ case 'linux':
70
+ return script + (await addINIValuesUnix(ini_values_csv));
71
+ default:
72
+ return await utils.log('Platform ' + os_version + ' is not supported', os_version, 'error');
73
+ }
74
+ }
75
+ exports.addINIValues = addINIValues;
72
76
  //# sourceMappingURL=config.js.map
package/lib/config.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AAO1B,KAAK,UAAU,gBAAgB,CACpC,cAAsB;IAEtB,MAAM,UAAU,GAAkB,MAAM,KAAK,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;IACvE,IAAI,MAAM,GAAG,IAAI,CAAC;IAClB,MAAM,KAAK,CAAC,YAAY,CAAC,UAAU,EAAE,KAAK,WAAW,IAAY;QAC/D,MAAM;YACJ,CAAC,MAAM,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC;IAC5E,CAAC,CAAC,CAAC;IACH,OAAO,CACL,QAAQ,GAAG,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,8BAA8B,GAAG,MAAM,CAC3E,CAAC;AACJ,CAAC;AAZD,4CAYC;AAOM,KAAK,UAAU,mBAAmB,CACvC,cAAsB;IAEtB,MAAM,UAAU,GAAkB,MAAM,KAAK,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;IACvE,IAAI,MAAM,GAAG,IAAI,CAAC;IAClB,MAAM,KAAK,CAAC,YAAY,CAAC,UAAU,EAAE,KAAK,WAAW,IAAY;QAC/D,MAAM;YACJ,CAAC,MAAM,KAAK,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AM,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;oBACxC,IAAI,CAAC;YACP,MAAM;QACR,KAAK,KAAK,CAAC;QACX;YACE,MAAM,IAAI,CAAC,MAAM,KAAK,CAAC,OAAO,CAAC,oBAAoB,EAAE,UAAU,CAAC,CAAC,GAAG,IAAI,CAAC;YACzE,MAAM;KACT;IACD,QAAQ,UAAU,EAAE;QAClB,KAAK,OAAO;YACV,OAAO,MAAM,GAAG,CAAC,MAAM,mBAAmB,CAAC,cAAc,CAAC,CAAC,CAAC;QAC9D,KAAK,QAAQ,CAAC;QACd,KAAK,OAAO;YACV,OAAO,MAAM,GAAG,CAAC,MAAM,gBAAgB,CAAC,cAAc,CAAC,CAAC,CAAC;QAC3D;YACE,OAAO,MAAM,KAAK,CAAC,GAAG,CACpB,WAAW,GAAG,UAAU,GAAG,mBAAmB,EAC9C,UAAU,EACV,OAAO,CACR,CAAC;KACL;AACH,CAAC;AA/BD,oCA+BC"}
package/lib/coverage.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare function addCoverageXdebug(extension: string, version: string, os_version: string, pipe: string): Promise<string>;
2
- export declare function addCoveragePCOV(version: string, os_version: string, pipe: string): Promise<string>;
3
- export declare function disableCoverage(version: string, os_version: string, pipe: string): Promise<string>;
4
- export declare function addCoverage(coverage_driver: string, version: string, os_version: string): Promise<string>;
1
+ export declare function addCoverageXdebug(extension: string, version: string, os_version: string, pipe: string): Promise<string>;
2
+ export declare function addCoveragePCOV(version: string, os_version: string, pipe: string): Promise<string>;
3
+ export declare function disableCoverage(version: string, os_version: string, pipe: string): Promise<string>;
4
+ export declare function addCoverage(coverage_driver: string, version: string, os_version: string): Promise<string>;
package/lib/coverage.js CHANGED
@@ -1,98 +1,102 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
- Object.defineProperty(o, "default", { enumerable: true, value: v });
11
- }) : function(o, v) {
12
- o["default"] = v;
13
- });
14
- var __importStar = (this && this.__importStar) || function (mod) {
15
- if (mod && mod.__esModule) return mod;
16
- var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
- __setModuleDefault(result, mod);
19
- return result;
20
- };
21
- Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.addCoverage = exports.disableCoverage = exports.addCoveragePCOV = exports.addCoverageXdebug = void 0;
23
- const utils = __importStar(require("./utils"));
24
- const extensions = __importStar(require("./extensions"));
25
- const config = __importStar(require("./config"));
26
- async function addCoverageXdebug(extension, version, os_version, pipe) {
27
- const xdebug = (await extensions.addExtension(extension, version, os_version, true)) +
28
- pipe;
29
- const log = await utils.addLog('$tick', extension, 'Xdebug enabled as coverage driver', os_version);
30
- return xdebug + '\n' + log;
31
- }
32
- exports.addCoverageXdebug = addCoverageXdebug;
33
- async function addCoveragePCOV(version, os_version, pipe) {
34
- let script = '\n';
35
- switch (version) {
36
- default:
37
- script +=
38
- (await extensions.addExtension('pcov', version, os_version, true)) +
39
- pipe +
40
- '\n';
41
- script +=
42
- (await config.addINIValues('pcov.enabled=1', os_version, true)) + '\n';
43
- switch (os_version) {
44
- case 'linux':
45
- case 'darwin':
46
- script += 'remove_extension xdebug' + pipe + '\n';
47
- break;
48
- case 'win32':
49
- script += 'Remove-Extension xdebug' + pipe + '\n';
50
- break;
51
- }
52
- script += await utils.addLog('$tick', 'coverage: pcov', 'PCOV enabled as coverage driver', os_version);
53
- break;
54
- case '5.6':
55
- case '7.0':
56
- script += await utils.addLog('$cross', 'pcov', 'PHP 7.1 or newer is required', os_version);
57
- break;
58
- }
59
- return script;
60
- }
61
- exports.addCoveragePCOV = addCoveragePCOV;
62
- async function disableCoverage(version, os_version, pipe) {
63
- let script = '\n';
64
- switch (os_version) {
65
- case 'linux':
66
- case 'darwin':
67
- script += 'remove_extension xdebug' + pipe + '\n';
68
- script += 'remove_extension pcov' + pipe + '\n';
69
- break;
70
- case 'win32':
71
- script += 'Remove-Extension xdebug' + pipe + '\n';
72
- script += 'Remove-Extension pcov' + pipe + '\n';
73
- break;
74
- }
75
- script += await utils.addLog('$tick', 'none', 'Disabled Xdebug and PCOV', os_version);
76
- return script;
77
- }
78
- exports.disableCoverage = disableCoverage;
79
- async function addCoverage(coverage_driver, version, os_version) {
80
- coverage_driver = coverage_driver.toLowerCase();
81
- const script = '\n' + (await utils.stepLog('Setup Coverage', os_version));
82
- const pipe = await utils.suppressOutput(os_version);
83
- switch (coverage_driver) {
84
- case 'pcov':
85
- return script + (await addCoveragePCOV(version, os_version, pipe));
86
- case 'xdebug':
87
- case 'xdebug3':
88
- return (script + (await addCoverageXdebug('xdebug', version, os_version, pipe)));
89
- case 'xdebug2':
90
- return (script + (await addCoverageXdebug('xdebug2', version, os_version, pipe)));
91
- case 'none':
92
- return script + (await disableCoverage(version, os_version, pipe));
93
- default:
94
- return '';
95
- }
96
- }
97
- exports.addCoverage = addCoverage;
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.addCoverage = exports.disableCoverage = exports.addCoveragePCOV = exports.addCoverageXdebug = void 0;
27
+ const utils = __importStar(require("./utils"));
28
+ const extensions = __importStar(require("./extensions"));
29
+ const config = __importStar(require("./config"));
30
+ async function addCoverageXdebug(extension, version, os_version, pipe) {
31
+ const xdebug = (await extensions.addExtension(extension, version, os_version, true)) +
32
+ pipe;
33
+ const log = await utils.addLog('$tick', extension, 'Xdebug enabled as coverage driver', os_version);
34
+ return xdebug + '\n' + log;
35
+ }
36
+ exports.addCoverageXdebug = addCoverageXdebug;
37
+ async function addCoveragePCOV(version, os_version, pipe) {
38
+ let script = '\n';
39
+ switch (version) {
40
+ default:
41
+ script +=
42
+ (await extensions.addExtension('pcov', version, os_version, true)) +
43
+ pipe +
44
+ '\n';
45
+ script +=
46
+ (await config.addINIValues('pcov.enabled=1', os_version, true)) + '\n';
47
+ switch (os_version) {
48
+ case 'linux':
49
+ case 'darwin':
50
+ script += 'remove_extension xdebug' + pipe + '\n';
51
+ break;
52
+ case 'win32':
53
+ script += 'Remove-Extension xdebug' + pipe + '\n';
54
+ break;
55
+ }
56
+ script += await utils.addLog('$tick', 'coverage: pcov', 'PCOV enabled as coverage driver', os_version);
57
+ break;
58
+ case '5.6':
59
+ case '7.0':
60
+ script += await utils.addLog('$cross', 'pcov', 'PHP 7.1 or newer is required', os_version);
61
+ break;
62
+ }
63
+ return script;
64
+ }
65
+ exports.addCoveragePCOV = addCoveragePCOV;
66
+ async function disableCoverage(version, os_version, pipe) {
67
+ let script = '\n';
68
+ switch (os_version) {
69
+ case 'linux':
70
+ case 'darwin':
71
+ script += 'remove_extension xdebug' + pipe + '\n';
72
+ script += 'remove_extension pcov' + pipe + '\n';
73
+ break;
74
+ case 'win32':
75
+ script += 'Remove-Extension xdebug' + pipe + '\n';
76
+ script += 'Remove-Extension pcov' + pipe + '\n';
77
+ break;
78
+ }
79
+ script += await utils.addLog('$tick', 'none', 'Disabled Xdebug and PCOV', os_version);
80
+ return script;
81
+ }
82
+ exports.disableCoverage = disableCoverage;
83
+ async function addCoverage(coverage_driver, version, os_version) {
84
+ coverage_driver = coverage_driver.toLowerCase();
85
+ const script = '\n' + (await utils.stepLog('Setup Coverage', os_version));
86
+ const pipe = await utils.suppressOutput(os_version);
87
+ switch (coverage_driver) {
88
+ case 'pcov':
89
+ return script + (await addCoveragePCOV(version, os_version, pipe));
90
+ case 'xdebug':
91
+ case 'xdebug3':
92
+ return (script + (await addCoverageXdebug('xdebug', version, os_version, pipe)));
93
+ case 'xdebug2':
94
+ return (script + (await addCoverageXdebug('xdebug2', version, os_version, pipe)));
95
+ case 'none':
96
+ return script + (await disableCoverage(version, os_version, pipe));
97
+ default:
98
+ return '';
99
+ }
100
+ }
101
+ exports.addCoverage = addCoverage;
98
102
  //# sourceMappingURL=coverage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"coverage.js","sourceRoot":"","sources":["../src/coverage.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AACjC,yDAA2C;AAC3C,iDAAmC;AAE5B,KAAK,UAAU,iBAAiB,CACrC,SAAiB,EACjB,OAAe,EACf,UAAkB,EAClB,IAAY;IAEZ,MAAM,MAAM,GACV,CAAC,MAAM,UAAU,CAAC,YAAY,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC;QACrE,IAAI,CAAC;IACP,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,MAAM,CAC5B,OAAO,EACP,SAAS,EACT,mCAAmC,EACnC,UAAU,CACX,CAAC;IACF,OAAO,MAAM,GAAG,IAA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