/
composer.json
68 lines (68 loc) · 3.03 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
{
"name": "chubbyphp/chubbyphp-validation",
"description": "Chubbyphp Validate",
"keywords": ["chubbyphp", "slim", "validation"],
"license": "MIT",
"authors": [
{
"name": "Dominik Zogg",
"email": "dominik.zogg@gmail.com"
}
],
"require": {
"php": "^7.2",
"psr/log": "^1.0"
},
"require-dev": {
"chubbyphp/chubbyphp-container": "^1.0",
"chubbyphp/chubbyphp-mock": "^1.4.2",
"doctrine/persistence": "^1.3",
"friendsofphp/php-cs-fixer": "^2.16.1",
"infection/infection": "^0.14.3",
"mavimo/phpstan-junit": "^0.2.3",
"nunomaduro/phpinsights": "^1.11",
"php-coveralls/php-coveralls": "^2.2",
"phploc/phploc": "^5.0",
"phpstan/extension-installer": "^1.0.3",
"phpstan/phpstan": "^0.11.19",
"phpunit/phpunit": "^8.4.3",
"pimple/pimple": "^3.2.3",
"psr/container": "^1.0",
"symfony/validator": "^3.4|^4.2|^5.0"
},
"autoload": {
"psr-4": { "Chubbyphp\\Validation\\": "src/" }
},
"autoload-dev": {
"psr-4": { "Chubbyphp\\Tests\\Validation\\": "tests/" }
},
"config": {
"sort-packages": true
},
"extra": {
"branch-alias": {
"dev-master": "3.7-dev"
}
},
"scripts": {
"fix:cs": "mkdir -p build && vendor/bin/php-cs-fixer fix --cache-file=build/phpcs.cache",
"test": [
"@test:lint",
"@test:unit",
"@test:integration",
"@test:infection",
"@test:static-analysis",
"@test:loc",
"@test:cs",
"@test:insights"
],
"test:cs": "mkdir -p build && vendor/bin/php-cs-fixer fix --dry-run --stop-on-violation --cache-file=build/phpcs.cache",
"test:infection": "vendor/bin/infection --threads=$(nproc) --min-msi=91 --verbose --coverage=build/phpunit",
"test:insights": "mkdir -p build && bash -c 'vendor/bin/phpinsights analyse -v --no-interaction --min-quality=94 --disable-security-check | tee build/phpinsights.log; if [ ${PIPESTATUS[0]} -ne \"0\" ]; then exit 1; fi'",
"test:integration": "vendor/bin/phpunit --testsuite=Integration --cache-result-file=build/phpunit/phpunit.result.cache",
"test:lint": "mkdir -p build && find src tests -name '*.php' -print0 | xargs -0 -n1 -P$(nproc) php -l | tee build/phplint.log",
"test:loc": "mkdir -p build && vendor/bin/phploc src --verbose | tee build/phploc.log",
"test:static-analysis": "mkdir -p build && bash -c 'vendor/bin/phpstan analyse src --no-progress --level=7 --error-format=junit | tee build/phpstan.junit.xml; if [ ${PIPESTATUS[0]} -ne \"0\" ]; then exit 1; fi'",
"test:unit": "phpdbg -qrr vendor/bin/phpunit --testsuite=Unit --coverage-text --coverage-clover=build/phpunit/phpunit.clover.xml --coverage-html=build/phpunit/coverage-html --coverage-xml=build/phpunit/coverage-xml --log-junit=build/phpunit/phpunit.junit.xml --cache-result-file=build/phpunit/phpunit.result.cache"
}
}