-
Notifications
You must be signed in to change notification settings - Fork 1
/
composer.json
103 lines (103 loc) · 3.7 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
{
"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",
"ext-json": "*",
"psr/log": "^1.0"
},
"require-dev": {
"ext-pdo": "*",
"guzzlehttp/guzzle": "^6.5.5",
"justinrainbow/json-schema": "^5.2.10",
"monolog/monolog": "^2.0",
"php-ds/php-ds": "^1.3.0",
"phpstan/phpstan": "0.12.83",
"phpstan/phpstan-phpunit": "^0.12.17",
"phpunit/phpunit": "^8.5.13",
"react/http": "^0.8.7",
"squizlabs/php_codesniffer": "^3.5.8"
},
"suggest": {
"ext-curl": "*",
"monolog/monolog": "Allows for client-level logging and tracing"
},
"autoload": {
"psr-4": {
"Elastic\\Apm\\": "./src/ElasticApm/"
}
},
"autoload-dev": {
"psr-4": {
"ElasticApmTests\\": "./tests/ElasticApmTests/",
"ElasticApmExamples\\": "./examples/ElasticApmExamples/"
}
},
"config": {
"process-timeout": 0,
"sort-packages": true
},
"scripts": {
"php_codesniffer_check": [
"phpcs -s ./src/ElasticApm/",
"phpcs -s ./tests/",
"phpcs -s ./examples/"
],
"php_codesniffer_fix": [
"phpcbf ./src/ElasticApm",
"phpcbf ./tests",
"phpcbf ./examples/"
],
"phpstan-junit-report-for-ci": [
"phpstan analyse --error-format=junit -c ./phpstan.neon ./src/ElasticApm/ --level max --memory-limit=200M | tee build/elasticapm-phpstan-junit.xml",
"phpstan analyse --error-format=junit -c ./phpstan.neon ./tests/ --level max --memory-limit=200M --error-format=junit | tee build/tests-phpstan-junit.xml",
"phpstan analyse --error-format=junit -c ./phpstan.neon ./examples/ --level max --memory-limit=200M --error-format=junit | tee build/examples-phpstan-junit.xml"
],
"phpstan": [
"phpstan analyse -c ./phpstan.neon ./src/ElasticApm/ --level max --memory-limit=200M",
"phpstan analyse -c ./phpstan.neon ./tests/ --level max --memory-limit=200M",
"phpstan analyse -c ./phpstan.neon ./examples/ --level max --memory-limit=200M"
],
"static_check": [
"composer run-script php_codesniffer_check",
"composer run-script phpstan"
],
"run_unit_tests": [
"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_filter": [
"phpunit -c phpunit_component_tests.xml --filter"
],
"run_component_tests": [
"@putenv ELASTIC_APM_ENABLED=false",
"@putenv ELASTIC_APM_PHP_TESTS_APP_CODE_HOST_KIND=CLI_script",
"composer run-script run_component_tests_configured",
"@putenv ELASTIC_APM_PHP_TESTS_APP_CODE_HOST_KIND=CLI_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"
]
}
}