diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 58a68ff..6370895 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -7,7 +7,8 @@ build: dependencies: override: - composer self-update --no-interaction --no-progress - - composer install --no-interaction + - composer remove squizlabs/php_codesniffer friendsofphp/php-cs-fixer vimeo/psalm phpstan/phpstan --dev --no-interaction --no-progress --no-update + - composer install --no-interaction --no-progress nodes: php: tests: diff --git a/.travis.yml b/.travis.yml index 2cd038d..418473a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,14 +7,15 @@ php: ["7.0", "7.1", "7.2", "7.3", "7.4"] before_script: - phpenv config-rm xdebug.ini || true + - test $TRAVIS_PHP_VERSION == "7.0" && composer remove vimeo/psalm phpstan/phpstan --dev --no-interaction --no-progress --no-update || true - travis_retry composer install --no-interaction --no-progress --prefer-dist script: - vendor/bin/phpcs -sp src/ tests/ - vendor/bin/php-cs-fixer fix --using-cache=no --dry-run --verbose - vendor/bin/phpunit --testdox --verbose - - vendor/bin/phpstan analyse --no-progress --level max src/ tests/ - - vendor/bin/psalm --no-progress + - test $TRAVIS_PHP_VERSION != "7.0" && vendor/bin/phpstan analyse --no-progress --level max src/ tests/ || true + - test $TRAVIS_PHP_VERSION != "7.0" && vendor/bin/psalm --no-progress || true notifications: email: diff --git a/TODO.md b/TODO.md index fabc7f0..dac23bb 100644 --- a/TODO.md +++ b/TODO.md @@ -9,6 +9,8 @@ - [ ] `SchemaValidator` should be constructed using a `DOMDocument` - [ ] `SchemaValidator` should offer a new method `createFromString` - [ ] PHP Minimal version to 7.2 (or 7.1?) + - Build on Scrutinizer-CI removes squizlabs/php_codesniffer, friendsofphp/php-cs-fixer, vimeo/psalm & phpstan/phpstan + - Build on Travis-CI on 7.0 removes vimeo/psalm & phpstan/phpstan, else runs psalm & phpstan - [ ] Use strict types - [ ] Review all docblocks, remove or justify