去除单元测试无用的环境变量

This commit is contained in:
yunwuxin
2016-07-14 10:46:50 +08:00
parent 30e25f938b
commit d127f13bd8

View File

@@ -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)