File: Makefile

Recommend this page to a friend!
  Classes of Omar Shaban  >  Resilient PHP Task Runner  >  Makefile  >  Download  
File: Makefile
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Resilient PHP Task Runner
Run a task and retry while it fails for a period
Author: By
Last change:
Date: 1 month ago
Size: 800 bytes
 

Contents

Class file image Download
help:           ## Show this help
	@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'

all: install cs test

install: ## install dependencies
	composer install

cs: ## Check code style
	./vendor/bin/phpcs --config-set ignore_warnings_on_exit 1
	./vendor/bin/phpcs --colors --standard=PSR2 src tests

csfix: ## Fix Code Style
	php vendor/bin/phpcbf

test: ## Run tests
	php vendor/bin/phpunit

mess: ## Run mess detector
	./vendor/bin/phpmd src text ./phpmd.xml

check-mess: ## Run mess detector
	./vendor/bin/phpmd src text ./phpmd.xml

test-coverage: ## Run travis test suite (not tested)
	./vendor/bin/phpunit --coverage-clover build/logs/clover.xml

build:
	$(MAKE) cs
	$(MAKE) mess
	$(MAKE) test

build-travis:
	$(MAKE) cs
	$(MAKE) mess
	$(MAKE) test-coverage

For more information send a message to info at phpclasses dot org.