Merge pull request #5683 from owncloud/no-coverage-with-php-v53-master

adding environment variable to control coverage reporting
This commit is contained in:
Thomas Müller 2013-11-04 10:24:40 -08:00
commit b767bbcdda
1 changed files with 6 additions and 1 deletions

View File

@ -178,7 +178,12 @@ EOF
rm -rf coverage-html-$1
mkdir coverage-html-$1
php -f enable_all.php
if [ -z "$NOCOVERAGE" ]; then
phpunit --configuration phpunit-autotest.xml --log-junit autotest-results-$1.xml --coverage-clover autotest-clover-$1.xml --coverage-html coverage-html-$1 $2 $3
else
echo "No coverage"
phpunit --configuration phpunit-autotest.xml --log-junit autotest-results-$1.xml $2 $3
fi
}
#