X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=inline;f=Makefile;h=656c27b03ab3664589123369ba770c31f44604de;hb=e3a3cc0da85925d08df29a2146b54b4159d5a14b;hp=40badb1d916bfaa50c58ff08d3af2159872726d3;hpb=dc37a482edd7d164de4a0f5458de4c7f65ebc763;p=github%2Fshaarli%2FShaarli.git diff --git a/Makefile b/Makefile index 40badb1d..656c27b0 100644 --- 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 @@ -105,7 +115,7 @@ check_permissions: @echo "----------------------" @echo "Check file permissions" @echo "----------------------" - @for file in `git ls-files`; do \ + @for file in `git ls-files | grep -v docker`; do \ if [ -x $$file ]; then \ errors=true; \ echo "$${file} is executable"; \