Skip to content

Commit a995a35

Browse files
committed
Composer config
1 parent d29fc3c commit a995a35

File tree

2 files changed

+4305
-0
lines changed

2 files changed

+4305
-0
lines changed

composer.json

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
{
2+
"name": "api-clients/middleware-xml",
3+
"description": "Middleware taking care of encoding and decoding XML bodies",
4+
"license": "MIT",
5+
"authors": [
6+
{
7+
"name": "Cees-jan Kiewiet",
8+
"email": "[email protected]"
9+
}
10+
],
11+
"require": {
12+
"php": "^7.0",
13+
"api-clients/installer": "^1.0",
14+
"api-clients/middleware": "^4.0",
15+
"ringcentral/psr7": "^1.2"
16+
},
17+
"require-dev": {
18+
"api-clients/test-utilities": "^4.1"
19+
},
20+
"autoload": {
21+
"psr-4": {
22+
"ApiClients\\Middleware\\Xml\\": "src/"
23+
}
24+
},
25+
"autoload-dev": {
26+
"psr-4": {
27+
"ApiClients\\Tests\\Middleware\\Xml\\": "tests/"
28+
}
29+
},
30+
"config": {
31+
"sort-packages": true,
32+
"platform": {
33+
"php": "7.0"
34+
}
35+
},
36+
"scripts": {
37+
"ensure-installed": "composer install --ansi -n -q",
38+
"cs": [
39+
"@ensure-installed",
40+
"php-cs-fixer fix --config=.php_cs --ansi --dry-run --diff --verbose --allow-risky=yes --show-progress=estimating"
41+
],
42+
"cs-fix": [
43+
"@ensure-installed",
44+
"php-cs-fixer fix --config=.php_cs --ansi --verbose --allow-risky=yes --show-progress=estimating"
45+
],
46+
"unit": [
47+
"@ensure-installed",
48+
"phpunit --colors=always -c phpunit.xml.dist"
49+
],
50+
"unit-coverage": [
51+
"@ensure-installed",
52+
"phpunit --colors=always -c phpunit.xml.dist --coverage-text --coverage-html covHtml --coverage-clover ./build/logs/clover.xml"
53+
],
54+
"lint-php": [
55+
"@ensure-installed",
56+
"parallel-lint --exclude vendor ."
57+
],
58+
"qa-all": [
59+
"@lint-php",
60+
"@cs",
61+
"@unit"
62+
],
63+
"qa-all-coverage": [
64+
"@lint-php",
65+
"@cs",
66+
"@unit-coverage"
67+
],
68+
"qa-windows": [
69+
"@lint-php",
70+
"@cs",
71+
"@unit"
72+
],
73+
"qa-ci": [
74+
"@unit"
75+
],
76+
"qa-ci-extended": [
77+
"@qa-all-coverage"
78+
],
79+
"qa-ci-windows": [
80+
"@qa-windows"
81+
],
82+
"qa-contrib": [
83+
"@qa-all"
84+
],
85+
"ci-coverage": [
86+
"if [ -f ./build/logs/clover.xml ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover ./build/logs/clover.xml; fi"
87+
],
88+
"post-create-project-cmd": [
89+
"ApiClients\\Tools\\Installer\\Installer::postCreateProject",
90+
"composer update --no-autoloader --ansi",
91+
"composer update --ansi",
92+
"@cs-fix",
93+
"@qa-all"
94+
]
95+
}
96+
}

0 commit comments

Comments
 (0)