-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (21 loc) · 782 Bytes
/
Makefile
File metadata and controls
26 lines (21 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " test to perform unit tests."
@echo " coverage to perform unit tests with code coverage."
@echo " coverage-show to show code coverage reports."
@echo " tag to tag a new release."
coverage:
vendor/bin/phpunit --coverage-html=build/coverage
coverage-show:
open build/coverage/index.html
test:
vendor/bin/phpunit && vendor/bin/phpunit --group performance
tag:
$(if $(TAG),,$(error TAG is not defined. Pass via "make tag TAG=4.2.1"))
@echo Tagging $(TAG)
sed -i '' -e "s/VERSION = '.*'/VERSION = '$(TAG)'/" src/Application.php
php -l src/Application.php
git add src/Application.php
git commit -m "$(TAG) release"
git tag "$(TAG)"
.PHONY: coverage coverage-show