File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ DOCKER_IMAGE=dockette/php
22DOCKER_PLATFORM? =linux/amd64
33VERSION? =8.5
44
5- .PHONY : build test run test-%
5+ .PHONY : build test run test-cli- % test-fpm- %
66
77build : build-${VERSION}
88
9- test : test-${VERSION} test-${VERSION}-fpm
9+ test : test-cli- ${VERSION} test-fpm- ${VERSION}
1010
1111run :
1212 docker run --rm -it -v ${PWD} :/srv ${DOCKER_IMAGE} :${VERSION}
@@ -45,5 +45,8 @@ build-8.4-fpm: _build-8.4-fpm
4545build-8.5 : _build-8.5
4646build-8.5-fpm : _build-8.5-fpm
4747
48- test-% :
49- docker run --rm ${DOCKER_IMAGE} :$* sh -lc ' php -v && composer --version && case "$*" in *-fpm) php-fpm -t ;; esac'
48+ test-cli-% :
49+ docker run --rm ${DOCKER_IMAGE} :$* sh -lc ' php -v && composer --version'
50+
51+ test-fpm-% :
52+ docker run --rm ${DOCKER_IMAGE} :$* -fpm sh -lc ' php -v && composer --version && php-fpm$* -t'
You can’t perform that action at this time.
0 commit comments