File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ return PhpCsFixer\Config::create()
2121 'psr4 ' => true ,
2222 'strict_param ' => true ,
2323 ))
24+ ->setCacheFile (getenv ('TRAVIS ' ) ? getenv ('HOME ' ) . '/.php-cs-fixer ' : __DIR__ .'/var/.php_cs.cache ' )
2425 ->setFinder (
2526 PhpCsFixer \Finder::create ()
2627 ->in (__DIR__ )
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ matrix:
3838cache :
3939 directories :
4040 - $HOME/.composer/cache
41+ - $HOME/.php-cs-fixer
4142
4243before_install :
4344 - echo "extension = mongodb.so" >> $HOME/.phpenv/versions/$(phpenv version-name)/etc/php.ini
@@ -53,7 +54,7 @@ install:
5354
5455script :
5556 - IFS=$'\n'; COMMIT_SCA_FILES=($(git diff --name-only --diff-filter=ACMRTUXB "${TRAVIS_COMMIT_RANGE}")); unset IFS
56- - if [ "$PHP_CS_FIXER" = true ]; then ./bin/php-cs-fixer --no-interaction --dry-run --diff -v --path-mode=intersection -- "${COMMIT_SCA_FILES[@]} fix ; fi
57+ - if [ "$PHP_CS_FIXER" = true ]; then ./bin/php-cs-fixer --no-interaction --dry-run --diff -v --path-mode=intersection fix -- "${COMMIT_SCA_FILES[@]}" ; fi
5758 - if [ "$PHPSTAN" = true ]; then docker run --workdir="/mqdev" -v "`pwd`:/mqdev" --rm enqueue/dev:latest php -d memory_limit=1024M bin/phpstan analyse -l 1 -c phpstan.neon -- "${COMMIT_SCA_FILES[@]}" ; fi
5859 - if [ "$UNIT_TESTS" = true ]; then bin/phpunit --exclude-group=functional; fi
5960 - if [ "$FUNCTIONAL_TESTS" = true ]; then bin/test.sh --exclude-group=rdkafka; fi
You can’t perform that action at this time.
0 commit comments