forked from coenjacobs/mozart
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathcomposer.json
111 lines (111 loc) · 4.91 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
{
"name": "brianhenryie/strauss",
"description": "Prefixes dependencies namespaces so they are unique to your plugin",
"authors": [
{
"name": "Brian Henry",
"email": "[email protected]"
},
{
"name": "Coen Jacobs",
"email": "[email protected]"
}
],
"bin": ["bin/strauss"],
"minimum-stability": "dev",
"prefer-stable": true,
"license": "MIT",
"require": {
"composer/class-map-generator": "^1.6.0",
"composer/composer": "*",
"elazar/flystream": "^0.x-dev",
"json-mapper/json-mapper": "^2.2",
"league/flysystem": "^2.1|^3.0",
"league/flysystem-memory": "*",
"nikic/php-parser": "^4.19",
"symfony/console": "^4|^5|^6|^7",
"symfony/finder": "^4|^5|^6|^7"
},
"autoload": {
"psr-4": {
"BrianHenryIE\\Strauss\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"BrianHenryIE\\Strauss\\Tests\\": "tests/",
"BrianHenryIE\\Strauss\\": [
"tests/",
"tests/Integration"
]
}
},
"require-dev": {
"php": "^7.4|^8.0",
"ext-json": "*",
"clue/phar-composer": "^1.2",
"jaschilz/php-coverage-badger": "^2.0",
"mheap/phpunit-github-actions-printer": "^1.4",
"mockery/mockery": "^1.6",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^9|^10",
"squizlabs/php_codesniffer": "^3.5"
},
"scripts": {
"post-install-cmd": [
"@install-phive-dependencies"
],
"post-update-cmd": [
"@install-phive-dependencies"
],
"cs": [
"phpcs",
"phpstan --memory-limit=4G"
],
"install-phive-dependencies": [
"if [ -z \"$(command -v phive)\" ]; then echo \"Phive is not installed. Run 'brew install gpg phive' or see https://phar.io/.\"; exit 1; fi;",
"phive install"
],
"cs-fix": [
"phpcbf || true",
"@cs"
],
"test": [
"phpunit"
],
"test-changes": [
"if [ -z \"$(command -v ./tools/php-diff-test)\" ]; then echo \"Please install 'php-diff-test' with 'phive install'.\"; exit 1; fi;",
"if [ \"$XDEBUG_MODE\" != \"coverage\" ]; then echo 'Run with XDEBUG_MODE=coverage composer test-changes'; exit 1; fi;",
"phpunit --filter=\"$(./tools/php-diff-test filter --input-files tests/_reports/php.cov --granularity=line)\" --coverage-text;"
],
"test-changes-report": [
"if [ -z \"$(command -v ./tools/php-diff-test)\" ]; then echo \"Please install 'php-diff-test' with 'phive install'.\"; exit 1; fi;",
"if [ -z \"$(command -v ./tools/phpcov)\" ]; then echo \"Please install 'phpcov' with 'phive install'.\"; exit 1; fi;",
"if [ \"$XDEBUG_MODE\" != \"coverage\" ]; then echo 'Run with XDEBUG_MODE=coverage composer test-changes-report'; exit 1; fi;",
"if [ -d \"tests/_reports/diff\" ]; then rm -rf tests/_reports/diff; fi;",
"phpunit --filter=\"$(./tools/php-diff-test filter --input-files tests/_reports/php.cov --granularity file)\" --coverage-text --coverage-php tests/_reports/diff/php.cov -d memory_limit=-1;",
"./tools/php-diff-test coverage --input-files tests/_reports/diff/php.cov --output-file tests/_reports/diff/php.cov;",
"./tools/phpcov merge tests/_reports/diff --html tests/_reports/diff/html;",
"open tests/_reports/diff/html/index.html"
],
"test-coverage": [
"Composer\\Config::disableProcessTimeout",
"if [ \"$XDEBUG_MODE\" != \"coverage\" ]; then echo \"Run with 'XDEBUG_MODE=coverage composer test-coverage'\"; exit 1; fi;",
"phpunit --filter=\"unit|integration\" --coverage-text --coverage-html tests/_reports/html --coverage-clover tests/_reports/clover.xml --coverage-php tests/_reports/php.cov -d memory_limit=-1 --order-by=random",
"php-coverage-badger tests/_reports/clover.xml .github/coverage.svg",
"if [ $(command -v ./tools/phpcov) ]; then git diff master...head > /tmp/master.diff; ./tools/phpcov patch-coverage --path-prefix $(pwd) ./tests/_reports/php.cov /tmp/master.diff || true; fi;",
"# Run 'open ./tests/_reports/html/index.html' to view report."
]
},
"scripts-descriptions": {
"test-changes": "Run PHPUnit only on lines that have changed in master...HEAD",
"test-changes-report": "Run PHPUnit only on files that have changed in master...HEAD and display the HTML report.",
"test-coverage": "Run PHPUnit tests with coverage. Use 'XDEBUG_MODE=coverage composer test-coverage' to run, 'open ./tests/_reports/html/index.html' to view."
},
"replace":{
"coenjacobs/mozart": "*"
},
"config": {
"sort-packages": true
}
}