-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
22 lines (18 loc) · 1.09 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
UID := $(shell id -u)
GID := $(shell id -g)
run := env UID=${UID} GID=${GID} docker-compose run --rm php-mailhog-testing
composer-install:
docker run --rm --interactive -u $(shell id -u):$(shell id -g) --tty --volume $(shell pwd):/app composer install
composer-update:
docker run --rm --interactive -u $(shell id -u):$(shell id -g) --tty --volume $(shell pwd):/app composer update
build:
docker-compose build
.PHONY: test
test:
-docker-compose run --rm php7.3-mailhog-testing ./vendor/bin/phpunit --testdox --configuration ./phpunit.xml
-docker-compose run --rm php7.4-mailhog-testing ./vendor/bin/phpunit --testdox --configuration ./phpunit.xml
-docker-compose run --rm php8.0-mailhog-testing ./vendor/bin/phpunit --testdox --configuration ./phpunit.xml
-docker-compose run --rm php8.1-mailhog-testing ./vendor/bin/phpunit --testdox --configuration ./phpunit.xml
-docker-compose run --rm php8.2-mailhog-testing ./vendor/bin/phpunit --testdox --configuration ./phpunit.xml
-docker-compose run --rm php8.3-mailhog-testing ./vendor/bin/phpunit --testdox --configuration ./phpunit.xml
docker-compose down