Skip to content

Commit 627a2a9

Browse files
committed
Updated scripts in composer.json and Makefile
1 parent be5cfef commit 627a2a9

File tree

3 files changed

+255
-89
lines changed

3 files changed

+255
-89
lines changed

Makefile

Lines changed: 12 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,10 @@ 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

composer.json

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
],
1212
"require": {
1313
"php": "^7.0",
14-
"api-clients/middleware": "dev-master",
14+
"api-clients/middleware": "^1.0",
1515
"api-clients/psr7-oauth1": "^2.0",
1616
"guzzlehttp/psr7": "^1.3",
1717
"wyrihaximus/ticking-promise": "^1.6"
1818
},
1919
"require-dev": {
20-
"api-clients/test-utilities": "dev-master"
20+
"api-clients/test-utilities": "^1.0"
2121
},
2222
"autoload": {
2323
"psr-4": {
@@ -40,24 +40,37 @@
4040
],
4141
"unit": [
4242
"@ensure-installed",
43-
"phpunit --colors=always -c phpunit.xml.dist --coverage-text --coverage-html covHtml"
43+
"phpunit --colors=always -c phpunit.xml.dist"
4444
],
45-
"mutation": [
45+
"unit-coverage": [
4646
"@ensure-installed",
47-
"if [ `php -m | grep xdebug | wc -l` -gt 0 ]; then humbug --ansi --incremental; fi"
47+
"phpunit --colors=always -c phpunit.xml.dist --coverage-text --coverage-html covHtml --coverage-clover ./build/logs/clover.xml"
48+
],
49+
"lint-php": [
50+
"@ensure-installed",
51+
"parallel-lint --exclude vendor ."
4852
],
4953
"qa-all": [
54+
"@lint-php",
55+
"@cs",
56+
"@unit"
57+
],
58+
"qa-all-coverage": [
59+
"@lint-php",
5060
"@cs",
51-
"@unit",
52-
"@mutation"
61+
"@unit-coverage"
5362
],
5463
"qa-windows": [
64+
"@lint-php",
5565
"@cs",
5666
"@unit"
5767
],
5868
"qa-ci": [
5969
"@qa-all"
6070
],
71+
"qa-ci-coverage": [
72+
"@qa-all-coverage"
73+
],
6174
"qa-ci-windows": [
6275
"@qa-windows"
6376
],

0 commit comments

Comments
 (0)