2014-03-22 22:05:45 -07:00
|
|
|
all: clean coverage docs
|
|
|
|
|
|
|
|
start-server:
|
2014-10-12 18:27:08 -07:00
|
|
|
cd vendor/guzzlehttp/ringphp && make start-server
|
2014-03-22 22:05:45 -07:00
|
|
|
|
|
|
|
stop-server:
|
2014-10-12 18:27:08 -07:00
|
|
|
cd vendor/guzzlehttp/ringphp && make stop-server
|
2014-03-22 22:05:45 -07:00
|
|
|
|
|
|
|
test: start-server
|
2014-09-10 17:13:42 -07:00
|
|
|
vendor/bin/phpunit
|
2014-03-22 22:05:45 -07:00
|
|
|
$(MAKE) stop-server
|
|
|
|
|
|
|
|
coverage: start-server
|
2014-09-10 17:13:42 -07:00
|
|
|
vendor/bin/phpunit --coverage-html=artifacts/coverage
|
2014-03-22 22:05:45 -07:00
|
|
|
$(MAKE) stop-server
|
|
|
|
|
|
|
|
view-coverage:
|
|
|
|
open artifacts/coverage/index.html
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf artifacts/*
|
|
|
|
|
2014-03-23 17:08:23 -07:00
|
|
|
docs:
|
2014-03-22 22:05:45 -07:00
|
|
|
cd docs && make html && cd ..
|
|
|
|
|
|
|
|
view-docs:
|
|
|
|
open docs/_build/html/index.html
|
|
|
|
|
2014-08-19 22:30:12 -07:00
|
|
|
tag:
|
|
|
|
$(if $(TAG),,$(error TAG is not defined. Pass via "make tag TAG=4.2.1"))
|
|
|
|
@echo Tagging $(TAG)
|
2014-10-30 20:26:30 -07:00
|
|
|
chag update $(TAG)
|
2014-08-19 22:30:12 -07:00
|
|
|
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
|
|
|
|
|
2014-03-23 10:53:34 -07:00
|
|
|
perf: start-server
|
|
|
|
php tests/perf.php
|
|
|
|
$(MAKE) stop-server
|
|
|
|
|
2014-08-19 22:02:13 -07:00
|
|
|
package: burgomaster
|
|
|
|
php build/packager.php
|
|
|
|
|
|
|
|
burgomaster:
|
|
|
|
mkdir -p build/artifacts
|
2014-10-30 20:26:30 -07:00
|
|
|
curl -s https://raw.githubusercontent.com/mtdowling/Burgomaster/0.0.2/src/Burgomaster.php > build/artifacts/Burgomaster.php
|
2014-08-19 22:02:13 -07:00
|
|
|
|
2014-10-12 18:27:08 -07:00
|
|
|
.PHONY: docs burgomaster
|