forked from humbug/file_get_contents
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (27 loc) · 870 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
31
32
33
34
35
36
37
38
39
40
41
PHP_CS_FIXER=php -d zend.enable_gc=0 vendor-bin/php-cs-fixer/vendor/bin/php-cs-fixer
PHPUNIT=php -d zend.enable_gc=0 vendor/bin/phpunit
.DEFAULT_GOAL := help
.PHONY: test tu cs
help:
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
##
## Tests
##---------------------------------------------------------------------------
test: ## Run all the tests
test: tu
tu: ## Run the tests for the core library
tu: vendor
$(PHPUNIT)
##
## Code Style
##---------------------------------------------------------------------------
cs: ## Run the CS Fixer
cs: vendor
$(PHP_CS_FIXER) fix
##
## Rules from files
##---------------------------------------------------------------------------
vendor: composer.lock
composer install
composer.lock: composer.json
@echo compose.lock is not up to date.