build(run): split commands over multiple lines

This commit is contained in:
Oliver Davies 2022-04-06 23:02:07 +01:00
parent 6401594548
commit 282348b30b

9
run
View file

@ -47,9 +47,14 @@ function task:help {
function task:test { function task:test {
# Run PHPUnit tests. # Run PHPUnit tests.
if [[ $APP_BUILD == "dynamic" ]]; then if [[ $APP_BUILD == "dynamic" ]]; then
docker container run --rm -t -v $PWD:/app --entrypoint phpunit ${DOCKER_TAG} "${@}" docker container run --rm -t \
-v $PWD:/app \
--entrypoint phpunit \
${DOCKER_TAG} "${@}"
elif [[ $APP_BUILD == "static" ]]; then elif [[ $APP_BUILD == "static" ]]; then
docker container run --rm -t --entrypoint phpunit ${DOCKER_TAG} "${@}" docker container run --rm -t \
--entrypoint phpunit \
${DOCKER_TAG} "${@}"
fi fi
} }