-
Notifications
You must be signed in to change notification settings - Fork 69
/
composer.json
143 lines (143 loc) · 5.51 KB
/
composer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
{
"name": "elastic/apm-agent",
"description": "Elastic APM PHP Agent",
"keywords": [ "elastic", "apm", "tracing", "apm-agent" ],
"type": "library",
"license": "Apache-2.0",
"authors": [
{ "name": "Sergey Kleyman" }
],
"require": {
"php": "^7.2||8.0.*||8.1.*||8.2.*||8.3.*",
"ext-json": "*",
"ext-pcntl": "*",
"psr/log": "^1.0"
},
"require-dev": {
"clue/docker-react": "^1.4",
"ext-ctype": "*",
"ext-curl": "*",
"ext-mysqli": "*",
"ext-pdo": "*",
"ext-pdo_sqlite": "*",
"ext-posix": "*",
"guzzlehttp/guzzle": "^6.5.5||^7.4.4",
"justinrainbow/json-schema": "^5.2.12",
"monolog/monolog": "^2.7",
"php-ds/php-ds": "^1.4.1",
"php-parallel-lint/php-console-highlighter": "^1.0",
"php-parallel-lint/php-parallel-lint": "1.3.2",
"phpstan/phpstan": "1.10.14",
"phpstan/phpstan-phpunit": "^1.1.1",
"phpunit/phpunit": "^8.5||^9.5",
"react/async": "^3.0",
"react/http": "^1.6",
"slevomat/coding-standard": "8.11.1",
"squizlabs/php_codesniffer": "3.7.2"
},
"suggest": {
"ext-curl": "*",
"monolog/monolog": "Allows for client-level logging and tracing"
},
"autoload": {
"psr-4": {
"Elastic\\Apm\\": "./agent/php/ElasticApm/"
}
},
"autoload-dev": {
"psr-4": {
"ElasticApmTests\\": "./tests/ElasticApmTests/",
"ElasticApmExamples\\": "./examples/ElasticApmExamples/"
}
},
"config": {
"process-timeout": 0,
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"scripts": {
"parallel-lint": [
"parallel-lint ./agent/php/ElasticApm/ ./tests/ --exclude ./tests/polyfills/"
],
"php_codesniffer_check": [
"phpcs -s ./agent/php/ElasticApm/",
"phpcs -s ./tests/",
"phpcs -s ./examples/"
],
"php_codesniffer_fix": [
"phpcbf ./agent/php/ElasticApm",
"phpcbf ./tests",
"phpcbf ./examples/"
],
"phpstan-junit-report-for-ci": [
"phpstan analyse --error-format=junit -c ./phpstan.neon ./agent/php/ElasticApm/ --level max --memory-limit=1G | tee build/elasticapm-phpstan-junit.xml",
"phpstan analyse --error-format=junit -c ./phpstan.neon ./tests/ --level max --memory-limit=1G --error-format=junit | tee build/tests-phpstan-junit.xml",
"phpstan analyse --error-format=junit -c ./phpstan.neon ./examples/ --level max --memory-limit=1G --error-format=junit | tee build/examples-phpstan-junit.xml"
],
"phpstan": [
"phpstan analyse -c ./phpstan.neon ./agent/php/ElasticApm/ --level max --memory-limit=1G",
"phpstan analyse -c ./phpstan.neon ./tests/ --level max --memory-limit=1G",
"phpstan analyse -c ./phpstan.neon ./examples/ --level max --memory-limit=1G"
],
"static_check": [
"composer run-script -- parallel-lint",
"composer run-script -- php_codesniffer_check",
"composer run-script -- phpstan"
],
"run_unit_tests": [
"phpunit"
],
"run_unit_tests_custom_config": [
"phpunit"
],
"run_unit_tests_filter": [
"phpunit --filter"
],
"static_check_and_run_unit_tests": [
"composer run-script -- static_check",
"composer run-script -- run_unit_tests"
],
"run_component_tests_configured": [
"phpunit -c phpunit_component_tests.xml"
],
"run_component_tests_configured_custom_config": [
"phpunit"
],
"run_component_tests_cli_filter": [
"composer run-script -- run_component_tests_cli --filter"
],
"run_component_tests_http_filter": [
"composer run-script -- run_component_tests_http --filter"
],
"run_component_tests": [
"composer run-script -- run_component_tests_http",
"composer run-script -- run_component_tests_cli"
],
"run_component_tests_custom_config": [
"composer run-script -- run_component_tests_http_custom_config",
"composer run-script -- run_component_tests_cli_custom_config"
],
"run_component_tests_cli": [
"ELASTIC_APM_ENABLED=false ELASTIC_APM_PHP_TESTS_APP_CODE_HOST_KIND=CLI_script composer run-script -- run_component_tests_configured"
],
"run_component_tests_http": [
"ELASTIC_APM_ENABLED=false ELASTIC_APM_PHP_TESTS_APP_CODE_HOST_KIND=Builtin_HTTP_server composer run-script -- run_component_tests_configured"
],
"run_component_tests_cli_custom_config": [
"ELASTIC_APM_ENABLED=false ELASTIC_APM_PHP_TESTS_APP_CODE_HOST_KIND=CLI_script composer run-script -- run_component_tests_configured"
],
"run_component_tests_http_custom_config": [
"ELASTIC_APM_ENABLED=false ELASTIC_APM_PHP_TESTS_APP_CODE_HOST_KIND=Builtin_HTTP_server composer run-script -- run_component_tests_configured"
],
"run_tests": [
"composer run-script -- run_unit_tests",
"composer run-script -- run_component_tests"
],
"static_check_and_run_tests": [
"composer run-script -- static_check",
"composer run-script -- run_tests"
]
}
}