mirror of
https://github.com/matthiasmullie/minify.git
synced 2025-02-22 10:58:36 +01:00
20 lines
453 B
Makefile
20 lines
453 B
Makefile
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
|