Skip to content

Commit

Permalink
Use composer-require-checker (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
kubawerlos authored and keradus committed Mar 25, 2019
1 parent a415702 commit 92e0ca8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .composer-require-checker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"symbol-whitelist": [
"PhpCsFixer\\PhpunitConstraintXmlMatchesXsd\\Constraint\\XmlMatchesXsd",

"null", "true", "false",
"static", "self", "parent",
"array", "string", "int", "float", "bool", "iterable", "callable", "void"
]
}
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ before_install:
- composer global show -ND 2>&1 | grep "hirak/prestissimo" || travis_retry composer global require $DEFAULT_COMPOSER_FLAGS hirak/prestissimo

install:
- composer update $DEFAULT_COMPOSER_FLAGS $COMPOSER_FLAGS
- travis_retry composer update $DEFAULT_COMPOSER_FLAGS $COMPOSER_FLAGS
- composer info -D | sort

script:
Expand All @@ -46,10 +46,12 @@ jobs:
stage: Static code analysis
php: 7.3
install:
- travis_retry composer update $DEFAULT_COMPOSER_FLAGS
- travis_retry composer update -d dev-tools $DEFAULT_COMPOSER_FLAGS
- composer info -d dev-tools -D | sort
script:
- composer validate --strict || travis_terminate 1
- composer normalize -d ./dev-tools ./../composer.json --dry-run || travis_terminate 1
- dev-tools/vendor/bin/composer-require-checker check composer.json --config-file=.composer-require-checker.json || travis_terminate 1
- dev-tools/vendor/bin/phpmd src,tests text phpmd.xml || travis_terminate 1
- dev-tools/vendor/bin/php-cs-fixer fix --diff --dry-run -v || travis_terminate 1
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
],
"require": {
"php": "^5.5 || ^7.0",
"ext-dom": "*",
"ext-libxml": "*",
"phpunit/phpunit": "^5.7.23 || ^6.4.3 || ^7.0 || ^8.0",
"phpunitgoodpractices/polyfill": "^1.1"
},
Expand Down

0 comments on commit 92e0ca8

Please sign in to comment.