mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
Add fix-cs recipe
This commit is contained in:
parent
6f40edb1c7
commit
5c0266e818
2 changed files with 5 additions and 5 deletions
5
.github/CONTRIBUTING.md
vendored
5
.github/CONTRIBUTING.md
vendored
|
@ -52,7 +52,4 @@ All pull requests need to pass the tests and the code needs match the style guid
|
||||||
|
|
||||||
To run the tests locally run `make test`.
|
To run the tests locally run `make test`.
|
||||||
|
|
||||||
To run the PHP formatter:
|
To run the PHP formatter run `make fix-cs`.
|
||||||
|
|
||||||
- when testing using Docker: `docker-compose run --rm php bin/php-cs-fixer fix`
|
|
||||||
- otherwise: `php bin/php-cs-fixer fix`
|
|
||||||
|
|
|
@ -46,6 +46,9 @@ build: ## Run webpack
|
||||||
test: ## Launch wallabag testsuite
|
test: ## Launch wallabag testsuite
|
||||||
@$(PHP_NO_XDEBUG) -dmemory_limit=-1 bin/phpunit -v
|
@$(PHP_NO_XDEBUG) -dmemory_limit=-1 bin/phpunit -v
|
||||||
|
|
||||||
|
fix-cs: ## Run PHP-CS-Fixer
|
||||||
|
@$(PHP_NO_XDEBUG) bin/php-cs-fixer fix
|
||||||
|
|
||||||
release: ## Create a package. Need a VERSION parameter (eg: `make release VERSION=master`).
|
release: ## Create a package. Need a VERSION parameter (eg: `make release VERSION=master`).
|
||||||
ifndef VERSION
|
ifndef VERSION
|
||||||
$(error VERSION is not set)
|
$(error VERSION is not set)
|
||||||
|
@ -55,6 +58,6 @@ endif
|
||||||
deploy: ## Deploy wallabag
|
deploy: ## Deploy wallabag
|
||||||
@bundle exec cap staging deploy
|
@bundle exec cap staging deploy
|
||||||
|
|
||||||
.PHONY: help install update build test release deploy run dev
|
.PHONY: help install update build test release deploy run dev fix-cs
|
||||||
|
|
||||||
.DEFAULT_GOAL := install
|
.DEFAULT_GOAL := install
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue