2013-07-11 15:47:09 +04:00
|
|
|
{
|
2015-01-17 15:17:17 +03:00
|
|
|
"name": "deployer/deployer",
|
2013-07-11 15:47:09 +04:00
|
|
|
"description": "Deployment Tool",
|
|
|
|
"license": "MIT",
|
2016-11-05 14:14:40 +07:00
|
|
|
"homepage": "https://deployer.org",
|
2015-06-18 12:47:57 +02:00
|
|
|
"support": {
|
2020-04-25 23:00:08 +03:00
|
|
|
"docs": "https://deployer.org/docs",
|
2015-06-18 12:47:57 +02:00
|
|
|
"source": "https://github.com/deployphp/deployer",
|
2020-04-25 23:00:08 +03:00
|
|
|
"issues": "https://github.com/deployphp/deployer/issues"
|
2015-06-18 12:47:57 +02:00
|
|
|
},
|
2013-07-11 15:47:09 +04:00
|
|
|
"authors": [
|
|
|
|
{
|
2014-11-29 22:36:19 +03:00
|
|
|
"name": "Anton Medvedev",
|
2016-01-11 12:51:59 +07:00
|
|
|
"email": "anton@medv.io"
|
2013-07-11 15:47:09 +04:00
|
|
|
}
|
|
|
|
],
|
2020-10-25 09:51:47 +01:00
|
|
|
"funding": [
|
|
|
|
{
|
|
|
|
"type": "github",
|
|
|
|
"url": "https://github.com/sponsors/antonmedv"
|
|
|
|
}
|
|
|
|
],
|
2013-07-11 15:47:09 +04:00
|
|
|
"autoload": {
|
2014-07-04 12:17:41 +04:00
|
|
|
"psr-4": {
|
2015-02-20 15:14:38 +03:00
|
|
|
"Deployer\\": "src/"
|
2017-02-14 14:28:22 +01:00
|
|
|
},
|
|
|
|
"files": [
|
2017-03-19 01:00:28 +07:00
|
|
|
"src/Support/helpers.php",
|
2017-02-14 14:28:22 +01:00
|
|
|
"src/functions.php"
|
|
|
|
]
|
2013-07-11 15:47:09 +04:00
|
|
|
},
|
2020-04-25 23:00:08 +03:00
|
|
|
"scripts": {
|
2020-10-09 00:15:28 +02:00
|
|
|
"test": "pest",
|
2021-03-12 13:56:16 +03:00
|
|
|
"test:e2e": "pest --config tests/e2e/phpunit-e2e.xml",
|
2020-11-17 22:59:18 +01:00
|
|
|
"phpcs": "phpcs",
|
2020-10-25 09:46:47 +01:00
|
|
|
"phpstan": "phpstan analyse -c phpstan.neon",
|
2021-03-13 23:50:38 +03:00
|
|
|
"phpstan:baseline": "@phpstan --generate-baseline tests/phpstan-baseline.neon"
|
2020-04-25 23:00:08 +03:00
|
|
|
},
|
2014-07-04 12:17:41 +04:00
|
|
|
"bin": [
|
|
|
|
"bin/dep"
|
|
|
|
],
|
2013-07-11 15:47:09 +04:00
|
|
|
"require": {
|
2021-09-24 00:07:16 +02:00
|
|
|
"php": "^8.0|^7.3",
|
2021-10-21 21:11:52 +02:00
|
|
|
"ext-json": "*",
|
2021-10-22 23:18:58 +02:00
|
|
|
"justinrainbow/json-schema": "^5.2",
|
2020-07-26 22:35:08 +03:00
|
|
|
"psr/http-message": "^1",
|
|
|
|
"react/http": "^1",
|
2020-04-25 23:00:08 +03:00
|
|
|
"symfony/console": "^5",
|
2021-02-23 08:50:46 +01:00
|
|
|
"symfony/polyfill-php80": "^1.22",
|
2020-04-25 23:00:08 +03:00
|
|
|
"symfony/process": "^5",
|
|
|
|
"symfony/yaml": "^5"
|
2013-07-11 15:47:09 +04:00
|
|
|
},
|
|
|
|
"require-dev": {
|
2021-03-12 13:56:16 +03:00
|
|
|
"pestphp/pest": "^1.0",
|
2020-11-02 12:13:57 +01:00
|
|
|
"phpstan/phpstan": "^0.12.53",
|
Added support for code coverage in E2E tests (#2533)
The E2E docker-compose stack has been modified to include code
coverage for all scripts that are kept in /project and are not
in the exclusion list.
The start command for `deployer` container has been replaced
with a `start-e2e-test.sh` script, which will execute E2E tests,
generate a Clover report and then return the exit code of E2E test
process to make sure that CI is aware of the test result.
Whole idea for collecting E2E coverage has been inspired by the
[this][1] article. All of scripts in `deployer` container will
now start with additional wrapper-like PHP code, which checks
if the `PHP_CCOV_START_FILE` variable is present. If not,
then nothing happens, but if the variable points to a PHP file,
then that file is being included.
The `docker-compose.yml` file has `PHP_CCOV_START_FILE` configured
to point to a file, which sets up code coverage, that starts counting
which instructions in `/project` directory have been called. Once
`php` interpreter starts shutting down, the coverage report is being
dumped into temporary files.
Once all tests have been processed, a script for merging partial
coverage reports is executed and finally a Clover code coverage file
is stored in the path defined in the `PHP_CCOV_OUTPUT_FILE` env var.
[1]: https://tarunlalwani.com/post/php-code-coverage-web-selenium/
2021-05-02 15:15:19 +02:00
|
|
|
"phpunit/php-code-coverage": "^9.2",
|
2020-10-09 00:15:28 +02:00
|
|
|
"phpunit/phpunit": "^9.3",
|
2020-10-07 20:48:33 +02:00
|
|
|
"slevomat/coding-standard": "^6.4",
|
|
|
|
"squizlabs/php_codesniffer": "^3.5"
|
2015-01-16 14:23:27 +03:00
|
|
|
},
|
2017-02-16 08:50:44 +01:00
|
|
|
"config": {
|
2021-03-13 23:50:38 +03:00
|
|
|
"sort-packages": true,
|
2021-10-22 23:41:48 +02:00
|
|
|
"process-timeout": 0,
|
|
|
|
"platform": {
|
|
|
|
"php": "7.3.0"
|
|
|
|
}
|
2015-02-17 12:38:28 +03:00
|
|
|
}
|
2013-07-11 15:47:09 +04:00
|
|
|
}
|