-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 762 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 762 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
PACKAGE=PHPFluent/ArrayStorage
SOURCE=src/
TEST=tests/
VERSION=$(shell git describe --always)
.title:
@echo "\033[32m${PACKAGE}\033[m - \033[33m${VERSION}\033[m"
install: .title
@test ! -f composer.phar && curl -sS https://getcomposer.org/installer | php || composer.phar self-update
@php composer.phar install
phpcs: .title
@vendor/bin/phpcs --standard=PSR2 "${SOURCE}"
phpmd: .title
@vendor/bin/phpmd "${SOURCE}" text codesize,controversial,design,naming,unusedcode
phpunit: .title
@vendor/bin/phpunit "${TEST}"
phpunit-coverage-html: .title
@vendor/bin/phpunit --coverage-html=build/coverage "${TEST}"
phpunit-coverage-text: .title
@vendor/bin/phpunit --coverage-text "${TEST}"
phpunit-testdox: .title
@vendor/bin/phpunit --testdox "${TEST}"