diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |