From feecc9fcbbf46ace1969a331777bfcc383c12dde Mon Sep 17 00:00:00 2001 From: Anthony Sterling Date: Sat, 23 Sep 2017 22:04:26 +0100 Subject: [PATCH] Added lint target as php-cs-fixer only returns a non-zero exit code during dry run now --- .travis.yml | 3 ++- Makefile | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index cd5569e..9c0cb34 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,4 +11,5 @@ install: - travis_retry composer install --no-interaction --prefer-source script: - - make all + - make lint + - make test diff --git a/Makefile b/Makefile index 130a45b..04cde88 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,15 @@ THIS := $(realpath $(lastword $(MAKEFILE_LIST))) HERE := $(shell dirname $(THIS)) -.PHONY: all fix test +.PHONY: all fix lint test -all: fix test +all: lint test fix: 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: php $(HERE)/vendor/bin/phpunit --configuration $(HERE)/phpunit.xml