forked from vektah/composer-dist-cache
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (28 loc) · 616 Bytes
/
Makefile
File metadata and controls
38 lines (28 loc) · 616 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
COMPOSER_BIN := composer
PHPUNIT_BIN := ./vendor/bin/phpunit
PHPCS_BIN := ./vendor/bin/phpcs
BUGFREE_BIN := ./vendor/bin/bugfree
all: style lint test
depends: vendor
cleandepends: cleanvendor vendor
vendor: composer.json
$(COMPOSER_BIN) --dev update
touch vendor
cleanvendor:
rm -rf composer.lock
rm -rf vendor
lintfix: depends
$(BUGFREE_BIN) lint src/main -a
echo
lint: depends
echo " --- Lint ---"
$(BUGFREE_BIN) lint src/main
echo
style:
echo " --- Style Checks ---"
$(PHPCS_BIN) --standard=vendor/vektah/psr2 src
test: lint depends
echo " --- Unit tests ---"
$(PHPUNIT_BIN)
echo
.SILENT: