|
16 | 16 | "infection/infection": "^0.11.0",
|
17 | 17 | "jakub-onderka/php-console-highlighter": "^0.4",
|
18 | 18 | "jakub-onderka/php-parallel-lint": "^1.0.0",
|
19 |
| - "localheinz/composer-normalize": "^0.9.0", |
| 19 | + "localheinz/composer-normalize": "^1.0.0", |
20 | 20 | "phpunit/phpunit": "^7.1"
|
21 | 21 | },
|
22 | 22 | "require-dev": {},
|
|
40 | 40 | ]
|
41 | 41 | },
|
42 | 42 | "scripts": {
|
43 |
| - "post-update-cmd": [ |
| 43 | + "post-install-cmd": [ |
44 | 44 | "composer normalize"
|
45 | 45 | ],
|
46 |
| - "post-install-cmd": [ |
| 46 | + "post-update-cmd": [ |
47 | 47 | "composer normalize"
|
48 | 48 | ],
|
49 |
| - "ensure-installed": "composer install --ansi -n -q", |
| 49 | + "ci-coverage": [ |
| 50 | + "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" |
| 51 | + ], |
50 | 52 | "cs": [
|
51 | 53 | "@ensure-installed",
|
52 | 54 | "php-cs-fixer fix --config=.php_cs --ansi --dry-run --diff --verbose --allow-risky=yes --show-progress=estimating"
|
|
55 | 57 | "@ensure-installed",
|
56 | 58 | "php-cs-fixer fix --config=.php_cs --ansi --verbose --allow-risky=yes --show-progress=estimating"
|
57 | 59 | ],
|
58 |
| - "unit": [ |
59 |
| - "@ensure-installed", |
60 |
| - "phpunit --colors=always -c phpunit.xml.dist" |
61 |
| - ], |
62 |
| - "unit-coverage": [ |
| 60 | + "ensure-installed": "composer install --ansi -n -q", |
| 61 | + "infection": [ |
63 | 62 | "@ensure-installed",
|
64 |
| - "phpunit --colors=always -c phpunit.xml.dist --coverage-text --coverage-html covHtml --coverage-clover ./build/logs/clover.xml" |
| 63 | + "infection --ansi --threads=4" |
65 | 64 | ],
|
66 | 65 | "lint-php": [
|
67 | 66 | "@ensure-installed",
|
68 | 67 | "parallel-lint --exclude vendor ."
|
69 | 68 | ],
|
70 |
| - "infection": [ |
71 |
| - "@ensure-installed", |
72 |
| - "infection --ansi --threads=4" |
73 |
| - ], |
74 | 69 | "qa-all": [
|
75 | 70 | "composer validate --ansi",
|
76 | 71 | "composer normalize --ansi",
|
|
86 | 81 | "@unit-coverage",
|
87 | 82 | "@infection"
|
88 | 83 | ],
|
89 |
| - "qa-windows": [ |
90 |
| - "@lint-php", |
91 |
| - "@cs", |
92 |
| - "@unit" |
93 |
| - ], |
94 | 84 | "qa-ci": [
|
95 | 85 | "@unit"
|
96 | 86 | ],
|
|
103 | 93 | "qa-contrib": [
|
104 | 94 | "@qa-all"
|
105 | 95 | ],
|
106 |
| - "ci-coverage": [ |
107 |
| - "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" |
| 96 | + "qa-windows": [ |
| 97 | + "@lint-php", |
| 98 | + "@cs", |
| 99 | + "@unit" |
| 100 | + ], |
| 101 | + "unit": [ |
| 102 | + "@ensure-installed", |
| 103 | + "phpunit --colors=always -c phpunit.xml.dist" |
| 104 | + ], |
| 105 | + "unit-coverage": [ |
| 106 | + "@ensure-installed", |
| 107 | + "phpunit --colors=always -c phpunit.xml.dist --coverage-text --coverage-html covHtml --coverage-clover ./build/logs/clover.xml" |
108 | 108 | ]
|
109 | 109 | }
|
110 | 110 | }
|
0 commit comments