mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
去除单元测试无用的环境变量
This commit is contained in:
@@ -37,13 +37,13 @@ script:
|
|||||||
## LINT
|
## LINT
|
||||||
- find . -path ./vendor -prune -o -type f -name \*.php -exec php -l {} \;
|
- find . -path ./vendor -prune -o -type f -name \*.php -exec php -l {} \;
|
||||||
## PHP_CodeSniffer
|
## PHP_CodeSniffer
|
||||||
- THINK_AUTOLOAD=0 vendor/bin/phpcs --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 --standard=PSR2 --ignore="vendor/*" ./
|
- vendor/bin/phpcs --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 --standard=PSR2 --ignore="vendor/*" ./
|
||||||
## PHP Copy/Paste Detector
|
## PHP Copy/Paste Detector
|
||||||
- THINK_AUTOLOAD=0 vendor/bin/phpcpd --verbose --exclude vendor ./ || true
|
- vendor/bin/phpcpd --verbose --exclude vendor ./ || true
|
||||||
## PHPLOC
|
## PHPLOC
|
||||||
- THINK_AUTOLOAD=0 vendor/bin/phploc --exclude vendor ./
|
- vendor/bin/phploc --exclude vendor ./
|
||||||
## PHPUNIT
|
## PHPUNIT
|
||||||
- THINK_AUTOLOAD=0 vendor/bin/phpunit --coverage-clover=coverage.xml --configuration=phpunit.xml
|
- vendor/bin/phpunit --coverage-clover=coverage.xml --configuration=phpunit.xml
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- bash <(curl -s https://codecov.io/bash)
|
- bash <(curl -s https://codecov.io/bash)
|
||||||
|
|||||||
Reference in New Issue
Block a user