Skip to content

Commit

Permalink
Update Makefile (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
lav45 authored Dec 29, 2024
1 parent bf85a0b commit 2b48b71
Showing 1 changed file with 8 additions and 8 deletions.
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

0 comments on commit 2b48b71

Please sign in to comment.