all: clean coverage docs start-server: stop-server node tests/server.js &> /dev/null & stop-server: @PID=$(shell ps axo pid,command \ | grep 'tests/server.js' \ | grep -v grep \ | cut -f 1 -d " "\ ) && [ -n "$$PID" ] && kill $$PID || true test: start-server vendor/bin/phpunit $(MAKE) stop-server coverage: start-server vendor/bin/phpunit --coverage-html=build/artifacts/coverage $(MAKE) stop-server view-coverage: open build/artifacts/coverage/index.html clean: rm -rf artifacts/* docs: cd docs && make html && cd .. view-docs: open docs/_build/html/index.html tag: $(if $(TAG),,$(error TAG is not defined. Pass via "make tag TAG=4.2.1")) @echo Tagging $(TAG) chag update $(TAG) sed -i '' -e "s/VERSION = '.*'/VERSION = '$(TAG)'/" src/ClientInterface.php php -l src/ClientInterface.php git add -A git commit -m '$(TAG) release' chag tag burgomaster: mkdir -p build/artifacts curl -s https://raw.githubusercontent.com/mtdowling/Burgomaster/0.0.2/src/Burgomaster.php > build/artifacts/Burgomaster.php package: burgomaster php build/packager.php .PHONY: docs burgomaster