Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Makefile #88

Merged
merged 1 commit into from
Dec 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions Makefile
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
Loading