Test code style only once

This commit is contained in:
Adrien Crivelli 2018-01-28 17:09:10 +09:00
parent d520246d32
commit 23896213ac
No known key found for this signature in database
GPG Key ID: B182FD79DC6DE92E
1 changed files with 2 additions and 2 deletions

View File

@ -25,9 +25,9 @@ before_script:
script: script:
# PHP_CodeSniffer # 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 # 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 # PHPUnit
- ./vendor/bin/phpunit $(if [ -n "$COVERAGE" ]; then echo --debug --coverage-clover coverage-clover.xml ; fi) - ./vendor/bin/phpunit $(if [ -n "$COVERAGE" ]; then echo --debug --coverage-clover coverage-clover.xml ; fi)