Skip to content

Commit be075f8

Browse files
committed
Composer config
1 parent 1f19bcd commit be075f8

File tree

2 files changed

+2015
-0
lines changed

2 files changed

+2015
-0
lines changed

Diff for: composer.json

+82
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
{
2+
"name": "api-clients/psr7-http-status-exceptions",
3+
"description": "PSR-7 Response wrapping exceptions",
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/middleware": "^2.0",
14+
"psr/http-message": "^1.0"
15+
},
16+
"require-dev": {
17+
"api-clients/test-utilities": "^3.0.1",
18+
"ringcentral/psr7": "^1.2"
19+
},
20+
"autoload": {
21+
"psr-4": {
22+
"ApiClients\\Tools\\Psr7\\HttpStatusExceptions\\": "src/"
23+
}
24+
},
25+
"autoload-dev": {
26+
"psr-4": {
27+
"ApiClients\\Tests\\Tools\\Psr7\\HttpStatusExceptions\\": "tests/"
28+
}
29+
},
30+
"config": {
31+
"sort-packages": true
32+
},
33+
"scripts": {
34+
"ensure-installed": "composer install --ansi -n -q",
35+
"cs": [
36+
"@ensure-installed",
37+
"phpcs --standard=PSR2 src/"
38+
],
39+
"unit": [
40+
"@ensure-installed",
41+
"phpunit --colors=always -c phpunit.xml.dist"
42+
],
43+
"unit-coverage": [
44+
"@ensure-installed",
45+
"phpunit --colors=always -c phpunit.xml.dist --coverage-text --coverage-html covHtml --coverage-clover ./build/logs/clover.xml"
46+
],
47+
"lint-php": [
48+
"@ensure-installed",
49+
"parallel-lint --exclude vendor ."
50+
],
51+
"qa-all": [
52+
"@lint-php",
53+
"@cs",
54+
"@unit"
55+
],
56+
"qa-all-coverage": [
57+
"@lint-php",
58+
"@cs",
59+
"@unit-coverage"
60+
],
61+
"qa-windows": [
62+
"@lint-php",
63+
"@cs",
64+
"@unit"
65+
],
66+
"qa-ci": [
67+
"@qa-all"
68+
],
69+
"qa-ci-coverage": [
70+
"@qa-all-coverage"
71+
],
72+
"qa-ci-windows": [
73+
"@qa-windows"
74+
],
75+
"qa-contrib": [
76+
"@qa-all"
77+
],
78+
"ci-coverage": [
79+
"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"
80+
]
81+
}
82+
}

0 commit comments

Comments
 (0)