Added lint target as php-cs-fixer only returns a non-zero exit code during dry run now
This commit is contained in:
@@ -11,4 +11,5 @@ install:
|
|||||||
- travis_retry composer install --no-interaction --prefer-source
|
- travis_retry composer install --no-interaction --prefer-source
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- make all
|
- make lint
|
||||||
|
- make test
|
||||||
|
|||||||
7
Makefile
7
Makefile
@@ -1,12 +1,15 @@
|
|||||||
THIS := $(realpath $(lastword $(MAKEFILE_LIST)))
|
THIS := $(realpath $(lastword $(MAKEFILE_LIST)))
|
||||||
HERE := $(shell dirname $(THIS))
|
HERE := $(shell dirname $(THIS))
|
||||||
|
|
||||||
.PHONY: all fix test
|
.PHONY: all fix lint test
|
||||||
|
|
||||||
all: fix test
|
all: lint test
|
||||||
|
|
||||||
fix:
|
fix:
|
||||||
php $(HERE)/vendor/bin/php-cs-fixer fix --config=$(HERE)/.php_cs
|
php $(HERE)/vendor/bin/php-cs-fixer fix --config=$(HERE)/.php_cs
|
||||||
|
|
||||||
|
lint:
|
||||||
|
php $(HERE)/vendor/bin/php-cs-fixer fix --config=$(HERE)/.php_cs --dry-run
|
||||||
|
|
||||||
test:
|
test:
|
||||||
php $(HERE)/vendor/bin/phpunit --configuration $(HERE)/phpunit.xml
|
php $(HERE)/vendor/bin/phpunit --configuration $(HERE)/phpunit.xml
|
||||||
|
|||||||
Reference in New Issue
Block a user