This repository has been archived by the owner on Aug 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
40 additions
and
12 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
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,26 @@ | ||
QA_DOCKER_IMAGE=jakzal/phpqa:1.23-alpine | ||
QA_DOCKER_COMMAND=docker run --init --interactive --tty --rm --env "COMPOSER_HOME=/composer" --user "$(shell id -u):$(shell id -g)" --volume /tmp/tmp-phpqa-$(shell id -u):/tmp:delegated --volume "$(shell pwd):/project:delegated" --volume "${HOME}/.composer:/composer:delegated" --workdir /project ${QA_DOCKER_IMAGE} | ||
|
||
ci: cs-full-check phpstan | ||
lint: cs-full-check phpstan | ||
|
||
phpstan: | ||
sh -c "${QA_DOCKER_COMMAND} phpstan analyse --configuration phpstan.neon --level 6 ." | ||
|
||
cs: | ||
sh -c "${QA_DOCKER_COMMAND} php-cs-fixer fix -vvv --diff" | ||
|
||
cs-full: | ||
sh -c "${QA_DOCKER_COMMAND} php-cs-fixer fix -vvv --using-cache=false --diff" | ||
|
||
cs-full-check: | ||
sh -c "${QA_DOCKER_COMMAND} php-cs-fixer fix -vvv --using-cache=false --diff --dry-run" | ||
|
||
in-docker-install-dev: | ||
rm -f composer.lock | ||
cp composer.json _composer.json | ||
composer.phar config minimum-stability dev | ||
composer.phar update --no-progress --no-interaction --no-suggest --optimize-autoloader --ansi | ||
mv _composer.json composer.json | ||
|
||
.PHONY: phpstan cs cs-full cs-full-checks |
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