Page MenuHomeDevCentral

No OneTemporary

diff --git a/Makefile b/Makefile
index 6c3da55..42587a6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,49 +1,65 @@
# -------------------------------------------------------------
# Makefile for Keruald monorepo
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Keruald
# Description: Generate repository needed files to start dev
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
RM=rm -f
RMDIR=rm -rf
+MKDIR=mkdir -p
GENERATED_FROM_TEMPLATES=phpcs.xml phpunit.xml
+PHP=php
+PHPUNIT=vendor/bin/phpunit
+PHP_EXTENSIONS != php -r 'echo ini_get("extension_dir");'
+XDEBUG=xdebug.so
+
# -------------------------------------------------------------
# Main targets
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
all: build-dev build-repo
clean: clean-dev clean-repo
regenerate: clean-repo build-repo clean-dev build-dev
# -------------------------------------------------------------
# Build targets for libraries development
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
build-dev: vendor
clean-dev:
${RMDIR} vendor
vendor:
composer update
# -------------------------------------------------------------
# Build targets for monorepo maintenance
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
build-repo: $(GENERATED_FROM_TEMPLATES) composer.json
clean-repo:
${RM} $(GENERATED_FROM_TEMPLATES) composer.json
$(GENERATED_FROM_TEMPLATES):
_utils/templates/resolve.py _templates/$@.in > $@
composer.json:
_utils/templates/generate-compose-json.php > composer.json
+
+# -------------------------------------------------------------
+# Test targets
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+coverage:
+ $(MKDIR) .phpunit.cache/coverage/html
+
+ $(PHP) -d zend_extension=$(PHP_EXTENSIONS)/$(XDEBUG) -d xdebug.mode=coverage \
+ $(PHPUNIT) --coverage-html .phpunit.cache/coverage/html

File Metadata

Mime Type
text/x-diff
Expires
Tue, May 5, 17:18 (34 m, 58 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3685329
Default Alt Text
(2 KB)

Event Timeline