Test code style only once
This commit is contained in:
parent
d520246d32
commit
23896213ac
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue