Skip to content

Commit cd851b3

Browse files
authored
Fix PHP-FPM smoke test (#26)
1 parent cf878e1 commit cd851b3

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

‎Makefile‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ DOCKER_IMAGE=dockette/php
22
DOCKER_PLATFORM?=linux/amd64
33
VERSION?=8.5
44

5-
.PHONY: build test run test-%
5+
.PHONY: build test run test-cli-% test-fpm-%
66

77
build: build-${VERSION}
88

9-
test: test-${VERSION} test-${VERSION}-fpm
9+
test: test-cli-${VERSION} test-fpm-${VERSION}
1010

1111
run:
1212
docker run --rm -it -v ${PWD}:/srv ${DOCKER_IMAGE}:${VERSION}
@@ -45,5 +45,8 @@ build-8.4-fpm: _build-8.4-fpm
4545
build-8.5: _build-8.5
4646
build-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'

0 commit comments

Comments
 (0)