Skip to content

Commit 11657d5

Browse files
committed
Update build
1 parent 18639bf commit 11657d5

File tree

4 files changed

+23
-17
lines changed

4 files changed

+23
-17
lines changed

.scrutinizer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ build:
3434
tests:
3535
before:
3636
-
37-
command: composer test-coverage
37+
command: composer test:coverage
3838
coverage:
3939
file: 'build/logs/clover.xml'
4040
format: 'clover'

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ language: php
33
php:
44
- 7.2
55
- 7.3
6+
- 7.4
67

78
dist: bionic
89

@@ -16,4 +17,4 @@ before_script:
1617
- cd $TRAVIS_BUILD_DIR
1718

1819
script:
19-
- composer check-all
20+
- composer check

composer.json

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,30 +18,31 @@
1818
},
1919
"require-dev": {
2020
"fig/http-message-util": "^1.1",
21+
"friendsofphp/php-cs-fixer": "^2.16",
2122
"overtrue/phplint": "^1.1",
22-
"phpstan/phpstan": "0.*",
23-
"phpunit/phpunit": "^7.0|^8.0",
23+
"phpstan/phpstan": "^0.12",
24+
"phpunit/phpunit": "^7 || ^8 || ^9",
2425
"relay/relay": "^2.0",
2526
"slim/psr7": "^1",
2627
"squizlabs/php_codesniffer": "^3.4",
2728
"symfony/validator": "^5.1"
2829
},
2930
"scripts": {
30-
"test": "phpunit --configuration phpunit.xml",
31-
"test-coverage": "phpunit --configuration phpunit.xml --coverage-clover build/logs/clover.xml --coverage-html build/coverage",
32-
"check-style": "phpcs --standard=phpcs.xml",
33-
"fix-style": "phpcbf --standard=phpcs.xml",
34-
"phpstan": "phpstan analyse src --level=max -c phpstan.neon --no-progress",
35-
"lint": "phplint ./ --exclude=vendor --no-interaction --no-cache",
36-
"install-cs": "php -r \"@mkdir('build'); copy('https://cs.symfony.com/download/php-cs-fixer-v2.phar', 'build/php-cs-fixer-v2.phar');\"",
37-
"fix-cs": "php build/php-cs-fixer-v2.phar fix --config=.cs.php",
38-
"check-cs": "php build/php-cs-fixer-v2.phar fix --dry-run --format=txt --verbose --diff --diff-format=udiff --config=.cs.php",
39-
"check-all": [
31+
"check": [
4032
"@lint",
41-
"@check-style",
33+
"@cs:check",
34+
"@sniffer:check",
4235
"@phpstan",
43-
"@test-coverage"
44-
]
36+
"@test:coverage"
37+
],
38+
"cs:check": "php-cs-fixer fix --dry-run --format=txt --verbose --diff --diff-format=udiff --config=.cs.php",
39+
"cs:fix": "php-cs-fixer fix --config=.cs.php",
40+
"lint": "phplint ./ --exclude=vendor --no-interaction --no-cache",
41+
"phpstan": "phpstan analyse src --level=max -c phpstan.neon --no-progress --ansi",
42+
"sniffer:check": "phpcs --standard=phpcs.xml",
43+
"sniffer:fix": "phpcbf --standard=phpcs.xml",
44+
"test": "phpunit --configuration phpunit.xml --do-not-cache-result --colors=always",
45+
"test:coverage": "phpunit --configuration phpunit.xml --do-not-cache-result --colors=always --coverage-clover build/logs/clover.xml --coverage-html build/coverage"
4546
},
4647
"autoload": {
4748
"psr-4": {

phpstan.neon

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
parameters:
2+
reportUnmatchedIgnoredErrors: false
3+
checkMissingIterableValueType: false
4+
checkGenericClassInNonGenericObjectType: false

0 commit comments

Comments
 (0)