File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ matrix:
2020 php : 7.0
2121 - env : TEST_DIR=. COMPOSER_FLAGS="--prefer-lowest"
2222 php : 7.0
23- - env : TEST_DIR=.
23+ - env : TEST_DIR=. PHP_CS_FIXER=true
2424 php : 7.1
2525 - env : TEST_DIR=. COMPOSER_FLAGS="--prefer-lowest"
2626 php : 7.1
@@ -38,14 +38,13 @@ before_install:
3838
3939install :
4040 - composer update --prefer-source -o $COMPOSER_FLAGS
41- - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.1 " ]] ; then wget http://cs.sensiolabs.org/download/php-cs-fixer-v2.phar -O $(pwd) /php-cs-fixer; fi
41+ - if [ "${PHP_CS_FIXER}" = "true " ]; then wget http://cs.sensiolabs.org/download/php-cs-fixer-v2.phar && php . /php-cs-fixer-v2.phar fix --dry-run --diff $TRAVIS_BUILD_DIR ; fi
4242 - PHPUNIT_BIN=$(pwd)/vendor/bin/phpunit
4343 - cd ${TEST_DIR}
4444 - composer update --prefer-source -o $COMPOSER_FLAGS
4545
4646script :
4747 - $PHPUNIT_BIN --coverage-clover=coverage.clover
48- - test $TEST_DIR = "." && $(pwd)/php-cs-fixer fix --config=.php_cs.dist --dry-run --diff $TRAVIS_BUILD_DIR || echo "Continue without php-cs-fixer"
4948
5049after_success :
5150 - wget https://scrutinizer-ci.com/ocular.phar
You can’t perform that action at this time.
0 commit comments