Skip to content

Commit 7adec34

Browse files
committed
Updated composer.json and makefile to the current specs
1 parent 3ea34a0 commit 7adec34

File tree

3 files changed

+102
-71
lines changed

3 files changed

+102
-71
lines changed

Makefile

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
all:
2-
composer qa-all
2+
composer run-script qa-all --timeout=0
3+
4+
all-coverage:
5+
composer run-script qa-all-coverage --timeout=0
36

47
ci:
5-
composer qa-ci
8+
composer run-script qa-ci --timeout=0
9+
10+
ci-with-coverage:
11+
composer run-script qa-ci-coverage --timeout=0
612

713
contrib:
8-
composer qa-contrib
14+
composer run-script qa-contrib --timeout=0
915

1016
init:
1117
composer ensure-installed
@@ -14,10 +20,16 @@ cs:
1420
composer cs
1521

1622
unit:
17-
composer unit
23+
composer run-script unit --timeout=0
1824

19-
mutation:
20-
composer mutation
25+
unit-coverage:
26+
composer run-script unit-coverage --timeout=0
2127

2228
ci-coverage: init
2329
composer ci-coverage
30+
31+
mutation:
32+
composer mutation
33+
34+
generate-test-resources: init
35+
./api-client-resource-generator ./tests/yaml/* ./tests/resources-src/ ./tests/resources-tests

composer.json

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
"ApiClients\\Tests\\Tools\\TestUtilities\\": "tests/"
2929
}
3030
},
31+
"require-dev": {
32+
},
3133
"config": {
3234
"sort-packages": true
3335
},
@@ -39,7 +41,11 @@
3941
],
4042
"unit": [
4143
"@ensure-installed",
42-
"phpunit --colors=always -c phpunit.xml.dist --coverage-text --coverage-html covHtml"
44+
"phpunit --colors=always -c phpunit.xml.dist"
45+
],
46+
"unit-coverage": [
47+
"@ensure-installed",
48+
"phpunit --colors=always -c phpunit.xml.dist --coverage-text --coverage-html covHtml --coverage-clover ./build/logs/clover.xml"
4349
],
4450
"mutation": [
4551
"@ensure-installed",
@@ -52,8 +58,12 @@
5258
"qa-all": [
5359
"@lint-php",
5460
"@cs",
55-
"@unit",
56-
"@mutation"
61+
"@unit"
62+
],
63+
"qa-all-coverage": [
64+
"@lint-php",
65+
"@cs",
66+
"@unit-coverage"
5767
],
5868
"qa-windows": [
5969
"@lint-php",
@@ -63,6 +73,9 @@
6373
"qa-ci": [
6474
"@qa-all"
6575
],
76+
"qa-ci-coverage": [
77+
"@qa-all-coverage"
78+
],
6679
"qa-ci-windows": [
6780
"@qa-windows"
6881
],
@@ -72,7 +85,5 @@
7285
"ci-coverage": [
7386
"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"
7487
]
75-
},
76-
"require-dev": {
7788
}
7889
}

0 commit comments

Comments
 (0)