Skip to content

Commit

Permalink
Update dev dependencies (#187)
Browse files Browse the repository at this point in the history
* composer: update dev dependencies

* phpstan fixes

* phpstan fixes

* phpstan fixes

* phpstan fixes

* drop probably forgotten humbug configs

* apply cs

* fix cs bug

* compsoer: add coding standard and phsptan dev friendly scripts

* ecs: add skipped errors

* cs: fix PHP 7.1

* fix cs

* ecs: exclude strict fixer that break code

* ecs: cleanup commented sets

* travis: use composer scripts for testing to prevent duplicated setup
  • Loading branch information
Tomáš Votruba authored and akondas committed Jan 6, 2018
1 parent a348111 commit 6660645
Show file tree
Hide file tree
Showing 25 changed files with 454 additions and 451 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/vendor/
humbuglog.*
.php_cs.cache
/build
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ install:

script:
- vendor/bin/phpunit $PHPUNIT_FLAGS
- if [[ $STATIC_ANALYSIS != "" ]]; then vendor/bin/ecs check src tests; fi
- if [[ $STATIC_ANALYSIS != "" ]]; then vendor/bin/phpstan.phar analyse src tests --level max --configuration phpstan.neon; fi
- if [[ $STATIC_ANALYSIS != "" ]]; then composer check-cs; fi
- if [[ $STATIC_ANALYSIS != "" ]]; then composer phpstan; fi

after_success:
- |
Expand Down
14 changes: 9 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@
"php": "^7.1"
},
"require-dev": {
"phpunit/phpunit": "^6.4",
"symplify/easy-coding-standard": "v3.0.0-RC3",
"symplify/coding-standard": "v3.0.0-RC3",
"symplify/package-builder": "v3.0.0-RC3",
"phpstan/phpstan-shim": "^0.8"
"phpunit/phpunit": "^6.5",
"symplify/easy-coding-standard": "^3.1",
"symplify/coding-standard": "^3.1",
"phpstan/phpstan-shim": "^0.9"
},
"autoload": {
"psr-4": {
Expand All @@ -30,5 +29,10 @@
"psr-4": {
"Phpml\\Tests\\": "tests/Phpml"
}
},
"scripts": {
"check-cs": "vendor/bin/ecs check src tests bin",
"fix-cs": "vendor/bin/ecs check src tests bin --fix",
"phpstan": "vendor/bin/phpstan.phar analyse src tests bin --level max --configuration phpstan.neon"
}
}
Loading

0 comments on commit 6660645

Please sign in to comment.