mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-12-21 20:06:05 +01:00
Added install dev target to create dev-environment
This commit is contained in:
parent
8641c9ac0a
commit
c259d5178a
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,5 @@
|
|||||||
|
/bin/
|
||||||
|
!/bin/.gitkeep
|
||||||
/build/
|
/build/
|
||||||
/vendor/
|
/vendor/
|
||||||
composer.lock
|
composer.lock
|
||||||
|
18
Makefile
18
Makefile
@ -6,16 +6,16 @@ VERSION := $(if $(TAG),$(TAG),dev-$(BRANCH))
|
|||||||
help:
|
help:
|
||||||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-12s\033[0m %s\n", $$1, $$2}'
|
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-12s\033[0m %s\n", $$1, $$2}'
|
||||||
|
|
||||||
tests: ## Executes the test suite
|
install-dev: ## Installs the required common devtools
|
||||||
vendor/bin/phpunit
|
@echo "Downloading phpdoc"
|
||||||
|
@wget https://phpdoc.org/phpDocumentor.phar -O bin/phpdoc 2> /dev/null
|
||||||
|
@echo "Downloading phpcs"
|
||||||
|
@wget https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar -O bin/phpcs 2> /dev/null
|
||||||
|
@wget https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar -O bin/phpcbf 2> /dev/null
|
||||||
|
@echo "Installation of devtools finished"
|
||||||
|
@echo "Please add $(shell echo $(PWD))/bin to your PATH"
|
||||||
|
|
||||||
coverage: ## Executes the test suite and creates code coverage reports
|
docs: ## Generates api-docs
|
||||||
vendor/bin/phpunit --coverage-html build/coverage
|
|
||||||
|
|
||||||
view-coverage: ## Shows the code coverage report
|
|
||||||
open build/coverage/index.html
|
|
||||||
|
|
||||||
api: ## Generates api-docs
|
|
||||||
phpdoc -d ./src -t ./doc/api
|
phpdoc -d ./src -t ./doc/api
|
||||||
|
|
||||||
dist: ## Generates distribution
|
dist: ## Generates distribution
|
||||||
|
0
bin/.gitkeep
Normal file
0
bin/.gitkeep
Normal file
@ -18,7 +18,6 @@
|
|||||||
"ext-iconv": "*"
|
"ext-iconv": "*"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"friendsofphp/php-cs-fixer": "^2.16"
|
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
|
Loading…
Reference in New Issue
Block a user