From 23896213ac698efaeb3f8e4c674dfa6196fdf81b Mon Sep 17 00:00:00 2001 From: Adrien Crivelli Date: Sun, 28 Jan 2018 17:09:10 +0900 Subject: [PATCH] Test code style only once --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index f4bf5143..7860a1c3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,9 +25,9 @@ before_script: script: # PHP_CodeSniffer - - if [ -z "$COVERAGE" ]; then ./vendor/bin/phpcs --report-width=200 --report-summary --report-full samples/ src/ tests/ --ignore=samples/Header.php --standard=PSR2 -n ; fi + - if [ -n "$COVERAGE" ]; then ./vendor/bin/phpcs --report-width=200 --report-summary --report-full samples/ src/ tests/ --ignore=samples/Header.php --standard=PSR2 -n ; fi # PHP-CS-Fixer - - if [ -z "$COVERAGE" ]; then ./vendor/bin/php-cs-fixer fix --diff --verbose --dry-run ; fi + - if [ -n "$COVERAGE" ]; then ./vendor/bin/php-cs-fixer fix --diff --verbose --dry-run ; fi # PHPUnit - ./vendor/bin/phpunit $(if [ -n "$COVERAGE" ]; then echo --debug --coverage-clover coverage-clover.xml ; fi)