From eeb3c15b0522ba06aff5903de2a24007017daf43 Mon Sep 17 00:00:00 2001 From: Benjamin Brahmer Date: Tue, 3 May 2022 21:10:51 +0200 Subject: by default don't do codecoverage Signed-off-by: Benjamin Brahmer --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 -- cgit v1.2.3