aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2020-04-16 18:46:32 +0200
committerVincent Peugnet <33429034+vincent-peugnet@users.noreply.github.com>2020-04-17 19:03:34 +0200
commit477f4bb4d104905e6c846c3cec2ec57edd4de677 (patch)
tree0a08404eee86edf9ee73573d96aaa2c1932ae8a7 /Makefile
parent802f5135b0979bab3bf30ae1733f9867e2caed7a (diff)
downloadwcms-477f4bb4d104905e6c846c3cec2ec57edd4de677.tar.gz
wcms-477f4bb4d104905e6c846c3cec2ec57edd4de677.zip
tests: add phpunit w/coverage + 1 test SummaryTest
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a73b4d5..be02116 100644
--- a/Makefile
+++ b/Makefile
@@ -90,6 +90,7 @@ dist/w_cms_%.zip: all
Makefile \
"package*" \
phpcs.xml \
+ phpunit.xml \
webpack.config.js
# Generate the js bundles (and sourcemaps).
@@ -152,10 +153,12 @@ buildclean:
rm -rf $(js_srcmaps)
rm -rf $(build_dir)
+# Run all checks.
.PHONY: check
-check:
- @echo Running tests...
+check: $(PREV_ENV_FILE) vendor
+ @echo Running checks...
phpcs
+ phpunit
# Touch files affected by the build environment to force the execution
# of the corresponding targets.