1
all: clean coverage docs
4
@ps aux | grep 'node tests/server.js' | grep -v grep > /dev/null \
5
|| node tests/server.js &> /dev/null &
8
@PID=$(shell ps axo pid,command | grep 'tests/server.js' | grep -v grep | cut -f 1 -d " ") && \
17
coverage: start-server
18
vendor/bin/phpunit --coverage-html=artifacts/coverage
22
open artifacts/coverage/index.html
28
cd docs && make html && cd ..
31
open docs/_build/html/index.html
34
$(if $(TAG),,$(error TAG is not defined. Pass via "make tag TAG=4.2.1"))
36
chag update -m '$(TAG) ()'
37
sed -i '' -e "s/VERSION = '.*'/VERSION = '$(TAG)'/" src/ClientInterface.php
38
php -l src/ClientInterface.php
40
git commit -m '$(TAG) release'
48
php build/packager.php
51
mkdir -p build/artifacts
52
curl -s https://raw.githubusercontent.com/mtdowling/Burgomaster/0.0.1/src/Burgomaster.php > build/artifacts/Burgomaster.php
54
.PHONY: doc burgomaster