1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-11 19:14:38 +01:00
guzzle/Makefile

44 lines
877 B
Makefile
Raw Normal View History

all: clean coverage docs
2015-02-24 22:50:52 -08:00
start-server: stop-server
node tests/server.js &> /dev/null &
stop-server:
2015-02-24 22:50:52 -08:00
@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
2014-09-10 17:13:42 -07:00
vendor/bin/phpunit
$(MAKE) stop-server
coverage: start-server
2014-09-10 17:13:42 -07:00
vendor/bin/phpunit --coverage-html=artifacts/coverage
$(MAKE) stop-server
view-coverage:
open artifacts/coverage/index.html
clean:
rm -rf artifacts/*
2014-03-23 17:08:23 -07:00
docs:
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)
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
2015-02-24 22:50:52 -08:00
.PHONY: docs