This repository has been archived by the owner on Oct 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/makefile' into develop
- Loading branch information
Showing
5 changed files
with
115 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
build | ||
vendor | ||
resources | ||
phpunit.xml | ||
phpunit-*.xml | ||
composer.lock | ||
/build | ||
/vendor | ||
/phpunit.xml | ||
/composer.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# | ||
# JBZoo Console | ||
# | ||
# This file is part of the JBZoo CCK package. | ||
# For the full copyright and license information, please view the LICENSE | ||
# file that was distributed with this source code. | ||
# | ||
# @package Console | ||
# @license MIT | ||
# @copyright Copyright (C) JBZoo.com, All rights reserved. | ||
# @link https://github.com/JBZoo/Console | ||
# | ||
|
||
.PHONY: build update test-all validate autoload test phpmd phpcs phpcpd phploc reset coveralls | ||
|
||
build: update | ||
|
||
test-all: | ||
@echo -e "\033[0;33m>>> >>> >>> >>> >>> >>> >>> >>> \033[0;30;46m Run all tests \033[0m" | ||
@make validate test phpmd phpcs phpcpd phploc | ||
|
||
update: | ||
@echo -e "\033[0;33m>>> >>> >>> >>> >>> >>> >>> >>> \033[0;30;46m Update project \033[0m" | ||
@composer update --optimize-autoloader --no-interaction | ||
@echo "" | ||
|
||
validate: | ||
@echo -e "\033[0;33m>>> >>> >>> >>> >>> >>> >>> >>> \033[0;30;46m Composer validate \033[0m" | ||
@composer validate --no-interaction | ||
@echo "" | ||
|
||
autoload: | ||
@echo -e "\033[0;33m>>> >>> >>> >>> >>> >>> >>> >>> \033[0;30;46m Composer autoload \033[0m" | ||
@composer dump-autoload --optimize --no-interaction | ||
@echo "" | ||
|
||
test: | ||
@echo -e "\033[0;33m>>> >>> >>> >>> >>> >>> >>> >>> \033[0;30;46m Run unit-tests \033[0m" | ||
@php ./vendor/phpunit/phpunit/phpunit --configuration ./phpunit.xml.dist | ||
@php ./bin/jbzoo | ||
@php ./bin/jbzoo test --option=ytrewq | ||
@echo "" | ||
|
||
test-x: | ||
@echo -e "\033[0;33m>>> >>> >>> >>> >>> >>> >>> >>> \033[0;30;46m Run unit-tests with XDebug \033[0m" | ||
@php-x ./vendor/phpunit/phpunit/phpunit --configuration ./phpunit.xml.dist --verbose | ||
@echo "" | ||
|
||
phpmd: | ||
@echo -e "\033[0;33m>>> >>> >>> >>> >>> >>> >>> >>> \033[0;30;46m Check PHPmd \033[0m" | ||
@php ./vendor/phpmd/phpmd/src/bin/phpmd ./src text \ | ||
./vendor/jbzoo/misc/phpmd/jbzoo.xml --verbose | ||
|
||
phpcs: | ||
@echo -e "\033[0;33m>>> >>> >>> >>> >>> >>> >>> >>> \033[0;30;46m Check Code Style \033[0m" | ||
@php ./vendor/squizlabs/php_codesniffer/scripts/phpcs ./src \ | ||
--extensions=php \ | ||
--standard=./vendor/jbzoo/misc/phpcs/JBZoo/ruleset.xml \ | ||
--report=full | ||
@echo "" | ||
|
||
phpcpd: | ||
@echo -e "\033[0;33m>>> >>> >>> >>> >>> >>> >>> >>> \033[0;30;46m Check Copy&Paste \033[0m" | ||
@php ./vendor/sebastian/phpcpd/phpcpd ./src --verbose | ||
@echo "" | ||
|
||
phploc: | ||
@echo -e "\033[0;33m>>> >>> >>> >>> >>> >>> >>> >>> \033[0;30;46m Show stats \033[0m" | ||
@php ./vendor/phploc/phploc/phploc ./src --verbose | ||
@echo "" | ||
|
||
reset: | ||
@echo -e "\033[0;33m>>> >>> >>> >>> >>> >>> >>> >>> \033[0;30;46m Hard reset \033[0m" | ||
@git reset --hard | ||
|
||
clean: | ||
@echo -e "\033[0;33m>>> >>> >>> >>> >>> >>> >>> >>> \033[0;30;46m Cleanup project \033[0m" | ||
@rm -rf ./vendor/ | ||
@rm -f ./composer.lock | ||
|
||
coveralls: | ||
@echo -e "\033[0;33m>>> >>> >>> >>> >>> >>> >>> >>> \033[0;30;46m Send coverage to coveralls.io \033[0m" | ||
@php ./vendor/satooshi/php-coveralls/bin/coveralls --verbose | ||
@echo "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters