Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/news.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Brahmer <info@b-brahmer.de>2022-05-03 22:10:51 +0300
committerBenjamin Brahmer <info@b-brahmer.de>2022-05-03 22:26:03 +0300
commiteeb3c15b0522ba06aff5903de2a24007017daf43 (patch)
treeb9a954f8a6fdf4af7bbc4c098a34acc078888f6d /Makefile
parent33fe41e86a72f1ba39b4002cb54a62f197da45bd (diff)
by default don't do codecoverage
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a6392be30..3322b3b51 100644
--- a/Makefile
+++ b/Makefile
@@ -200,7 +200,12 @@ php-test-dependencies:
.PHONY: unit-test
unit-test:
- ./vendor/phpunit/phpunit/phpunit -c phpunit.xml --coverage-clover build/php-unit.clover
+ @if [ "$(CODECOVERAGE)" = "true" ]; then \
+ ./vendor/phpunit/phpunit/phpunit -c phpunit.xml --coverage-clover build/php-unit.clover; \
+ else \
+ ./vendor/phpunit/phpunit/phpunit -c phpunit.xml --no-coverage; \
+ fi
+
# Command for running JS and PHP tests. Works for package.json files in the js/
# and root directory. If phpunit is not installed systemwide, a copy is fetched