mirror of
https://github.com/matthiasmullie/minify.git
synced 2025-02-22 10:58:36 +01:00
24 lines
494 B
Makefile
24 lines
494 B
Makefile
PHP ?= '7.2'
|
|
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
|
|
|
|
image:
|
|
docker build -t matthiasmullie/minify .
|
|
|
|
up:
|
|
docker-compose up -d $(PHP)
|
|
|
|
down:
|
|
docker-compose stop -t0 $(PHP)
|
|
|
|
test:
|
|
[ $(UP) -eq 1 ] && make up || true
|
|
$(eval cmd='docker-compose run $(PHP) vendor/bin/phpunit')
|
|
eval $(cmd); status=$$?; [ $(DOWN) -eq 1 ] && make down; exit $$status
|