X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=Makefile;h=a3696ec987886657dfd2ecca1345575c4928c38c;hb=d691604080cc920e7d1d7ad5c98f4e3fae779524;hp=40badb1d916bfaa50c58ff08d3af2159872726d3;hpb=ceb738c59163b47e9c875764c9d3223bbc1eba24;p=github%2Fshaarli%2FShaarli.git diff --git a/Makefile b/Makefile index 40badb1d..a3696ec9 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