Skip to content

Commit

Permalink
Version 2.1.1-2
Browse files Browse the repository at this point in the history
Make build compatible with PHP 7.0 and psalm
  • Loading branch information
eclipxe13 committed Jan 8, 2020
1 parent 8cd9eeb commit 31bb4c1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 31bb4c1

Please sign in to comment.