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()
21
21
'psr4 ' => true ,
22
22
'strict_param ' => true ,
23
23
))
24
+ ->setCacheFile (getenv ('TRAVIS ' ) ? getenv ('HOME ' ) . '/.php-cs-fixer ' : __DIR__ .'/var/.php_cs.cache ' )
24
25
->setFinder (
25
26
PhpCsFixer \Finder::create ()
26
27
->in (__DIR__ )
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ matrix:
38
38
cache :
39
39
directories :
40
40
- $HOME/.composer/cache
41
+ - $HOME/.php-cs-fixer
41
42
42
43
before_install :
43
44
- echo "extension = mongodb.so" >> $HOME/.phpenv/versions/$(phpenv version-name)/etc/php.ini
@@ -53,7 +54,7 @@ install:
53
54
54
55
script :
55
56
- 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
57
58
- 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
58
59
- if [ "$UNIT_TESTS" = true ]; then bin/phpunit --exclude-group=functional; fi
59
60
- if [ "$FUNCTIONAL_TESTS" = true ]; then bin/test.sh --exclude-group=rdkafka; fi
You can’t perform that action at this time.
0 commit comments