generated from yiisoft/package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
1 changed file
with
8 additions
and
8 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,24 +1,24 @@ | ||
help: ## Display help information | ||
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//' | ||
|
||
build: ## Build an image from a docker-compose file. Params: {{ v=8.1 }}. Default latest PHP 8.1 | ||
PHP_VERSION=$(filter-out $@,$(v)) docker-compose up -d --build | ||
build: ## Build an image from a docker compose file. Params: {{ v=8.1 }}. Default latest PHP 8.1 | ||
PHP_VERSION=$(filter-out $@,$(v)) docker compose up -d --build | ||
|
||
down: ## Stop and remove containers, networks | ||
docker-compose down | ||
docker compose down | ||
|
||
start: ## Start services | ||
docker-compose up -d | ||
docker compose up -d | ||
|
||
sh: ## Enter the container with the application | ||
docker exec -it yii-runner-roadrunner sh | ||
|
||
test: ## Run tests. Params: {{ v=8.1 }}. Default latest PHP 8.1 | ||
PHP_VERSION=$(filter-out $@,$(v)) docker-compose build --pull yii-runner-roadrunner | ||
PHP_VERSION=$(filter-out $@,$(v)) docker-compose run yii-runner-roadrunner vendor/bin/phpunit --colors=always --debug | ||
PHP_VERSION=$(filter-out $@,$(v)) docker compose build --pull yii-runner-roadrunner | ||
PHP_VERSION=$(filter-out $@,$(v)) docker compose run yii-runner-roadrunner vendor/bin/phpunit --colors=always --debug | ||
make down | ||
|
||
mutation: ## Run mutation tests. Params: {{ v=8.1 }}. Default latest PHP 8.1 | ||
PHP_VERSION=$(filter-out $@,$(v)) docker-compose build --pull yii-runner-roadrunner | ||
PHP_VERSION=$(filter-out $@,$(v)) docker-compose run yii-runner-roadrunner vendor/bin/roave-infection-static-analysis-plugin -j2 --ignore-msi-with-no-mutations --only-covered | ||
PHP_VERSION=$(filter-out $@,$(v)) docker compose build --pull yii-runner-roadrunner | ||
PHP_VERSION=$(filter-out $@,$(v)) docker compose run yii-runner-roadrunner vendor/bin/roave-infection-static-analysis-plugin -j2 --ignore-msi-with-no-mutations --only-covered | ||
make down |