]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - Makefile
docker: add alpine,debian,ubuntu test images
[github/shaarli/Shaarli.git] / Makefile
index 40badb1d916bfaa50c58ff08d3af2159872726d3..a3696ec987886657dfd2ecca1345575c4928c38c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -18,6 +18,16 @@ PHP_COMMA_SOURCE = index.php,application,tests,plugins
 
 all: static_analysis_summary check_permissions test
 
+##
+# Docker test adapter
+#
+# Shaarli sources and vendored libraries are copied from a shared volume
+# to a user-owned directory to enable running tests as a non-root user.
+##
+docker_%:
+       rsync -az /shaarli/ ~/shaarli/
+       cd ~/shaarli && make $*
+
 ##
 # Concise status of the project
 # These targets are non-blocking: || exit 0