summaryrefslogtreecommitdiffstats
path: root/autotest.sh
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-11-04 17:04:54 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2013-11-04 17:04:54 +0100
commit99933b2ca301b21ec1af75d6fa39aef30dd07b78 (patch)
tree70aa1ac14a0521b5f6c929ef4ff3e9ccc4eed290 /autotest.sh
parentc3898061a8e8026ea608d5c79f597adf4cacc96c (diff)
downloadnextcloud-server-99933b2ca301b21ec1af75d6fa39aef30dd07b78.tar.gz
nextcloud-server-99933b2ca301b21ec1af75d6fa39aef30dd07b78.zip
adding environment variable to control coverage reporting
Diffstat (limited to 'autotest.sh')
-rwxr-xr-xautotest.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/autotest.sh b/autotest.sh
index a411780d49c..e7a5f31dfb8 100755
--- a/autotest.sh
+++ b/autotest.sh
@@ -178,7 +178,12 @@ EOF
rm -rf coverage-html-$1
mkdir coverage-html-$1
php -f enable_all.php
- phpunit --configuration phpunit-autotest.xml --log-junit autotest-results-$1.xml --coverage-clover autotest-clover-$1.xml --coverage-html coverage-html-$1 $2 $3
+ 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 $2 $3
+ fi
}
#