Skip to content

Commit

Permalink
Merge pull request #16 from paycoreio/feature/PC-7705-reverse-filter
Browse files Browse the repository at this point in the history
PC-7705: add reverse filter
  • Loading branch information
dzubchik authored Jul 19, 2021
2 parents c6a3553 + ead162b commit f81de70
Show file tree
Hide file tree
Showing 7 changed files with 4,694 additions and 9 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
vendor
composer.lock
build
.php_cs.cache
15 changes: 11 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,26 @@ cache:
- vendor

php:
- '7.3'
- '7.4'

before_script:
- composer install -o --ignore-platform-reqs
- echo "xdebug.mode = coverage" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

after_script:
- |
if [ $TRAVIS_PHP_VERSION = '7.4' ]; then
travis_retry wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
fi
install:
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- travis_retry composer self-update && composer --version

script:
- if [ $TRAVIS_PHP_VERSION = '7.3' ]; then ./vendor/bin/phpstan analyze -c .phpstan.neon --level=1 src;fi
- if [ $TRAVIS_PHP_VERSION = '7.4' ]; then ./vendor/bin/phpstan analyze -c .phpstan.neon --level=1 src;fi
# check the code style
- if [ $TRAVIS_PHP_VERSION = '7.3' ]; then IFS=$'\n'; COMMIT_SCA_FILES=($(git diff --name-only --diff-filter=ACMRTUXB "${TRAVIS_COMMIT_RANGE}")); unset IFS; fi
- if [ $TRAVIS_PHP_VERSION = '7.3' ]; then ./vendor/bin/php-cs-fixer fix --config=.php_cs.php -v --dry-run --stop-on-violation --using-cache=no --path-mode=intersection -- "${COMMIT_SCA_FILES[@]}";fi
- if [ $TRAVIS_PHP_VERSION = '7.4' ]; then IFS=$'\n'; COMMIT_SCA_FILES=($(git diff --name-only --diff-filter=ACMRTUXB "${TRAVIS_COMMIT_RANGE}")); unset IFS; fi
- if [ $TRAVIS_PHP_VERSION = '7.4' ]; then ./vendor/bin/php-cs-fixer fix --config=.php_cs.php -v --dry-run --stop-on-violation --using-cache=no --path-mode=intersection -- "${COMMIT_SCA_FILES[@]}";fi
- vendor/bin/phpunit --configuration phpunit.xml
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"license": "MIT",
"type": "project",
"require": {
"php": "^7.3",
"php": "^7.4",
"doctrine/orm": "^2.5",
"neomerx/json-api": "^1.0|^2.0",
"nesbot/carbon": "^1.21|^2.4",
Expand All @@ -13,7 +13,8 @@
"require-dev": {
"phpunit/phpunit": "^9",
"friendsofphp/php-cs-fixer": "^2.8",
"phpstan/phpstan": "^0.9"
"phpstan/phpstan": "^0.12",
"doctrine/cache": "^1.11"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit f81de70

Please sign in to comment.