-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (21 loc) · 829 Bytes
/
Makefile
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
all: build
check-db:
@command -v sqlite3 >/dev/null 2>&1 || { echo >&2 "Please install sqlite3. Aborting."; exit 1; }
install: check-db composer.json $(wildcard composer.lock)
@echo 'Installing composer dependencies (no dev)...'
php bin/composer.phar install --no-dev --no-interaction --no-progress --quiet
install-dev: check-db composer.json $(wildcard composer.lock)
@echo 'Installing composer dependencies (including dev)...'
php bin/composer.phar install --no-interaction --no-progress --quiet
lint: install-dev
@echo 'Running code formatter...'
vendor/bin/phpcbf
phpunit: install-dev
@echo 'Running phpunit...'
vendor/bin/phpunit --debug -c tests/phpunit.xml
phan: install-dev
@echo 'Running phan...'
vendor/bin/phan
test: phpunit phan
build: lint test
.PHONY: all lint phan phpunit test build check-db