mirror of
https://github.com/danog/psalm.git
synced 2024-12-03 10:07:52 +01:00
10 lines
458 B
Bash
10 lines
458 B
Bash
|
set -e
|
||
|
if [[ $(git diff --name-only $TRAVIS_COMMIT_RANGE | grep '\.php_cs.dist$') != ".php_cs.dist" ]];
|
||
|
then
|
||
|
echo ".php_cs.dist has not changed";
|
||
|
./vendor/bin/php-cs-fixer fix --verbose --allow-risky=yes --dry-run --config ./.php_cs.dist -- $(git diff --name-only $TRAVIS_COMMIT_RANGE | grep '\.php$') .php_cs.dist;
|
||
|
else
|
||
|
echo ".php_cs.dist has changed";
|
||
|
./vendor/bin/php-cs-fixer fix --verbose --allow-risky=yes --dry-run --config ./.php_cs.dist;
|
||
|
fi
|