-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (27 loc) · 744 Bytes
/
Makefile
File metadata and controls
31 lines (27 loc) · 744 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
SHELL:=/bin/bash
ifndef LOGDIR
LOGDIR:=./logs
endif
all:
@make -s setup
@make -s build
@make -s test
@make -s docs
@make -s install
setup:
build:
composer install -o -vv -n --ansi 2>&1
test:
./vendor/phpmd/phpmd/src/bin/phpmd . text phpmd.xml --exclude vendor,logs,Tests/app
php -S 127.0.0.1:3000 -t Tests/app 2>1 & ./vendor/phpunit/phpunit/phpunit -c phpunit.xml --coverage-html $(LOGDIR)/coverage
ps -eaf | awk '/ph[p] -S/{ print $$2 }' | xargs kill
rm 1
unit:
php -S 127.0.0.1:3000 -t Tests/app 2>1 & ./vendor/phpunit/phpunit/phpunit -c phpunit.xml --coverage-html $(LOGDIR)/coverage
ps -eaf | awk '/ph[p] -S/{ print $$2 }' | xargs kill
rm 1
clean:
ps -eaf | awk '/ph[p] -S/{ print $$2 }' | xargs kill
rm 1
docs:
install: