minify/makefile

24 lines
519 B
Makefile
Raw Normal View History

2022-03-15 11:15:50 +01:00
PHP ?= '8.1'
2018-02-02 13:01:03 +01:00
UP ?= 1
DOWN ?= 1
docs:
wget http://apigen.org/apigen.phar
chmod +x apigen.phar
php apigen.phar generate --source=src --destination=docs --template-theme=bootstrap
rm apigen.phar
2017-09-21 19:12:16 +02:00
image:
docker build -t matthiasmullie/minify .
up:
docker-compose up -d $(PHP)
down:
docker-compose stop -t0 $(PHP)
2017-09-21 19:12:16 +02:00
test:
[ $(UP) -eq 1 ] && make up || true
2022-03-15 22:14:36 +01:00
$(eval cmd='docker-compose run $(PHP) env XDEBUG_MODE=coverage vendor/bin/phpunit')
eval $(cmd); status=$$?; [ $(DOWN) -eq 1 ] && make down; exit $$status