Skip to content

Commit 92e0ca8

Browse files
kubawerloskeradus
authored andcommitted
Use composer-require-checker (#10)
1 parent a415702 commit 92e0ca8

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

.composer-require-checker.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"symbol-whitelist": [
3+
"PhpCsFixer\\PhpunitConstraintXmlMatchesXsd\\Constraint\\XmlMatchesXsd",
4+
5+
"null", "true", "false",
6+
"static", "self", "parent",
7+
"array", "string", "int", "float", "bool", "iterable", "callable", "void"
8+
]
9+
}

.travis.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ before_install:
3434
- composer global show -ND 2>&1 | grep "hirak/prestissimo" || travis_retry composer global require $DEFAULT_COMPOSER_FLAGS hirak/prestissimo
3535

3636
install:
37-
- composer update $DEFAULT_COMPOSER_FLAGS $COMPOSER_FLAGS
37+
- travis_retry composer update $DEFAULT_COMPOSER_FLAGS $COMPOSER_FLAGS
3838
- composer info -D | sort
3939

4040
script:
@@ -46,10 +46,12 @@ jobs:
4646
stage: Static code analysis
4747
php: 7.3
4848
install:
49+
- travis_retry composer update $DEFAULT_COMPOSER_FLAGS
4950
- travis_retry composer update -d dev-tools $DEFAULT_COMPOSER_FLAGS
5051
- composer info -d dev-tools -D | sort
5152
script:
5253
- composer validate --strict || travis_terminate 1
5354
- composer normalize -d ./dev-tools ./../composer.json --dry-run || travis_terminate 1
55+
- dev-tools/vendor/bin/composer-require-checker check composer.json --config-file=.composer-require-checker.json || travis_terminate 1
5456
- dev-tools/vendor/bin/phpmd src,tests text phpmd.xml || travis_terminate 1
5557
- dev-tools/vendor/bin/php-cs-fixer fix --diff --dry-run -v || travis_terminate 1

composer.json

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
],
1515
"require": {
1616
"php": "^5.5 || ^7.0",
17+
"ext-dom": "*",
18+
"ext-libxml": "*",
1719
"phpunit/phpunit": "^5.7.23 || ^6.4.3 || ^7.0 || ^8.0",
1820
"phpunitgoodpractices/polyfill": "^1.1"
1921
},

0 commit comments

Comments
 (0)