setup-php 1.11.2 → 1.11.6
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/LICENSE +21 -21
- package/README.md +433 -458
- package/lib/config.d.ts +3 -0
- package/lib/config.js +71 -71
- package/lib/config.js.map +1 -1
- package/lib/coverage.d.ts +4 -0
- package/lib/coverage.js +97 -87
- package/lib/coverage.js.map +1 -1
- package/lib/extensions.d.ts +4 -0
- package/lib/extensions.js +188 -200
- package/lib/extensions.js.map +1 -1
- package/lib/install.d.ts +2 -0
- package/lib/install.js +96 -81
- package/lib/install.js.map +1 -1
- package/lib/tools.d.ts +18 -0
- package/lib/tools.js +306 -386
- package/lib/tools.js.map +1 -1
- package/lib/utils.d.ts +15 -0
- package/lib/utils.js +205 -291
- package/lib/utils.js.map +1 -1
- package/package.json +66 -56
- package/src/config.ts +82 -82
- package/src/configs/brew_extensions +28 -0
- package/src/configs/php-versions.json +5 -5
- package/src/configs/phpunit.json +24 -24
- package/src/coverage.ts +146 -146
- package/src/extensions.ts +235 -233
- package/src/install.ts +104 -104
- package/src/scripts/darwin.sh +341 -339
- package/src/scripts/ext/gearman.sh +22 -22
- package/src/scripts/ext/phalcon.ps1 +55 -55
- package/src/scripts/ext/phalcon.sh +70 -70
- package/src/scripts/linux.sh +361 -361
- package/src/scripts/win32.ps1 +326 -333
- package/src/tools.ts +472 -469
- package/src/utils.ts +319 -316
- package/.eslintrc.json +0 -16
- package/.github/CODE_OF_CONDUCT.md +0 -76
- package/.github/CONTRIBUTING.md +0 -69
- package/.github/FUNDING.yml +0 -7
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -23
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -38
- package/.github/SECURITY.md +0 -29
- package/.github/workflows/main-workflow.yml +0 -56
- package/.github/workflows/node-workflow.yml +0 -47
- package/.idea/workspace.xml +0 -113
- package/.prettierrc.json +0 -12
- package/__tests__/config.test.ts +0 -52
- package/__tests__/coverage.test.ts +0 -110
- package/__tests__/extensions.test.ts +0 -120
- package/__tests__/install.test.ts +0 -181
- package/__tests__/tools.test.ts +0 -476
- package/__tests__/utils.test.ts +0 -213
- package/action.yml +0 -38
- package/dist/index.js +0 -2854
- package/examples/bedrock.yml +0 -32
- package/examples/cakephp-mysql.yml +0 -114
- package/examples/cakephp-postgres.yml +0 -112
- package/examples/cakephp.yml +0 -92
- package/examples/codeigniter.yml +0 -34
- package/examples/laravel-mysql.yml +0 -74
- package/examples/laravel-postgres.yml +0 -74
- package/examples/laravel.yml +0 -42
- package/examples/lumen-mysql.yml +0 -74
- package/examples/lumen-postgres.yml +0 -74
- package/examples/lumen.yml +0 -38
- package/examples/phalcon-mysql.yml +0 -74
- package/examples/phalcon-postgres.yml +0 -73
- package/examples/sage.yml +0 -57
- package/examples/slim-framework.yml +0 -34
- package/examples/symfony-mysql.yml +0 -56
- package/examples/symfony-postgres.yml +0 -54
- package/examples/symfony.yml +0 -39
- package/examples/yii2-mysql.yml +0 -73
- package/examples/yii2-postgres.yml +0 -71
- package/examples/zend-framework.yml +0 -36
- package/jest.config.js +0 -12
- package/lib/sapi.js +0 -64
- package/tsconfig.json +0 -18
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
|
2
|
-
|
|
3
|
-
## Our Pledge
|
|
4
|
-
|
|
5
|
-
In the interest of fostering an open and welcoming environment, we as
|
|
6
|
-
contributors and maintainers pledge to making participation in our project and
|
|
7
|
-
our community a harassment-free experience for everyone, regardless of age, body
|
|
8
|
-
size, disability, ethnicity, sex characteristics, gender identity and expression,
|
|
9
|
-
level of experience, education, socio-economic status, nationality, personal
|
|
10
|
-
appearance, race, religion, or sexual identity and orientation.
|
|
11
|
-
|
|
12
|
-
## Our Standards
|
|
13
|
-
|
|
14
|
-
Examples of behavior that contributes to creating a positive environment
|
|
15
|
-
include:
|
|
16
|
-
|
|
17
|
-
* Using welcoming and inclusive language
|
|
18
|
-
* Being respectful of differing viewpoints and experiences
|
|
19
|
-
* Gracefully accepting constructive criticism
|
|
20
|
-
* Focusing on what is best for the community
|
|
21
|
-
* Showing empathy towards other community members
|
|
22
|
-
|
|
23
|
-
Examples of unacceptable behavior by participants include:
|
|
24
|
-
|
|
25
|
-
* The use of sexualized language or imagery and unwelcome sexual attention or
|
|
26
|
-
advances
|
|
27
|
-
* Trolling, insulting/derogatory comments, and personal or political attacks
|
|
28
|
-
* Public or private harassment
|
|
29
|
-
* Publishing others' private information, such as a physical or electronic
|
|
30
|
-
address, without explicit permission
|
|
31
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
|
32
|
-
professional setting
|
|
33
|
-
|
|
34
|
-
## Our Responsibilities
|
|
35
|
-
|
|
36
|
-
Project maintainers are responsible for clarifying the standards of acceptable
|
|
37
|
-
behavior and are expected to take appropriate and fair corrective action in
|
|
38
|
-
response to any instances of unacceptable behavior.
|
|
39
|
-
|
|
40
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
|
41
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
|
42
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
|
43
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
|
44
|
-
threatening, offensive, or harmful.
|
|
45
|
-
|
|
46
|
-
## Scope
|
|
47
|
-
|
|
48
|
-
This Code of Conduct applies both within project spaces and in public spaces
|
|
49
|
-
when an individual is representing the project or its community. Examples of
|
|
50
|
-
representing a project or community include using an official project e-mail
|
|
51
|
-
address, posting via an official social media account, or acting as an appointed
|
|
52
|
-
representative at an online or offline event. Representation of a project may be
|
|
53
|
-
further defined and clarified by project maintainers.
|
|
54
|
-
|
|
55
|
-
## Enforcement
|
|
56
|
-
|
|
57
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
58
|
-
reported by contacting the project team at contact@shivammathur.com. All
|
|
59
|
-
complaints will be reviewed and investigated and will result in a response that
|
|
60
|
-
is deemed necessary and appropriate to the circumstances. The project team is
|
|
61
|
-
obligated to maintain confidentiality with regard to the reporter of an incident.
|
|
62
|
-
Further details of specific enforcement policies may be posted separately.
|
|
63
|
-
|
|
64
|
-
Project maintainers who do not follow or enforce the Code of Conduct in good
|
|
65
|
-
faith may face temporary or permanent repercussions as determined by other
|
|
66
|
-
members of the project's leadership.
|
|
67
|
-
|
|
68
|
-
## Attribution
|
|
69
|
-
|
|
70
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
|
71
|
-
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
|
|
72
|
-
|
|
73
|
-
[homepage]: https://www.contributor-covenant.org
|
|
74
|
-
|
|
75
|
-
For answers to common questions about this code of conduct, see
|
|
76
|
-
https://www.contributor-covenant.org/faq
|
package/.github/CONTRIBUTING.md
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
# Contributing to setup-php
|
|
2
|
-
|
|
3
|
-
## Contributor Code of Conduct
|
|
4
|
-
|
|
5
|
-
Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
|
|
6
|
-
|
|
7
|
-
## Workflow
|
|
8
|
-
|
|
9
|
-
* Fork the project.
|
|
10
|
-
* Make your bug fix or feature addition.
|
|
11
|
-
* Add tests for it. This is important so we don't break it in a future version unintentionally.
|
|
12
|
-
* Send a pull request to the develop branch.
|
|
13
|
-
|
|
14
|
-
Please make sure that you have [set up your user name and email address](https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup) for use with Git. Strings such as `silly nick name <root@localhost>` look really stupid in the commit history of a project.
|
|
15
|
-
|
|
16
|
-
Due to time constraints, you may not always get a quick response. Please do not take delays personal and feel free to remind.
|
|
17
|
-
|
|
18
|
-
## Coding Guidelines
|
|
19
|
-
|
|
20
|
-
## Using setup-php from a Git checkout
|
|
21
|
-
|
|
22
|
-
The following commands can be used to perform the initial checkout of setup-php:
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
$ git clone https://github.com/shivammathur/setup-php.git
|
|
26
|
-
|
|
27
|
-
$ cd setup-php
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
Install setup-php dependencies using [npm](https://www.npmjs.com/):
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
$ npm install
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
If you are using `Windows` configure `git` to handle line endings.
|
|
37
|
-
|
|
38
|
-
```cmd
|
|
39
|
-
git config --local core.autocrlf true
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
This project comes with `.prettierrc.json` and `eslintrc.json` configuration files. Please run the following commands to fix and verify the code quality.
|
|
43
|
-
|
|
44
|
-
```bash
|
|
45
|
-
$ npm run format
|
|
46
|
-
$ npm run lint
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
## Running the test suite
|
|
50
|
-
|
|
51
|
-
After following the steps shown above, The `setup-php` tests in the `__tests__` directory can be run using this command:
|
|
52
|
-
|
|
53
|
-
```bash
|
|
54
|
-
$ npm test
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
## Creating a release
|
|
58
|
-
|
|
59
|
-
Create a release before you push your changes.
|
|
60
|
-
|
|
61
|
-
```bash
|
|
62
|
-
$ npm run release
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
## Reporting issues
|
|
66
|
-
|
|
67
|
-
Please submit the issue using the appropriate template provided for a bug report or a feature request:
|
|
68
|
-
|
|
69
|
-
* [Issues](https://github.com/shivammathur/setup-php/issues)
|
package/.github/FUNDING.yml
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Bug report
|
|
3
|
-
about: Create a report to help us improve
|
|
4
|
-
title: ''
|
|
5
|
-
labels: ''
|
|
6
|
-
assignees: ''
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
**Describe the bug**
|
|
11
|
-
A clear and concise description of what the bug is.
|
|
12
|
-
|
|
13
|
-
**To Reproduce**
|
|
14
|
-
Please provide the GitHub Action `.yml` file.
|
|
15
|
-
|
|
16
|
-
**Expected behavior**
|
|
17
|
-
A clear and concise description of what you expected to happen.
|
|
18
|
-
|
|
19
|
-
**Screenshots**
|
|
20
|
-
If applicable, add screenshots to help explain your problem.
|
|
21
|
-
|
|
22
|
-
**Additional context**
|
|
23
|
-
Add any other context about the problem here.
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Feature request
|
|
3
|
-
about: Suggest an idea for this project
|
|
4
|
-
title: ''
|
|
5
|
-
labels: ''
|
|
6
|
-
assignees: ''
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
**Is your feature request related to a problem? Please describe.**
|
|
11
|
-
A clear and concise description of what the problem is. Ex. I want to improve [...]
|
|
12
|
-
|
|
13
|
-
**Describe the solution you'd like**
|
|
14
|
-
A clear and concise description of what you want to happen.
|
|
15
|
-
|
|
16
|
-
**Describe alternatives you've considered**
|
|
17
|
-
A clear and concise description of any alternative solutions or features you've considered.
|
|
18
|
-
|
|
19
|
-
**Additional context**
|
|
20
|
-
Add any other context or screenshots about the feature request here.
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: 🐞 Bug Fix, ⚙ Improvement or 🎉 New Feature
|
|
3
|
-
about: You found a bug, want to improve something or add a new feature
|
|
4
|
-
labels: bug or enhancement
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## A Pull Request should be associated with an Issue.
|
|
9
|
-
|
|
10
|
-
> We wish to have discussions in Issues. A single issue may be targeted by multiple PRs.
|
|
11
|
-
> If you're offering a new feature or fixing anything, we'd like to know beforehand in Issues,
|
|
12
|
-
> and potentially we'll be able to point development in a particular direction.
|
|
13
|
-
|
|
14
|
-
Related issue:
|
|
15
|
-
|
|
16
|
-
> Further notes in [Contribution Guidelines](.github/CONTRIBUTING.md)
|
|
17
|
-
> Thank you! We are open to PRs, but please understand if for technical reasons we are unable to accept each and any PR
|
|
18
|
-
|
|
19
|
-
### Description
|
|
20
|
-
|
|
21
|
-
This PR [briefly explain what it does]
|
|
22
|
-
|
|
23
|
-
> In case this PR introduced TypeScript/JavaScript code changes:
|
|
24
|
-
|
|
25
|
-
- [ ] I have written test cases for the changes in this pull request
|
|
26
|
-
- [ ] I have run `npm run format` before the commit.
|
|
27
|
-
- [ ] I have run `npm run lint` before the commit.
|
|
28
|
-
- [ ] I have run `npm run release` before the commit.
|
|
29
|
-
- [ ] `npm test` returns with no unit test errors and all code covered.
|
|
30
|
-
|
|
31
|
-
> In case this PR edits any scripts:
|
|
32
|
-
|
|
33
|
-
- [ ] I have checked the edited scripts for syntax.
|
|
34
|
-
- [ ] I have tested the changes in an integration test (If yes, provide workflow YAML and link).
|
|
35
|
-
|
|
36
|
-
<!--
|
|
37
|
-
- Please target the develop branch when submitting the pull request.
|
|
38
|
-
-->
|
package/.github/SECURITY.md
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# Security Policy
|
|
2
|
-
|
|
3
|
-
## Supported Versions
|
|
4
|
-
|
|
5
|
-
The following versions of this project are supported for security updates.
|
|
6
|
-
|
|
7
|
-
| Version | Supported |
|
|
8
|
-
| ------- | ------------------ |
|
|
9
|
-
| 1.11.x | :white_check_mark: |
|
|
10
|
-
| 2.11.x | :white_check_mark: |
|
|
11
|
-
|
|
12
|
-
## Supported PHP Versions
|
|
13
|
-
|
|
14
|
-
This security policy only applies to the latest patches of the following PHP versions.
|
|
15
|
-
|
|
16
|
-
| Version | Supported |
|
|
17
|
-
| ------- | ------------------ |
|
|
18
|
-
| 7.3 | :white_check_mark: |
|
|
19
|
-
| 7.4 | :white_check_mark: |
|
|
20
|
-
| 8.0 | :white_check_mark: |
|
|
21
|
-
|
|
22
|
-
## Reporting a Vulnerability
|
|
23
|
-
|
|
24
|
-
If you have found any issues that might have security implications in the versions supported, please send a report privately to [contact@shivammathur.com](mailto:contact@shivammathur.com).
|
|
25
|
-
Do not report security reports publicly.
|
|
26
|
-
|
|
27
|
-
## Tidelift
|
|
28
|
-
|
|
29
|
-
If you use this GitHub Action through a Tidelift subscription, please refer to [https://tidelift.com/security](https://tidelift.com/security).
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
name: Main workflow
|
|
2
|
-
on:
|
|
3
|
-
workflow_dispatch:
|
|
4
|
-
pull_request:
|
|
5
|
-
branches:
|
|
6
|
-
- releases/v1
|
|
7
|
-
paths-ignore:
|
|
8
|
-
- '**.md'
|
|
9
|
-
- 'examples/**'
|
|
10
|
-
push:
|
|
11
|
-
branches:
|
|
12
|
-
- releases/v1
|
|
13
|
-
paths-ignore:
|
|
14
|
-
- '**.md'
|
|
15
|
-
- 'examples/**'
|
|
16
|
-
jobs:
|
|
17
|
-
run:
|
|
18
|
-
name: Run
|
|
19
|
-
runs-on: ${{ matrix.operating-system }}
|
|
20
|
-
strategy:
|
|
21
|
-
fail-fast: false
|
|
22
|
-
matrix:
|
|
23
|
-
operating-system: [ubuntu-20.04, ubuntu-18.04, windows-latest, macos-latest]
|
|
24
|
-
php-versions: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
|
|
25
|
-
steps:
|
|
26
|
-
- name: Checkout
|
|
27
|
-
uses: actions/checkout@v2
|
|
28
|
-
|
|
29
|
-
- name: Setup PHP with extensions and custom config
|
|
30
|
-
run: node dist/index.js
|
|
31
|
-
env:
|
|
32
|
-
php-version: ${{ matrix.php-versions }}
|
|
33
|
-
extensions: xml, opcache, xdebug, pcov #optional
|
|
34
|
-
ini-values: post_max_size=256M, short_open_tag=On, date.timezone=Asia/Kolkata #optional
|
|
35
|
-
|
|
36
|
-
- name: Testing PHP version
|
|
37
|
-
run: |
|
|
38
|
-
php -v
|
|
39
|
-
php -r "if(strpos(phpversion(), '${{ matrix.php-versions }}') === false) {throw new Exception('Wrong PHP version Installed');}"
|
|
40
|
-
|
|
41
|
-
- name: Testing Composer version
|
|
42
|
-
run: |
|
|
43
|
-
composer -V
|
|
44
|
-
php -r "if(strpos(@exec('composer -V'), 'Composer version') === false) {throw new Exception('Composer not found');}"
|
|
45
|
-
- name: Testing Extensions
|
|
46
|
-
run: |
|
|
47
|
-
php -m
|
|
48
|
-
php -r "if(! extension_loaded('xml')) {throw new Exception('xml not found');}"
|
|
49
|
-
php -r "if(! extension_loaded('Xdebug')) {throw new Exception('Xdebug not found');}"
|
|
50
|
-
php -r "if(phpversion()>=7.1 && ! extension_loaded('pcov')) {throw new Exception('PCOV not found');}"
|
|
51
|
-
- name: Testing ini values
|
|
52
|
-
run: |
|
|
53
|
-
php -r "if(ini_get('memory_limit')!='-1') {throw new Exception('memory_limit not disabled');}"
|
|
54
|
-
php -r "if(ini_get('post_max_size')!='256M') {throw new Exception('post_max_size not added');}"
|
|
55
|
-
php -r "if(ini_get('short_open_tag')!=1) {throw new Exception('short_open_tag not added');}"
|
|
56
|
-
php -r "if(ini_get('date.timezone')!='Asia/Kolkata') {throw new Exception('date.timezone not added');}"
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
name: Node workflow
|
|
2
|
-
on:
|
|
3
|
-
pull_request:
|
|
4
|
-
branches:
|
|
5
|
-
- releases/v1
|
|
6
|
-
paths-ignore:
|
|
7
|
-
- '**.md'
|
|
8
|
-
- 'examples/**'
|
|
9
|
-
push:
|
|
10
|
-
branches:
|
|
11
|
-
- releases/v1
|
|
12
|
-
paths-ignore:
|
|
13
|
-
- '**.md'
|
|
14
|
-
- 'examples/**'
|
|
15
|
-
jobs:
|
|
16
|
-
run:
|
|
17
|
-
name: Run
|
|
18
|
-
runs-on: ${{ matrix.operating-system }}
|
|
19
|
-
strategy:
|
|
20
|
-
fail-fast: false
|
|
21
|
-
matrix:
|
|
22
|
-
operating-system: [ubuntu-latest, windows-latest, macos-latest]
|
|
23
|
-
steps:
|
|
24
|
-
- name: Checkout
|
|
25
|
-
uses: actions/checkout@v2
|
|
26
|
-
|
|
27
|
-
- name: Setup Node.js 15.x
|
|
28
|
-
uses: actions/setup-node@v1
|
|
29
|
-
with:
|
|
30
|
-
node-version: 15.x
|
|
31
|
-
|
|
32
|
-
- name: Install dependencies
|
|
33
|
-
run: npm install
|
|
34
|
-
|
|
35
|
-
- name: Prettier Format Check
|
|
36
|
-
run: npm run format-check
|
|
37
|
-
|
|
38
|
-
- name: ESLint Check
|
|
39
|
-
run: npm run lint
|
|
40
|
-
|
|
41
|
-
- name: Run tests
|
|
42
|
-
run: npm test
|
|
43
|
-
|
|
44
|
-
- name: Send Coverage
|
|
45
|
-
continue-on-error: true
|
|
46
|
-
timeout-minutes: 1
|
|
47
|
-
run: curl -s https://codecov.io/bash | bash -s -- -t ${{secrets.CODECOV_TOKEN}} -f coverage/lcov.info -n github-actions-codecov-${{ matrix.operating-system }}
|
package/.idea/workspace.xml
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="ChangeListManager">
|
|
4
|
-
<list default="true" id="82af0fba-d071-4964-9882-cc25944a7c2c" name="Default Changelist" comment="" />
|
|
5
|
-
<option name="SHOW_DIALOG" value="false" />
|
|
6
|
-
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
7
|
-
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
8
|
-
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
9
|
-
</component>
|
|
10
|
-
<component name="ComposerSettings">
|
|
11
|
-
<execution />
|
|
12
|
-
</component>
|
|
13
|
-
<component name="Git.Settings">
|
|
14
|
-
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
|
15
|
-
</component>
|
|
16
|
-
<component name="GitSEFilterConfiguration">
|
|
17
|
-
<file-type-list>
|
|
18
|
-
<filtered-out-file-type name="LOCAL_BRANCH" />
|
|
19
|
-
<filtered-out-file-type name="REMOTE_BRANCH" />
|
|
20
|
-
<filtered-out-file-type name="TAG" />
|
|
21
|
-
<filtered-out-file-type name="COMMIT_BY_MESSAGE" />
|
|
22
|
-
</file-type-list>
|
|
23
|
-
</component>
|
|
24
|
-
<component name="HighlightingSettingsPerFile">
|
|
25
|
-
<setting file="file://$PROJECT_DIR$/src/scripts/ext/gearman.sh" root0="FORCE_HIGHLIGHTING" />
|
|
26
|
-
<setting file="file://$PROJECT_DIR$/src/scripts/darwin.sh" root0="FORCE_HIGHLIGHTING" />
|
|
27
|
-
<setting file="file://$PROJECT_DIR$/src/coverage.ts" root0="FORCE_HIGHLIGHTING" />
|
|
28
|
-
<setting file="file://$PROJECT_DIR$/__tests__/tools.test.ts" root0="FORCE_HIGHLIGHTING" />
|
|
29
|
-
<setting file="file://$PROJECT_DIR$/src/scripts/linux.sh" root0="FORCE_HIGHLIGHTING" />
|
|
30
|
-
<setting file="file://$PROJECT_DIR$/src/extensions.ts" root0="FORCE_HIGHLIGHTING" />
|
|
31
|
-
<setting file="file://$PROJECT_DIR$/__tests__/extensions.test.ts" root0="FORCE_HIGHLIGHTING" />
|
|
32
|
-
<setting file="file://$PROJECT_DIR$/src/tools.ts" root0="FORCE_HIGHLIGHTING" />
|
|
33
|
-
<setting file="file://$PROJECT_DIR$/examples/symfony-postgres.yml" root0="FORCE_HIGHLIGHTING" />
|
|
34
|
-
</component>
|
|
35
|
-
<component name="ProjectId" id="1v5alxYjYKBe12yF9yya0tL0XAA" />
|
|
36
|
-
<component name="ProjectViewState">
|
|
37
|
-
<option name="autoscrollToSource" value="true" />
|
|
38
|
-
<option name="hideEmptyMiddlePackages" value="true" />
|
|
39
|
-
<option name="showLibraryContents" value="true" />
|
|
40
|
-
</component>
|
|
41
|
-
<component name="PropertiesComponent">
|
|
42
|
-
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
|
|
43
|
-
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
|
|
44
|
-
<property name="WebServerToolWindowFactoryState" value="false" />
|
|
45
|
-
<property name="last_opened_file_path" value="$PROJECT_DIR$/src/configs/tools_schema.json" />
|
|
46
|
-
<property name="node.js.detected.package.eslint" value="true" />
|
|
47
|
-
<property name="node.js.selected.package.eslint" value="(autodetect)" />
|
|
48
|
-
<property name="nodejs.jest.jest_package" value="$PROJECT_DIR$/node_modules/jest" />
|
|
49
|
-
<property name="nodejs_package_manager_path" value="npm" />
|
|
50
|
-
<property name="settings.editor.selected.configurable" value="preferences.fileTypes" />
|
|
51
|
-
<property name="ts.external.directory.path" value="C:\Program Files\JetBrains\PhpStorm 2021.1\plugins\JavaScriptLanguage\jsLanguageServicesImpl\external" />
|
|
52
|
-
<property name="vue.rearranger.settings.migration" value="true" />
|
|
53
|
-
</component>
|
|
54
|
-
<component name="RunManager">
|
|
55
|
-
<configuration name="Tools tests.checking addTools with composer tool using user/tool as input" type="JavaScriptTestRunnerJest" temporary="true" nameIsGenerated="true">
|
|
56
|
-
<node-interpreter value="project" />
|
|
57
|
-
<node-options value="" />
|
|
58
|
-
<jest-package value="$PROJECT_DIR$/node_modules/jest" />
|
|
59
|
-
<working-dir value="$PROJECT_DIR$" />
|
|
60
|
-
<envs />
|
|
61
|
-
<scope-kind value="TEST" />
|
|
62
|
-
<test-file value="$PROJECT_DIR$/__tests__/tools.test.ts" />
|
|
63
|
-
<test-names>
|
|
64
|
-
<test-name value="Tools tests" />
|
|
65
|
-
<test-name value="checking addTools with composer tool using user/tool as input" />
|
|
66
|
-
</test-names>
|
|
67
|
-
<method v="2" />
|
|
68
|
-
</configuration>
|
|
69
|
-
<recent_temporary>
|
|
70
|
-
<list>
|
|
71
|
-
<item itemvalue="Jest.Tools tests.checking addTools with composer tool using user/tool as input" />
|
|
72
|
-
</list>
|
|
73
|
-
</recent_temporary>
|
|
74
|
-
</component>
|
|
75
|
-
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
|
76
|
-
<component name="TaskManager">
|
|
77
|
-
<task active="true" id="Default" summary="Default task">
|
|
78
|
-
<changelist id="82af0fba-d071-4964-9882-cc25944a7c2c" name="Default Changelist" comment="" />
|
|
79
|
-
<created>1625854563740</created>
|
|
80
|
-
<option name="number" value="Default" />
|
|
81
|
-
<option name="presentableId" value="Default" />
|
|
82
|
-
<updated>1625854563740</updated>
|
|
83
|
-
<workItem from="1625854565882" duration="3503000" />
|
|
84
|
-
<workItem from="1625870032798" duration="57755000" />
|
|
85
|
-
<workItem from="1626122160654" duration="35617000" />
|
|
86
|
-
<workItem from="1626250450941" duration="5049000" />
|
|
87
|
-
<workItem from="1626425171956" duration="1534000" />
|
|
88
|
-
<workItem from="1626483209825" duration="8146000" />
|
|
89
|
-
<workItem from="1626868155512" duration="5854000" />
|
|
90
|
-
<workItem from="1626890038877" duration="66000" />
|
|
91
|
-
<workItem from="1626992358975" duration="12197000" />
|
|
92
|
-
<workItem from="1627407126586" duration="44206000" />
|
|
93
|
-
<workItem from="1627710921618" duration="9623000" />
|
|
94
|
-
<workItem from="1627754207366" duration="28730000" />
|
|
95
|
-
<workItem from="1627822147749" duration="24085000" />
|
|
96
|
-
<workItem from="1628032146793" duration="18187000" />
|
|
97
|
-
<workItem from="1628229789620" duration="14840000" />
|
|
98
|
-
<workItem from="1628547990195" duration="920000" />
|
|
99
|
-
<workItem from="1628557416080" duration="1543000" />
|
|
100
|
-
<workItem from="1628620030289" duration="1971000" />
|
|
101
|
-
<workItem from="1628649054902" duration="1797000" />
|
|
102
|
-
<workItem from="1628765919140" duration="1056000" />
|
|
103
|
-
<workItem from="1629003489449" duration="628000" />
|
|
104
|
-
<workItem from="1629065460749" duration="47330000" />
|
|
105
|
-
<workItem from="1629445653467" duration="31561000" />
|
|
106
|
-
<workItem from="1629794649986" duration="10434000" />
|
|
107
|
-
</task>
|
|
108
|
-
<servers />
|
|
109
|
-
</component>
|
|
110
|
-
<component name="TypeScriptGeneratedFilesManager">
|
|
111
|
-
<option name="version" value="3" />
|
|
112
|
-
</component>
|
|
113
|
-
</project>
|
package/.prettierrc.json
DELETED
package/__tests__/config.test.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import * as config from '../src/config';
|
|
2
|
-
|
|
3
|
-
describe('Config tests', () => {
|
|
4
|
-
it('checking addINIValuesOnWindows', async () => {
|
|
5
|
-
let win32: string = await config.addINIValues(
|
|
6
|
-
'post_max_size=256M, short_open_tag=On, date.timezone=Asia/Kolkata',
|
|
7
|
-
'win32'
|
|
8
|
-
);
|
|
9
|
-
expect(win32).toContain(
|
|
10
|
-
'Add-Content C:\\tools\\php\\php.ini "post_max_size=256M\nshort_open_tag=On\ndate.timezone=Asia/Kolkata"'
|
|
11
|
-
);
|
|
12
|
-
|
|
13
|
-
win32 = await config.addINIValues(
|
|
14
|
-
'post_max_size=256M, short_open_tag=On, date.timezone=Asia/Kolkata',
|
|
15
|
-
'openbsd'
|
|
16
|
-
);
|
|
17
|
-
expect(win32).toContain('Platform openbsd is not supported');
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('checking addINIValuesOnLinux', async () => {
|
|
21
|
-
let linux: string = await config.addINIValues(
|
|
22
|
-
'post_max_size=256M, short_open_tag=On, date.timezone=Asia/Kolkata',
|
|
23
|
-
'linux',
|
|
24
|
-
true
|
|
25
|
-
);
|
|
26
|
-
expect(linux).toContain(
|
|
27
|
-
'echo "post_max_size=256M\nshort_open_tag=On\ndate.timezone=Asia/Kolkata"'
|
|
28
|
-
);
|
|
29
|
-
|
|
30
|
-
linux = await config.addINIValues(
|
|
31
|
-
'post_max_size=256M, short_open_tag=On, date.timezone=Asia/Kolkata',
|
|
32
|
-
'openbsd'
|
|
33
|
-
);
|
|
34
|
-
expect(linux).toContain('Platform openbsd is not supported');
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
it('checking addINIValuesOnDarwin', async () => {
|
|
38
|
-
let darwin: string = await config.addINIValues(
|
|
39
|
-
'post_max_size=256M, short_open_tag=On, date.timezone=Asia/Kolkata',
|
|
40
|
-
'darwin'
|
|
41
|
-
);
|
|
42
|
-
expect(darwin).toContain(
|
|
43
|
-
'echo "post_max_size=256M\nshort_open_tag=On\ndate.timezone=Asia/Kolkata"'
|
|
44
|
-
);
|
|
45
|
-
|
|
46
|
-
darwin = await config.addINIValues(
|
|
47
|
-
'post_max_size=256M, short_open_tag=On, date.timezone=Asia/Kolkata',
|
|
48
|
-
'openbsd'
|
|
49
|
-
);
|
|
50
|
-
expect(darwin).toContain('Platform openbsd is not supported');
|
|
51
|
-
});
|
|
52
|
-
});
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import * as coverage from '../src/coverage';
|
|
2
|
-
|
|
3
|
-
describe('Config tests', () => {
|
|
4
|
-
it('checking addCoverage with PCOV on windows', async () => {
|
|
5
|
-
let win32: string = await coverage.addCoverage('PCOV', '7.4', 'win32');
|
|
6
|
-
expect(win32).toContain('Add-Extension pcov');
|
|
7
|
-
expect(win32).toContain('Remove-Extension xdebug');
|
|
8
|
-
|
|
9
|
-
win32 = await coverage.addCoverage('pcov', '7.0', 'win32');
|
|
10
|
-
expect(win32).toContain('PHP 7.1 or newer is required');
|
|
11
|
-
|
|
12
|
-
win32 = await coverage.addCoverage('pcov', '5.6', 'win32');
|
|
13
|
-
expect(win32).toContain('PHP 7.1 or newer is required');
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
it('checking addCoverage with PCOV on linux', async () => {
|
|
17
|
-
const linux: string = await coverage.addCoverage('pcov', '7.4', 'linux');
|
|
18
|
-
expect(linux).toContain('add_extension pcov');
|
|
19
|
-
expect(linux).toContain('remove_extension xdebug');
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
it('checking addCoverage with PCOV on darwin', async () => {
|
|
23
|
-
const darwin: string = await coverage.addCoverage('pcov', '7.4', 'darwin');
|
|
24
|
-
expect(darwin).toContain('add_brew_extension pcov');
|
|
25
|
-
expect(darwin).toContain('remove_extension xdebug');
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
it('checking addCoverage with Xdebug on windows', async () => {
|
|
29
|
-
const win32: string = await coverage.addCoverage('xdebug', '7.4', 'win32');
|
|
30
|
-
expect(win32).toContain('Add-Extension xdebug');
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
it('checking addCoverage with Xdebug3 on windows', async () => {
|
|
34
|
-
const win32: string = await coverage.addCoverage('xdebug3', '7.4', 'win32');
|
|
35
|
-
expect(win32).toContain('Add-Extension xdebug');
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
it('checking addCoverage with Xdebug2 on windows', async () => {
|
|
39
|
-
const win32: string = await coverage.addCoverage('xdebug2', '7.4', 'win32');
|
|
40
|
-
expect(win32).toContain('Add-Extension xdebug stable 2.9.8');
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
it('checking addCoverage with Xdebug on linux', async () => {
|
|
44
|
-
const linux: string = await coverage.addCoverage('xdebug', '8.0', 'linux');
|
|
45
|
-
expect(linux).toContain('add_extension xdebug');
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
it('checking addCoverage with Xdebug3 on linux', async () => {
|
|
49
|
-
const linux: string = await coverage.addCoverage('xdebug3', '8.0', 'linux');
|
|
50
|
-
expect(linux).toContain('add_extension xdebug');
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
it('checking addCoverage with Xdebug2 on linux', async () => {
|
|
54
|
-
const linux: string = await coverage.addCoverage('xdebug2', '7.4', 'linux');
|
|
55
|
-
expect(linux).toContain('add_pecl_extension xdebug 2.9.8 zend_extension');
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
it('checking addCoverage with Xdebug on darwin', async () => {
|
|
59
|
-
const darwin: string = await coverage.addCoverage(
|
|
60
|
-
'xdebug',
|
|
61
|
-
'7.4',
|
|
62
|
-
'darwin'
|
|
63
|
-
);
|
|
64
|
-
expect(darwin).toContain('add_brew_extension xdebug');
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
it('checking addCoverage with Xdebug3 on darwin', async () => {
|
|
68
|
-
const darwin: string = await coverage.addCoverage(
|
|
69
|
-
'xdebug3',
|
|
70
|
-
'7.4',
|
|
71
|
-
'darwin'
|
|
72
|
-
);
|
|
73
|
-
expect(darwin).toContain('add_brew_extension xdebug');
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
it('checking addCoverage with Xdebug2 on darwin', async () => {
|
|
77
|
-
const darwin: string = await coverage.addCoverage(
|
|
78
|
-
'xdebug2',
|
|
79
|
-
'7.4',
|
|
80
|
-
'darwin'
|
|
81
|
-
);
|
|
82
|
-
expect(darwin).toContain('add_brew_extension xdebug2');
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
it('checking disableCoverage windows', async () => {
|
|
86
|
-
const win32 = await coverage.addCoverage('none', '7.4', 'win32');
|
|
87
|
-
expect(win32).toContain('Remove-Extension xdebug');
|
|
88
|
-
expect(win32).toContain('Remove-Extension pcov');
|
|
89
|
-
});
|
|
90
|
-
|
|
91
|
-
it('checking disableCoverage on linux', async () => {
|
|
92
|
-
const linux: string = await coverage.addCoverage('none', '7.4', 'linux');
|
|
93
|
-
expect(linux).toContain('remove_extension xdebug');
|
|
94
|
-
expect(linux).toContain('remove_extension pcov');
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
it('checking disableCoverage on darwin', async () => {
|
|
98
|
-
const darwin: string = await coverage.addCoverage('none', '7.4', 'darwin');
|
|
99
|
-
expect(darwin).toContain('remove_extension xdebug');
|
|
100
|
-
expect(darwin).toContain('remove_extension pcov');
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
it('checking no or invalid coverage driver', async () => {
|
|
104
|
-
let nocov: string = await coverage.addCoverage('nocov', '7.x', 'any');
|
|
105
|
-
expect(nocov).toEqual('');
|
|
106
|
-
|
|
107
|
-
nocov = await coverage.addCoverage('', '7.x', 'any');
|
|
108
|
-
expect(nocov).toEqual('');
|
|
109
|
-
});
|
|
110
|
-
});
|