forked from hpcloud/HPCloud-PHP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (27 loc) · 869 Bytes
/
Makefile
File metadata and controls
38 lines (27 loc) · 869 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
27
28
29
30
31
32
33
34
35
36
37
38
PROJ := 'hpcloud-php'
SRCDIR := src
TESTS := test/Tests
VERSION := 'DEV'
DATE := `date "+%Y%m%d"`
GROUP := 'deprecated'
VFILES = src/HPCloud
docs :
@cat ./config.doxy | sed 's/-UNSTABLE%/$(VERSION)/' | doxygen -
test :
phpunit --color --exclude-group=deprecated $(TESTS);
fulltest:
phpunit --color --exclude-group=deprecated --bootstrap=test/bootstrap_curl.php $(TESTS);
phpunit --color --exclude-group=deprecated --bootstrap=test/bootstrap_phpstream.php $(TESTS)
test-cdn :
php test/CDNTest.php
test-group :
phpunit --color -v --group $(GROUP) $(TESTS)
test-verbose :
phpunit --color -v --exclude-group=deprecated $(TESTS) 2> curl-output.txt
lint : $(SRCDIR)
find $(SRCDIR) -iname *.php -exec php -l {} ';'
dist: tar
tar:
@echo $(PROJ)-$(VERSION)-$(DATE).tgz
# @tar -zcvf $(PROJ)-$(VERSION)-$(DATE).tgz $(SRCDIR)
.PHONY: docs test dist tar lint