Skip to content

Commit 6855c7c

Browse files
committed
fix travis.
1 parent f521084 commit 6855c7c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.php_cs.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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__)

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ matrix:
3838
cache:
3939
directories:
4040
- $HOME/.composer/cache
41+
- $HOME/.php-cs-fixer
4142

4243
before_install:
4344
- echo "extension = mongodb.so" >> $HOME/.phpenv/versions/$(phpenv version-name)/etc/php.ini
@@ -53,7 +54,7 @@ install:
5354

5455
script:
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

0 commit comments

Comments
 (0)