Skip to content

Commit

Permalink
Merge pull request #25 from rpkamp/composer-require-checker
Browse files Browse the repository at this point in the history
Add ComposerRequireChecker to tests
  • Loading branch information
rpkamp committed Mar 19, 2019
2 parents 09e9624 + 20b5969 commit 312787c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ help:
@awk '/^#/{c=substr($$0,3);next}c&&/^[[:alpha:]][[:alnum:]_-]+:/{print substr($$1,1,index($$1,":")),c}1{c=0}' $(MAKEFILE_LIST) | column -s: -t

# Run all tests
test: lint code-style unit-tests phpstan
test: lint code-style unit-tests phpstan composer-require-checker

# Lint all php files
lint:
Expand Down Expand Up @@ -31,4 +31,8 @@ endif
phpstan:
vendor/bin/phpstan analyze --level max src/ tests/

composer-require-checker:
vendor/bin/composer-require-checker

.PHONY: help test lint code-style phpmd phpcs unit-tests phpstan
.PHONY: composer-require-checker
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"minimum-stability": "stable",
"require": {
"php": "^7.2",
"ext-json": "*",
"php-http/client-implementation": "^1.0",
"php-http/httplug": "^1.0",
"php-http/message-factory": "^1.0",
Expand All @@ -36,6 +37,7 @@
"squizlabs/php_codesniffer": "^3.4",
"swiftmailer/swiftmailer": "^6.0",
"phpstan/phpstan": "^0.11",
"pdepend/pdepend": "^2.5"
"pdepend/pdepend": "^2.5",
"maglnet/composer-require-checker": "^2.0"
}
}

0 comments on commit 312787c

Please sign in to comment.